FullCalendarFormatter spec init

This commit is contained in:
Ziyi 2021-04-24 19:30:52 -07:00 committed by CactusPuppy
parent 5bc4a39c6c
commit 40916b6a36
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82
3 changed files with 19 additions and 2 deletions

View file

@ -0,0 +1,3 @@
class FullCalendarFormatter
def rooms_to_resources(rooms); end
end

View file

@ -5,10 +5,10 @@ feature Schedule do
let!(:program) { conference.program } let!(:program) { conference.program }
context 'as a conference participant' do context 'as a conference participant' do
scenario 'who visits the schedule page' do context 'who visits the schedule page' do
before(:each) do before(:each) do
visit vertical_schedule_conference_schedule_path visit vertical_schedule_conference_schedule_path
end end
end end
end end
end end

View file

@ -0,0 +1,14 @@
# frozen_string_literal: true
require 'spec_helper'
describe FullCalendarFormatter do
let!(:room0) { create(:room) }
let!(:room1) { create(:room) }
describe 'JSON formatting for FullCalendar' do
it 'translates rooms to resources' do
room_list = [room1, room2] # TODO
end
end
end