Skip to content

Commit 7f879fe

Browse files
committed
Move spec out of module
1 parent 31b0e71 commit 7f879fe

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

spec/examples/minutely_rule_spec.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
require File.dirname(__FILE__) + '/../spec_helper'
22

3-
module IceCube
4-
describe MinutelyRule, 'interval validation' do
3+
describe IceCube::MinutelyRule do
4+
5+
describe 'interval validation' do
6+
57
it 'converts a string integer to an actual int when using the interval method' do
68
rule = Rule.minutely.interval("2")
79
expect(rule.validations_for(:interval).first.interval).to eq(2)
@@ -23,11 +25,8 @@ module IceCube
2325
Rule.minutely.interval("invalid")
2426
}.to raise_error(ArgumentError, "'invalid' is not a valid input for interval. Please pass a postive integer.")
2527
end
26-
2728
end
2829

29-
describe MinutelyRule do
30-
3130
it 'should update previous interval' do
3231
t0 = Time.now
3332
rule = Rule.minutely(7)
@@ -74,5 +73,4 @@ module IceCube
7473
expect(schedule.next_occurrence(Time.new(2013, 11, 1, 1, 4, 0))).to eq(Time.new(2013, 11, 1, 1, 8, 0))
7574
end
7675

77-
end
7876
end

0 commit comments

Comments
 (0)