Skip to content

Commit 401ded3

Browse files
committed
Fix invalid references in isolated tests
1 parent 9959877 commit 401ded3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spec/examples/hourly_rule_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ module IceCube
5555
schedule = double(start_time: t0 = Time.now)
5656
rule = Rule.hourly(7)
5757
rule.interval(5)
58-
rule.next_time(t0 + 1, schedule, nil).should == t0 + 5.hours
58+
rule.next_time(t0 + 1, schedule, nil).should == t0 + 5 * ONE_HOUR
5959
end
6060

6161
it 'should produce the correct days for @interval = 3' do

spec/examples/yearly_rule_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
describe IceCube::YearlyRule, 'interval validation' do
44
it 'converts a string integer to an actual int when using the interval method' do
5-
rule = Rule.yearly.interval("2")
5+
rule = IceCube::Rule.yearly.interval("2")
66
rule.validations_for(:interval).first.interval.should == 2
77
end
88

99
it 'converts a string integer to an actual int when using the initializer' do
10-
rule = Rule.yearly("3")
10+
rule = IceCube::Rule.yearly("3")
1111
rule.validations_for(:interval).first.interval.should == 3
1212
end
1313

0 commit comments

Comments
 (0)