Fix the test failures
This commit is contained in:
parent
50e876dd6f
commit
e85ecede4c
29 changed files with 232 additions and 232 deletions
|
|
@ -36,29 +36,29 @@ describe ApplicationHelper, type: :helper do
|
|||
|
||||
describe 'does return correct concurrent events' do
|
||||
it 'when events starts at the same time' do
|
||||
expect(concurrent_events(event).include?(@other_event)).to eq true
|
||||
expect(concurrent_events(event).include?(@other_event)).to be true
|
||||
end
|
||||
|
||||
it 'when event is in between the other event' do
|
||||
@event_schedule.update_attribute(:start_time, @other_event_schedule.start_time + 10.minutes)
|
||||
expect(concurrent_events(event).include?(@other_event)).to eq true
|
||||
expect(concurrent_events(event).include?(@other_event)).to be true
|
||||
end
|
||||
end
|
||||
|
||||
describe 'does not return as concurrent event ' do
|
||||
describe 'does not return as concurrent event' do
|
||||
it 'when event is not scheduled' do
|
||||
@event_schedule.destroy
|
||||
expect(concurrent_events(event).present?).to eq false
|
||||
expect(concurrent_events(event).present?).to be false
|
||||
end
|
||||
|
||||
it 'when one event starts and other ends at the same time' do
|
||||
@event_schedule.update_attribute(:start_time, @other_event_schedule.end_time)
|
||||
expect(concurrent_events(event).present?).to eq false
|
||||
expect(concurrent_events(event).present?).to be false
|
||||
end
|
||||
|
||||
it 'when conference program does not have a selected schedule' do
|
||||
conference.program.update_attribute(:selected_schedule_id, nil)
|
||||
expect(concurrent_events(event).present?).to eq false
|
||||
expect(concurrent_events(event).present?).to be false
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue