summaryrefslogtreecommitdiffstats
path: root/test/functional/roles_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-23 14:26:30 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-23 14:26:30 +0000
commite6a64aa00bea61d24c0ba0e28ecaabcca53ee09b (patch)
treee90e0ccd83ecf35690a5bab223e24191e1e7d76c /test/functional/roles_controller_test.rb
parent95811c8e4c427b06d8e6ad5377c1e64b1591e8b3 (diff)
downloadredmine-e6a64aa00bea61d24c0ba0e28ecaabcca53ee09b.tar.gz
redmine-e6a64aa00bea61d24c0ba0e28ecaabcca53ee09b.zip
Adds functional tests.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8947 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/roles_controller_test.rb')
-rw-r--r--test/functional/roles_controller_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/roles_controller_test.rb b/test/functional/roles_controller_test.rb
index b0fdb4368..4a9a872b1 100644
--- a/test/functional/roles_controller_test.rb
+++ b/test/functional/roles_controller_test.rb
@@ -84,6 +84,11 @@ class RolesControllerTest < ActionController::TestCase
assert_equal Role.find(1), assigns(:role)
end
+ def test_edit_invalid_should_respond_with_404
+ get :edit, :id => 999
+ assert_response 404
+ end
+
def test_update
put :update, :id => 1,
:role => {:name => 'Manager',