mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Add tests for booth controller
This commit is contained in:
parent
0528dbf8e8
commit
c6b0a1f52e
6 changed files with 161 additions and 7 deletions
8
spec/factories/booth_request.rb
Normal file
8
spec/factories/booth_request.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
FactoryGirl.define do
|
||||
factory :booth_request do
|
||||
booth
|
||||
user
|
||||
role 'responsible'
|
||||
|
||||
end
|
||||
end
|
||||
|
|
@ -8,8 +8,6 @@ FactoryGirl.define do
|
|||
|
||||
conference
|
||||
|
||||
after(:build) do |booth|
|
||||
booth.responsibles << create(:user)
|
||||
end
|
||||
responsible_ids { [create(:user).id] }
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue