Supplier with specced time zone and night offset support
This commit is contained in:
@@ -8,3 +8,14 @@ step "There is an open supplier with a menu" do
|
||||
@apple_pie.add_product_category @category_lunch
|
||||
end
|
||||
|
||||
step "the supplier is in :time_zone" do |time_zone|
|
||||
time_zone = ActiveSupport::TimeZone.zones_map[time_zone]
|
||||
raise "time zone #{time_zone} cannot be found" unless time_zone
|
||||
@supplier.time_zone = time_zone.name
|
||||
@supplier.save
|
||||
end
|
||||
|
||||
step "the supplier has a night offset of :minutes minutes" do |minutes|
|
||||
@supplier.night_offset = minutes
|
||||
@supplier.save
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user