aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorKuldeep Aggarwal <kd.engineer@yahoo.co.in>2013-11-28 03:14:19 +0530
committerKuldeep Aggarwal <kd.engineer@yahoo.co.in>2013-11-28 03:14:19 +0530
commitbbad99bdff5b2f72027272ad5b546992e1ea8622 (patch)
tree6f93808078980107cb2888bda90c51ec433aeb2e /actionpack
parent4c450a514acdb7e6f7a33e12a02bcbd2e7358293 (diff)
downloadrails-bbad99bdff5b2f72027272ad5b546992e1ea8622.tar.gz
rails-bbad99bdff5b2f72027272ad5b546992e1ea8622.tar.bz2
rails-bbad99bdff5b2f72027272ad5b546992e1ea8622.zip
fixed-case when invalid action name has passed
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/controller/resources_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/test/controller/resources_test.rb b/actionpack/test/controller/resources_test.rb
index 528c59df91..a5f43c4b6b 100644
--- a/actionpack/test/controller/resources_test.rb
+++ b/actionpack/test/controller/resources_test.rb
@@ -4,6 +4,7 @@ require 'active_support/core_ext/object/with_options'
require 'active_support/core_ext/array/extract_options'
class ResourcesTest < ActionController::TestCase
+
def test_default_restful_routes
with_restful_routing :messages do
assert_simply_restful_for :messages
@@ -1320,6 +1321,8 @@ class ResourcesTest < ActionController::TestCase
assert_recognizes options, path_options
elsif Array(not_allowed).include?(action)
assert_not_recognizes options, path_options
+ else
+ raise Assertion, 'Invalid Action has passed'
end
end