1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Use get instead of match in routes

match is not supported in Rails 4. This still leaves several failures in
the route_matcher, but these seem to be related to the underlying route
assertion relying on minitest methods. Need to do more research here...

https://github.com/rspec/rspec-rails/issues/635
https://github.com/rspec/rspec-rails/issues/679
This commit is contained in:
Derek Prior 2013-05-10 16:54:48 -04:00 committed by Elliot Winkler
parent 9a333d12b4
commit 08ec771f0d

View file

@ -6,7 +6,7 @@ describe Shoulda::Matchers::ActionController::RouteMatcher do
controller = define_controller('Examples').new
define_routes do
match 'examples/*id', :to => 'examples#example'
get 'examples/*id', :to => 'examples#example'
end
controller.should route(:get, '/examples/foo/bar').