Creating simple_order_cycle instead of order_cycle

Speedup on my machine:
 1 minute 44.52 seconds
 21.9 seconds
This commit is contained in:
Maikel Linke
2014-11-28 12:29:47 +11:00
parent 699c9a62a5
commit 082a3cd9ab

View File

@@ -2,7 +2,7 @@ require 'spec_helper'
describe CheckoutController do
let(:distributor) { double(:distributor) }
let(:order_cycle) { create(:order_cycle) }
let(:order_cycle) { create(:simple_order_cycle) }
let(:order) { create(:order) }
before do
order.stub(:checkout_allowed?).and_return true