Add tests for booth controller

This commit is contained in:
nasia 2017-07-16 18:20:12 +03:00 committed by Stella Rouzi
parent 0528dbf8e8
commit c6b0a1f52e
6 changed files with 161 additions and 7 deletions

View file

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

View file

@ -8,8 +8,6 @@ FactoryGirl.define do
conference
after(:build) do |booth|
booth.responsibles << create(:user)
end
responsible_ids { [create(:user).id] }
end
end