From 2c1567677fb5f6e6a8c5c065c939f7f2dc211cad Mon Sep 17 00:00:00 2001 From: Lars Kuhnt Date: Mon, 13 May 2024 11:39:45 +0200 Subject: [PATCH] lint updates --- spec/examples/fixed_value_spec.rb | 1 - spec/examples/schedule_spec.rb | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/spec/examples/fixed_value_spec.rb b/spec/examples/fixed_value_spec.rb index ebee6153..8e876f14 100644 --- a/spec/examples/fixed_value_spec.rb +++ b/spec/examples/fixed_value_spec.rb @@ -1,7 +1,6 @@ require "spec_helper" RSpec.describe IceCube::Validations::HourOfDay::Validation do - describe :validate do let(:timezone) { "Africa/Cairo" } let(:time) { "2024-05-03 00:20:00" } diff --git a/spec/examples/schedule_spec.rb b/spec/examples/schedule_spec.rb index 5b00e994..f01e4a2c 100644 --- a/spec/examples/schedule_spec.rb +++ b/spec/examples/schedule_spec.rb @@ -395,7 +395,7 @@ require "active_support/time" let(:schedule) do - IceCube::Schedule.new(ActiveSupport::TimeZone['Africa/Cairo'].parse("2022-05-05 00:20:00")).tap do |schedule| + IceCube::Schedule.new(ActiveSupport::TimeZone["Africa/Cairo"].parse("2022-05-05 00:20:00")).tap do |schedule| schedule.add_recurrence_rule IceCube::Rule.weekly.day(:friday) end end @@ -413,7 +413,7 @@ expect(occurrences.map(&:iso8601)).to eq([ "2024-04-26T01:20:00+03:00", "2024-05-03T00:20:00+03:00", - "2024-05-10T00:20:00+03:00", + "2024-05-10T00:20:00+03:00" ]) end @@ -422,7 +422,7 @@ expect(occurrences.map(&:iso8601)).to eq([ "2024-04-19T00:20:00+02:00", "2024-04-26T01:20:00+03:00", - "2024-05-03T00:20:00+03:00", + "2024-05-03T00:20:00+03:00" ]) end @@ -431,7 +431,7 @@ expect(occurrences.map(&:iso8601).last(3)).to eq([ "2024-10-18T00:20:00+03:00", "2024-10-25T00:20:00+03:00", - "2024-11-01T00:20:00+02:00", + "2024-11-01T00:20:00+02:00" ]) end end