mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Fix Metrics/AbcSize violation in order_cycles/complex_creating_specific_time_spec.rb
This commit is contained in:
committed by
Filipe
parent
def87485c0
commit
f9e29f3a78
@@ -207,9 +207,7 @@ describe '
|
||||
expect_variants_saved
|
||||
expect_receival_instructions_saved
|
||||
expect_pickup_time_and_instructions_saved
|
||||
|
||||
# And the distributor shipping method should be attached
|
||||
expect(oc.distributor_shipping_methods).to eq(shipping_method_i.distributor_shipping_methods)
|
||||
expect_distributor_shipping_methods_saved
|
||||
end
|
||||
|
||||
def expect_opening_and_closing_times_saved
|
||||
@@ -241,4 +239,8 @@ describe '
|
||||
expect(exchange.pickup_instructions).to eq('pickup instructions')
|
||||
expect(exchange.tag_list).to eq(['wholesale'])
|
||||
end
|
||||
|
||||
def expect_distributor_shipping_methods_saved
|
||||
expect(oc.distributor_shipping_methods).to eq(shipping_method_i.distributor_shipping_methods)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user