Fix rspec tests because of the changes to the cfp
Remove redundant association Note: a conference created with :full_conference already has a cfp
This commit is contained in:
parent
2bff918556
commit
a1124546f1
16 changed files with 78 additions and 74 deletions
|
|
@ -46,9 +46,10 @@ describe EmailSettings do
|
|||
|
||||
context 'conference has cfp' do
|
||||
before do
|
||||
conference.program.update_attributes(cfp: create(:cfp,
|
||||
start_date: Date.new(2014, 04, 29),
|
||||
end_date: Date.new(2014, 05, 06)))
|
||||
create(:cfp,
|
||||
start_date: Date.new(2014, 04, 29),
|
||||
end_date: Date.new(2014, 05, 06),
|
||||
program: conference.program)
|
||||
cfp_dates_hash = { 'cfp_start_date' => Date.new(2014, 04, 29), 'cfp_end_date' => Date.new(2014, 05, 06) }
|
||||
expected_hash.merge!(cfp_dates_hash)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue