Sha256: a06cfaed6701b57a63e70e1eebbacba090d265d1ec621368eef95a3a8067f8e0
Contents?: true
Size: 646 Bytes
Versions: 2
Compression:
Stored size: 646 Bytes
Contents
describe NetworkExecutive::OffAirSchedule do its(:program) { should be_a NetworkExecutive::OffAir } its(:duration) { should == 59.seconds } it 'should be subclass ProgramSchedule' do subject.is_a? NetworkExecutive::ProgramSchedule end describe '#occurrence_at' do let(:time) { Time.now.change(min:0, sec:0) } subject { described_class.new.occurrence_at time } it 'return build a ProgramSchedule Occurrence' do args = [ time, 59.seconds, time + 59.seconds ] NetworkExecutive::ProgramSchedule::Occurrence.should_receive(:new).with( *args ) subject end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
network_executive-0.0.8 | spec/unit/off_air_schedule_spec.rb |
network_executive-0.0.7 | spec/unit/off_air_schedule_spec.rb |