diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-17 16:30:53 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-17 16:30:53 -0700 |
commit | c42db41f54adbcd981cbd4cc725e342fb3591176 (patch) | |
tree | 4a3d7f70adf3659c89a70d17a3159b72fde8ea12 /actionpack/test/dispatch | |
parent | 1ce74b009f0a5bbb9e5f5fe1c037c77437fd0be9 (diff) | |
download | rails-c42db41f54adbcd981cbd4cc725e342fb3591176.tar.gz rails-c42db41f54adbcd981cbd4cc725e342fb3591176.tar.bz2 rails-c42db41f54adbcd981cbd4cc725e342fb3591176.zip |
routes are always constructed with a hash for the conditions
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r-- | actionpack/test/dispatch/mapper_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/mapper_test.rb b/actionpack/test/dispatch/mapper_test.rb index eca4ca8e0e..f35ffd8845 100644 --- a/actionpack/test/dispatch/mapper_test.rb +++ b/actionpack/test/dispatch/mapper_test.rb @@ -82,7 +82,7 @@ module ActionDispatch end assert_equal({:omg=>:awesome, :controller=>"posts", :action=>"index"}, fakeset.defaults.first) - assert_equal(/^GET$/, fakeset.conditions.first[:request_method]) + assert_equal(/^GET$/, fakeset.routes.first.verb) end def test_mapping_requirements @@ -99,7 +99,7 @@ module ActionDispatch mapper.scope(via: :put) do mapper.match '/', :to => 'posts#index', :as => :main end - assert_equal(/^PUT$/, fakeset.conditions.first[:request_method]) + assert_equal(/^PUT$/, fakeset.routes.first.verb) end def test_map_slash |