diff options
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/context_menus_controller_test.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/functional/context_menus_controller_test.rb b/test/functional/context_menus_controller_test.rb index 110fd7943..eeaa88f4b 100644 --- a/test/functional/context_menus_controller_test.rb +++ b/test/functional/context_menus_controller_test.rb @@ -219,11 +219,9 @@ class ContextMenusControllerTest < ActionController::TestCase assert_select 'a', :text => 'eCookbook - Shared' end - def test_context_menu_issue_visibility - get :issues, :ids => [1, 4] - assert_response :success - assert_template 'context_menu' - assert_equal [1], assigns(:issues).collect(&:id) + def test_context_menu_with_issue_that_is_not_visible_should_fail + get :issues, :ids => [1, 4] # issue 4 is not visible + assert_response 302 end def test_should_respond_with_404_without_ids |