Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed-case when invalid action name has passed

  • Loading branch information...
commit bbad99bdff5b2f72027272ad5b546992e1ea8622 1 parent 4c450a5
@kuldeepaggarwal kuldeepaggarwal authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  actionpack/test/controller/resources_test.rb
View
3  actionpack/test/controller/resources_test.rb
@@ -4,6 +4,7 @@
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 @@ def assert_whether_allowed(allowed, not_allowed, options, action, path, method)
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
Please sign in to comment.
Something went wrong with that request. Please try again.