Sha256: beb32939f94b93dbc3ac21ee19588261956c2fdcff6d5494c681f222cc8490c4
Contents?: true
Size: 582 Bytes
Versions: 1
Compression:
Stored size: 582 Bytes
Contents
require 'spec_helper' describe IceCubeEx::DayCycleRule do describe '.new' do context 'given cycle argument bellow 2' do let(:cycle) { 0 } let(:repeat) { 1 } it 'raises error' do expect do IceCubeEx::DayCycleRule.new(cycle, repeat) end.to raise_error end end context 'given cycle argument lower than repeat' do let(:cycle) { 9 } let(:repeat) { 10 } it 'raises error' do expect do IceCubeEx::DayCycleRule.new(cycle, repeat) end.to raise_error end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ice_cube_ex-0.1.0 | spec/ice_cube_ex/rules/day_cycle_spec.rb |