From 5e79034cdba24236aed0dda683727d616f32154f Mon Sep 17 00:00:00 2001 From: Semyon Pupkov Date: Sun, 31 Jul 2022 00:04:22 +0500 Subject: [PATCH] Add missing expects to specs --- spec/examples/schedule_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/examples/schedule_spec.rb b/spec/examples/schedule_spec.rb index efbf935d..53711fb1 100644 --- a/spec/examples/schedule_spec.rb +++ b/spec/examples/schedule_spec.rb @@ -306,7 +306,7 @@ it "should be equivalent to all_occurrences in terms of arrays" do schedule = IceCube::Schedule.new(Time.now, duration: IceCube::ONE_HOUR) schedule.add_recurrence_rule IceCube::Rule.daily.until(Time.now + 3 * IceCube::ONE_DAY) - schedule.all_occurrences == schedule.all_occurrences_enumerator.to_a + expect(schedule.all_occurrences).to eq(schedule.all_occurrences_enumerator.to_a) end end @@ -314,7 +314,7 @@ it "should be equivalent to remaining_occurrences in terms of arrays" do schedule = IceCube::Schedule.new(Time.now, duration: IceCube::ONE_HOUR) schedule.add_recurrence_rule IceCube::Rule.daily.until(Time.now + 3 * IceCube::ONE_DAY) - schedule.remaining_occurrences == schedule.remaining_occurrences_enumerator.to_a + expect(schedule.remaining_occurrences).to eq(schedule.remaining_occurrences_enumerator.to_a) end end @@ -795,7 +795,7 @@ def compare_time_zone_info(start_time) expect(occurrence.dst?).to eq(start_time.dst?) if start_time.respond_to? :dst? expect(occurrence.utc?).to eq(start_time.utc?) if start_time.respond_to? :utc? expect(occurrence.zone).to eq(start_time.zone) - occurrence.utc_offset == start_time.utc_offset + expect(occurrence.utc_offset).to eq(start_time.utc_offset) end def trap_infinite_loop_beyond(iterations)