fixed-case when invalid action name has passed

This commit is contained in:
Kuldeep Aggarwal 2013-11-28 03:14:19 +05:30
parent 4c450a514a
commit bbad99bdff
1 changed files with 3 additions and 0 deletions

View File

@ -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