]> source.dussan.org Git - redmine.git/commitdiff
Test for when group does not exist.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 15 Jul 2012 19:05:34 +0000 (19:05 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 15 Jul 2012 19:05:34 +0000 (19:05 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10002 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/groups_controller_test.rb

index efdca3883c0b5b773e12899114bba28c0a74a1c3..4d5270145b987533eb8bf4e7a96f8d96f95d90ec 100644 (file)
@@ -36,6 +36,11 @@ class GroupsControllerTest < ActionController::TestCase
     assert_template 'show'
   end
 
+  def test_show_invalid_should_return_404
+    get :show, :id => 99
+    assert_response 404
+  end
+
   def test_new
     get :new
     assert_response :success