Sha256: d02383cb338f503e556d9c10cc5805a7765da886f7708fc0ca6c03fedaa26943

Contents?: true

Size: 421 Bytes

Versions: 6

Compression:

Stored size: 421 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

6 entries across 6 versions & 1 rubygems

Version Path
poms-1.2.2 spec/lib/poms/schedule_event_spec.rb
poms-1.2.1 spec/lib/poms/schedule_event_spec.rb
poms-1.2.0 spec/lib/poms/schedule_event_spec.rb
poms-1.1.0 spec/lib/poms/schedule_event_spec.rb
poms-1.0.1 spec/lib/poms/schedule_event_spec.rb
poms-1.0.0 spec/lib/poms/schedule_event_spec.rb