#275: Use better path variable in test.

This commit is contained in:
Paul Mackay
2015-04-28 16:08:26 +01:00
parent 9103e83ce2
commit 0f1ec17698

View File

@@ -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