[fix] Fix style; Fix start_hour and end_hour in test

This commit is contained in:
Jimmy 2021-03-19 17:22:08 +08:00
parent 1c54d38094
commit 3019a022c7
3 changed files with 3 additions and 2 deletions

View file

@ -30,7 +30,7 @@ describe SchedulesController do
describe 'GET #happening_now' do
before do
@conference2 = create(:full_conference, start_date: 1.day.ago, end_date: 7.days.from_now)
@conference2 = create(:full_conference, start_date: 1.day.ago, end_date: 7.days.from_now, start_hour: 0, end_hour: 24)
@program = @conference2.program
@selected_schedule = create(:schedule, program: @program)
@program.update_attributes!(selected_schedule: @selected_schedule)