mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Expect to be_valid instead of checking presence of specific error spec/models/spree/shipping_method_spec.rb
Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
committed by
Filipe
parent
f25de984d2
commit
cc5daf51b1
@@ -148,8 +148,7 @@ module Spree
|
||||
shipping_method = build_stubbed(:shipping_method)
|
||||
[nil, "", "back_end"].each do |display_on_option|
|
||||
shipping_method.display_on = display_on_option
|
||||
shipping_method.valid?
|
||||
expect(shipping_method.errors[:display_on]).to be_empty
|
||||
expect(shipping_method).to be_valid
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user