:attributes => { :href => '#',
:class => 'icon-del disabled' }
end
-
+
def test_context_menu_multiple_issues_of_same_project
@request.session[:user_id] = 2
get :issues, :ids => [1, 2]
assert_template 'context_menu'
assert_not_nil assigns(:issues)
assert_equal [1, 2], assigns(:issues).map(&:id).sort
-
+
ids = assigns(:issues).map(&:id).map {|i| "ids%5B%5D=#{i}"}.join('&')
assert_tag :tag => 'a', :content => 'Edit',
:attributes => { :href => "/issues/bulk_edit?#{ids}",
assert_template 'context_menu'
assert_not_nil assigns(:issues)
assert_equal [1, 2, 6], assigns(:issues).map(&:id).sort
-
+
ids = assigns(:issues).map(&:id).map {|i| "ids%5B%5D=#{i}"}.join('&')
assert_tag :tag => 'a', :content => 'Edit',
:attributes => { :href => "/issues/bulk_edit?#{ids}",
:attributes => { :href => "/issues/destroy?#{ids}",
:class => 'icon-del' }
end
-
+
def test_context_menu_issue_visibility
get :issues, :ids => [1, 4]
assert_response :success