From 08ec771f0dea6434645a5a1636ed09ac343c17c3 Mon Sep 17 00:00:00 2001 From: Derek Prior Date: Fri, 10 May 2013 16:54:48 -0400 Subject: [PATCH] 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 --- spec/shoulda/matchers/action_controller/route_matcher_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/shoulda/matchers/action_controller/route_matcher_spec.rb b/spec/shoulda/matchers/action_controller/route_matcher_spec.rb index 781e303e..a9aaeed0 100644 --- a/spec/shoulda/matchers/action_controller/route_matcher_spec.rb +++ b/spec/shoulda/matchers/action_controller/route_matcher_spec.rb @@ -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').