From 0f1ec17698f8a6ff27139eb19c57f73488f72e5c Mon Sep 17 00:00:00 2001 From: Paul Mackay Date: Tue, 28 Apr 2015 16:08:26 +0100 Subject: [PATCH] #275: Use better path variable in test. --- spec/controllers/admin/order_cycles_controller_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/controllers/admin/order_cycles_controller_spec.rb b/spec/controllers/admin/order_cycles_controller_spec.rb index faa3e095ae..ac89f6545b 100644 --- a/spec/controllers/admin/order_cycles_controller_spec.rb +++ b/spec/controllers/admin/order_cycles_controller_spec.rb @@ -18,8 +18,7 @@ module Admin expect(Delayed::Job).to receive(:enqueue).once spree_post :notify_producers, {id: order_cycle.id} - # TODO: is there a better variable to use? - expect(response).to redirect_to spree.admin_path + '/order_cycles' + expect(response).to redirect_to admin_order_cycles_path flash[:notice].should == 'Emails to be sent to producers have been queued for sending.' end end