Introduce Booths for admin
This commit is contained in:
parent
29aee82a14
commit
f7c0b64eb5
22 changed files with 534 additions and 1 deletions
15
spec/factories/booths.rb
Normal file
15
spec/factories/booths.rb
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
FactoryGirl.define do
|
||||
factory :booth do
|
||||
title { Faker::Hipster.sentence }
|
||||
description { Faker::Lorem.paragraph }
|
||||
reasoning { Faker::Lorem.paragraph }
|
||||
website_url { Faker::Internet.url }
|
||||
submitter_relationship { Faker::Lorem.paragraph }
|
||||
|
||||
conference
|
||||
|
||||
after(:build) do |booth|
|
||||
booth.responsibles << create(:user)
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue