add booth_request factory

This commit is contained in:
nasia 2017-07-19 19:17:26 +03:00
parent 48a475ca12
commit 4f99584b28
3 changed files with 26 additions and 12 deletions

View file

@ -0,0 +1,8 @@
FactoryGirl.define do
factory :booth_request do
booth
user
role 'responsible'
end
end

View file

@ -9,7 +9,8 @@ FactoryGirl.define do
conference
after(:build) do |booth|
booth.responsibles << create(:user)
booth.responsibles << create(:booth_request).user
end
end
end