We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d9b32c commit 26b129bCopy full SHA for 26b129b
spec/examples/ice_cube_spec.rb
@@ -605,11 +605,18 @@
605
606
it 'should be able to remove a count validation from a rule' do
607
rule = IceCube::Rule.daily.count(5)
608
- rule.count nil
609
- rule.to_hash.should_not have_key(:count)
+ rule.occurrence_count.should == 5
+ rule.count(nil)
610
rule.occurrence_count.should be_nil
611
end
612
613
+ it 'should be able to remove a count validation from a rule' do
614
+ rule = IceCube::Rule.daily.count(5)
615
+ rule.to_hash[:count].should == 5
616
+ rule.count nil
617
+ rule.to_hash[:count].should be_nil
618
+ end
619
+
620
it 'should be able to remove an until validation from a rule' do
621
rule = IceCube::Rule.daily.until(Time.now + IceCube::ONE_DAY)
622
rule.to_hash[:until].should_not be_nil
0 commit comments