clarion/spec/models/call_for_participation_spec.rb

10 lines
303 B
Ruby
Raw Normal View History

2015-04-20 18:55:06 +03:00
require 'rails_helper'
RSpec.describe CallForParticipation, type: :model do
it 'belongs to a conference' do
conference = create :conference
cfp = create(:call_for_participation, conference_id: conference.id)
expect(CallForParticipation.find(cfp.id).conference).to eq conference
end
end