Spec reliability: Explicitly set a $0 calculator for shipping method

This commit is contained in:
Rohan Mitchell
2014-09-12 16:10:32 +10:00
committed by Rob H
parent d2c5533549
commit b41029d5d0

View File

@@ -28,7 +28,7 @@ feature "As a consumer I want to check out my cart", js: true do
end
describe "with shipping methods" do
let(:sm1) { create(:shipping_method, require_ship_address: true, name: "Frogs", description: "yellow") }
let(:sm1) { create(:shipping_method, require_ship_address: true, name: "Frogs", description: "yellow", calculator: Spree::Calculator::FlatRate.new(preferred_amount: 0.00)) }
let(:sm2) { create(:shipping_method, require_ship_address: false, name: "Donkeys", description: "blue", calculator: Spree::Calculator::FlatRate.new(preferred_amount: 4.56)) }
before do
distributor.shipping_methods << sm1