mirror of https://github.com/rails/rails
fixed-case when invalid action name has passed
This commit is contained in:
parent
4c450a514a
commit
bbad99bdff
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue