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
1 changed files with 1 additions and 1 deletions

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').