Fix indentation

This commit is contained in:
Rohan Mitchell
2015-03-13 10:52:44 +11:00
parent 008b43b1fc
commit d9f90be38a

View File

@@ -346,11 +346,11 @@ describe Spree::Order do
let!(:p2) { create(:payment, order: o2, payment_method: pm2) }
it "returns the order with payment method name when one specified" do
Spree::Order.with_payment_method_name('foo').should == [o1]
Spree::Order.with_payment_method_name('foo').should == [o1]
end
it "returns the orders with payment method name when many specified" do
Spree::Order.with_payment_method_name(['foo', 'bar']).should include o1, o2
Spree::Order.with_payment_method_name(['foo', 'bar']).should include o1, o2
end
it "doesn't return rows with a different payment method name" do
@@ -359,8 +359,8 @@ describe Spree::Order do
end
it "doesn't return duplicate rows" do
p2 = FactoryGirl.create(:payment, :order => o1, :payment_method => pm1)
Spree::Order.with_payment_method_name('foo').length.should == 1
p2 = FactoryGirl.create(:payment, order: o1, payment_method: pm1)
Spree::Order.with_payment_method_name('foo').length.should == 1
end
end
end