summaryrefslogtreecommitdiffstats
path: root/test/functional/groups_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-15 19:05:34 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-15 19:05:34 +0000
commit54d2b07bffdb34cd8e2182ebda111a17df5a5530 (patch)
treebf9550218f4ce36b089ab54aaf3570a429bf56b2 /test/functional/groups_controller_test.rb
parente23511076cd7dc2f4f471c483d75df8130f2ce4a (diff)
downloadredmine-54d2b07bffdb34cd8e2182ebda111a17df5a5530.tar.gz
redmine-54d2b07bffdb34cd8e2182ebda111a17df5a5530.zip
Test for when group does not exist.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10002 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/groups_controller_test.rb')
-rw-r--r--test/functional/groups_controller_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/groups_controller_test.rb b/test/functional/groups_controller_test.rb
index efdca3883..4d5270145 100644
--- a/test/functional/groups_controller_test.rb
+++ b/test/functional/groups_controller_test.rb
@@ -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