Skip to content

Commit

Permalink
Ensure Cron#next and #prev spec are anchored
Browse files Browse the repository at this point in the history
else they'll fail soon
  • Loading branch information
jmettraux committed Feb 16, 2024
1 parent 0734a57 commit 6d7419a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/cron_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1632,9 +1632,6 @@ class Fugit::Cron::TimeCursor
end
end

describe '#within' do
end

describe '#next' do

it 'returns an iterator' do
Expand All @@ -1644,7 +1641,8 @@ class Fugit::Cron::TimeCursor
in_zone 'UTC' do

expect(
c.next
#c.next(Time.parse('2024-02-16 12:00:00'))
c.next('2024-02-16 12:00:00') # works too :-)
.take(5)
.map(&:to_s)
).to eq([
Expand All @@ -1667,7 +1665,7 @@ class Fugit::Cron::TimeCursor
in_zone 'UTC' do

expect(
c.prev
c.prev(Time.parse('2024-02-16 12:00:00'))
.take(5)
.map(&:to_s)
).to eq([
Expand All @@ -1680,6 +1678,8 @@ class Fugit::Cron::TimeCursor
end
end
end

describe '#within'
end

describe Fugit do
Expand Down

0 comments on commit 6d7419a

Please sign in to comment.