Skip to content

Commit

Permalink
lint updates
Browse files Browse the repository at this point in the history
  • Loading branch information
larskuhnt committed May 13, 2024
1 parent ed28691 commit 2c15676
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion spec/examples/fixed_value_spec.rb
Original file line number Diff line number Diff line change
@@ -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" }
Expand Down
8 changes: 4 additions & 4 deletions spec/examples/schedule_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 2c15676

Please sign in to comment.