FullCalendarFormatter spec init
This commit is contained in:
parent
5bc4a39c6c
commit
40916b6a36
3 changed files with 19 additions and 2 deletions
|
|
@ -0,0 +1,3 @@
|
|||
class FullCalendarFormatter
|
||||
def rooms_to_resources(rooms); end
|
||||
end
|
||||
|
|
@ -5,7 +5,7 @@ feature Schedule do
|
|||
let!(:program) { conference.program }
|
||||
|
||||
context 'as a conference participant' do
|
||||
scenario 'who visits the schedule page' do
|
||||
context 'who visits the schedule page' do
|
||||
before(:each) do
|
||||
visit vertical_schedule_conference_schedule_path
|
||||
end
|
||||
|
|
|
|||
14
spec/services/full_calendar_formatter_spec.rb
Normal file
14
spec/services/full_calendar_formatter_spec.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue