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:
parent
9a333d12b4
commit
08ec771f0d
1 changed files with 1 additions and 1 deletions
|
@ -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').
|
||||
|
|
Loading…
Reference in a new issue