Sha256: 3cd0a49cdc79173669d3bd4c78392bf731879816d3ae47edb479209dae2cdae3

Contents?: true

Size: 413 Bytes

Versions: 7

Compression:

Stored size: 413 Bytes

Contents

require 'spec_helper'

describe Poms::ScheduleEvent do
  let(:poms_broadcast) { Fabricate(:poms_broadcast) }
  let(:schedule_event) {poms_broadcast.schedule_events.first}

  it 'sets the start time' do
    expect(schedule_event.starts_at).to eq(Time.parse '2013-05-28 18:08:55 +0200')
  end

  it 'knows the end time' do
    expect(schedule_event.ends_at).to eq(Time.parse '2013-05-28 18:26:24 +0200')
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
poms-0.0.10 spec/lib/poms/schedule_event_spec.rb
poms-0.0.9 spec/lib/poms/schedule_event_spec.rb
poms-0.0.8 spec/lib/poms/schedule_event_spec.rb
poms-0.0.6 spec/lib/poms/schedule_event_spec.rb
poms-0.0.5 spec/lib/poms/schedule_event_spec.rb
poms-0.0.4 spec/lib/poms/schedule_event_spec.rb
poms-0.0.3 spec/lib/poms/schedule_event_spec.rb