houndci fixes

This commit is contained in:
Gopesh Tulsyan 2014-05-26 15:43:19 +05:30
parent c67700e0ae
commit a0aa523122
11 changed files with 39 additions and 36 deletions

View file

@ -11,7 +11,7 @@ FactoryGirl.define do
end_date Date.tomorrow
factory :conference_with_sponsorship_level do
after(:build) do |conference|
conference.sponsorship_levels << build(:sponsorship_level, conference: conference)
conference.sponsorship_levels << build(:sponsorship_level, conference: conference)
end
end
end

View file

@ -11,9 +11,9 @@ FactoryGirl.define do
sponsorship_level
organization
after(:build) do |sponsorship_registration|
sponsorship_registration.sponsorship_level =
build(:sponsorship_level,
conference: sponsorship_registration.conference)
sponsorship_registration.sponsorship_level =
build(:sponsorship_level,
conference: sponsorship_registration.conference)
end
end
end