clarion/spec/models/slot_spec.rb
Petko Bordjukov fac65a167a Add missing specs for Tracks, Halls and Slots
Document the behaviour of Tracks, Slots and Halls with specs. Leave the
association between slots and events pending for now.
2014-11-05 11:45:04 +02:00

15 lines
348 B
Ruby

require 'rails_helper'
RSpec.describe Slot, :type => :model do
it 'belongs to a hall' do
hall = create :hall
expect(build(:slot, hall_id: hall.id).hall).to eq hall
end
it 'belongs to an event' do
pending 'Events not implemented'
event = create :event
expect(build(:slot, event_id: event.id).event).to eq event
end
end