[test]Move conference_schedule_spec to schedules_controller_spec

This commit is contained in:
Jimmy 2021-04-30 16:17:39 +08:00
parent c2981eab7b
commit e4abc009e2
No known key found for this signature in database
GPG key ID: FAE75C760A4A5CC6
2 changed files with 16 additions and 18 deletions

View file

@ -72,4 +72,20 @@ describe SchedulesController do
end end
end end
end end
describe 'GET #vertical_schedule' do
let!(:program) { conference.program }
context 'as a conference participant' do
context 'who visits the schedule page' do
before(:each) do
get :vertical_schedule, params: { conference_id: conference.short_title }
end
it 'returns a successful response' do
expect(response.status).to eq(200)
end
end
end
end
end end

View file

@ -1,18 +0,0 @@
require 'spec_helper'
feature Schedule do
let!(:conference) { create(:conference) }
let!(:program) { conference.program }
context 'as a conference participant' do
context 'who visits the schedule page' do
before(:each) do
visit vertical_schedule_conference_schedule_path
end
it 'returns a successful response' do
expect(response.status).to eq(200)
end
end
end
end