Supplier with specced time zone and night offset support

This commit is contained in:
2014-01-14 17:33:58 -03:00
parent c6f0976d11
commit 6c00604b83
13 changed files with 5972 additions and 3897 deletions
+11
View File
@@ -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