mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
add variant spec
This commit is contained in:
@@ -18,6 +18,11 @@ module Spree
|
||||
variant.price = 0
|
||||
expect(variant).to be_valid
|
||||
end
|
||||
|
||||
it "should validate unit_value is greater than 0" do
|
||||
variant.unit_value = 0
|
||||
expect(variant).to be_invalid
|
||||
end
|
||||
end
|
||||
|
||||
context "price parsing" do
|
||||
|
||||
Reference in New Issue
Block a user