Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some failing round trips #536

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions spec/examples/to_yaml_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module IceCube
end

it "should be able to make a round-trip to YAML with .day_of_year" do
schedule1 = Schedule.new(Time.now)
schedule1 = Schedule.new(Time.zone.now)
schedule1.add_recurrence_rule Rule.yearly.day_of_year(100, 200)

yaml_string = schedule1.to_yaml
Expand Down Expand Up @@ -112,7 +112,7 @@ module IceCube
end

it "should be able to make a round-trip to YAML with .month_of_year" do
schedule = Schedule.new(Time.now)
schedule = Schedule.new(Time.zone.now)
schedule.add_recurrence_rule Rule.yearly.month_of_year(:april, :may)

yaml_string = schedule.to_yaml
Expand Down