Fix broken specs

This commit is contained in:
Petko Bordjukov 2019-04-28 11:50:53 +03:00
parent e6b16ed1ae
commit c95a0c8d4b
2 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,7 @@
FactoryBot.define do
factory :conference do
sequence(:title) { |n| "Conference-#{n}" }
email
email { 'foo@example.com' }
description { 'MyText' }
start_date { '2014-07-29 21:29:13' }
end_date { '2014-07-31 21:29:13' }

View File

@ -1,7 +1,8 @@
require 'rails_helper'
RSpec.describe CallForParticipation, type: :model do
let(:cfp) { build :call_for_participation }
let(:conference) { create :conference }
subject(:cfp) { build :call_for_participation, conference_id: conference.id }
it 'belongs to a conference' do
conference = create :conference