diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-11-27 13:42:55 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-11-27 13:42:55 -0800 |
commit | ee31ab88d4676279d4fa1e1b0085e84f0c580b92 (patch) | |
tree | 844d67df40db3a40eef0065cd415b9d3f61d6c4a | |
parent | daef3d430acdcd3844dd246e0291dcbb170676b3 (diff) | |
parent | bbad99bdff5b2f72027272ad5b546992e1ea8622 (diff) | |
download | rails-ee31ab88d4676279d4fa1e1b0085e84f0c580b92.tar.gz rails-ee31ab88d4676279d4fa1e1b0085e84f0c580b92.tar.bz2 rails-ee31ab88d4676279d4fa1e1b0085e84f0c580b92.zip |
Merge pull request #13083 from kuldeepaggarwal/typos
fixed typo `destory` => `destroy` [ci skip]
-rw-r--r-- | actionpack/test/controller/resources_test.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/test/controller/resources_test.rb b/actionpack/test/controller/resources_test.rb index 9aea7e860a..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 @@ -1004,7 +1005,7 @@ class ResourcesTest < ActionController::TestCase 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 @@ 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 |