spec/routing/delayed_routing_spec.rb in resque-scheduler-web-0.0.1 vs spec/routing/delayed_routing_spec.rb in resque-scheduler-web-0.0.2

- old
+ new

@@ -1,9 +1,11 @@ require 'rails_helper' -describe ResqueWeb::Plugins::ResqueScheduler::DelayedController, type: :routing do +describe ResqueWeb::Plugins::ResqueScheduler::DelayedController, + type: :routing do routes { ResqueWeb::Plugins::ResqueScheduler::Engine.routes } it 'routes to POST cancel_now' do - expect(post 'delayed/cancel_now').to route_to('resque_web/plugins/resque_scheduler/delayed#cancel_now') + expected_route = 'resque_web/plugins/resque_scheduler/delayed#cancel_now' + expect(post 'delayed/cancel_now').to route_to(expected_route) end -end \ No newline at end of file +end