Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #13083 from kuldeepaggarwal/typos

fixed typo `destory` => `destroy` [ci skip]
  • Loading branch information...
commit ee31ab88d4676279d4fa1e1b0085e84f0c580b92 2 parents daef3d4 + bbad99b
@rafaelfranca rafaelfranca authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 actionpack/test/controller/resources_test.rb
View
5 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
@@ -1004,7 +1005,7 @@ def test_nested_resource_does_not_inherit_only_option_by_default
end
end
- assert_resource_allowed_routes('images', { :product_id => '1' }, { :id => '2' }, [:index, :new, :create, :show, :edit, :update, :destory], [], 'products/1/images')
+ assert_resource_allowed_routes('images', { :product_id => '1' }, { :id => '2' }, [:index, :new, :create, :show, :edit, :update, :destroy], [], 'products/1/images')
assert_resource_allowed_routes('images', { :product_id => '1', :format => 'xml' }, { :id => '2' }, [:index, :new, :create, :show, :edit, :update, :destroy], [], 'products/1/images')
end
end
@@ -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.