Convert multiline blocks to single-line ones

This commit is contained in:
Arun Kumar Mohan
2020-10-17 19:44:57 -05:00
parent 2ec35b6306
commit 874d33caaa

View File

@@ -617,18 +617,16 @@ module Spree
end
context "and final_weight_volume has been changed" do
before do
li.final_weight_volume = 35
end
before { li.final_weight_volume = 35 }
it "returns the unit_value of the variant" do
expect(li.unit_value).to eq 7
end
end
context "and final_weight_volume is nil" do
before do
li.final_weight_volume = nil
end
before { li.final_weight_volume = nil }
it "returns the unit_value of the variant" do
expect(li.unit_value).to eq 10
end
@@ -636,9 +634,8 @@ module Spree
end
context "when the quantity is zero" do
before do
li.quantity = 0
end
before { li.quantity = 0 }
it "returns the unit_value of the variant" do
expect(li.unit_value).to eq 10
end