View specs, added factories, fixed bugs
This commit is contained in:
parent
322ddd1501
commit
d1e9bd06a6
33 changed files with 319 additions and 12 deletions
11
spec/factories/vpositions.rb
Normal file
11
spec/factories/vpositions.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
FactoryGirl.define do
|
||||
factory :vposition do
|
||||
title 'Example Volunteer Position'
|
||||
description 'Lorem Ipsum dolsum'
|
||||
conference
|
||||
|
||||
after(:build) do |vposition|
|
||||
vposition.vdays << build(:vday, conference: vposition.conference)
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue