diff --git a/spec/models/spree/order_spec.rb b/spec/models/spree/order_spec.rb index ae689e009e..3eeac8b40f 100644 --- a/spec/models/spree/order_spec.rb +++ b/spec/models/spree/order_spec.rb @@ -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