Refactoring test to adopt most Rspec syntax (expect instead of should)

This commit is contained in:
Duende13
2017-07-20 14:43:56 +01:00
committed by Maikel Linke
parent 401052be68
commit ba37db7ccc

View File

@@ -54,7 +54,7 @@ module Spree
end
it "finds line items sorted by name and unit_value" do
o.line_items.sorted_by_name_and_unit_value.should == [li5,li6,li4,li3]
expect(o.line_items.sorted_by_name_and_unit_value).to eq([li5,li6,li4,li3])
end
end