We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84120b5 commit 115d5a8Copy full SHA for 115d5a8
spec/examples/to_yaml_spec.rb
@@ -78,7 +78,7 @@ module IceCube
78
end
79
80
it "should be able to make a round-trip to YAML with .day_of_year" do
81
- schedule1 = Schedule.new(Time.now)
+ schedule1 = Schedule.new(Time.zone.now)
82
schedule1.add_recurrence_rule Rule.yearly.day_of_year(100, 200)
83
84
yaml_string = schedule1.to_yaml
@@ -112,7 +112,7 @@ module IceCube
112
113
114
it "should be able to make a round-trip to YAML with .month_of_year" do
115
- schedule = Schedule.new(Time.now)
+ schedule = Schedule.new(Time.zone.now)
116
schedule.add_recurrence_rule Rule.yearly.month_of_year(:april, :may)
117
118
yaml_string = schedule.to_yaml
0 commit comments