Rubocop autocorrections

This commit is contained in:
James Mason 2018-11-13 18:01:49 -08:00
parent 299738f58d
commit 43bef689fc
85 changed files with 622 additions and 578 deletions

View file

@ -9,16 +9,16 @@ describe EventSerializer, type: :serializer do
it 'sets guid, title, length, abstract and type' do
expected_json = {
event: {
guid: event.guid,
title: 'Some Talk',
length: 30,
guid: event.guid,
title: 'Some Talk',
length: 30,
scheduled_date: '',
language: nil,
abstract: 'Lorem ipsum dolor sit amet',
speaker_ids: event.speaker_ids,
type: 'Example Event Type',
room: nil,
track: nil
language: nil,
abstract: 'Lorem ipsum dolor sit amet',
speaker_ids: event.speaker_ids,
type: 'Example Event Type',
room: nil,
track: nil
}
}.to_json
@ -41,16 +41,16 @@ describe EventSerializer, type: :serializer do
it 'sets guid, title, length, abstract, type, date, language, speakers, room and track' do
expected_json = {
event: {
guid: event.guid,
title: 'Some Talk',
length: 30,
guid: event.guid,
title: 'Some Talk',
length: 30,
scheduled_date: ' 2014-03-04T09:00:00+0000 ',
language: 'English',
abstract: 'Lorem ipsum dolor sit amet',
speaker_ids: [speaker.id],
type: 'Example Event Type',
room: room.guid,
track: track.guid
language: 'English',
abstract: 'Lorem ipsum dolor sit amet',
speaker_ids: [speaker.id],
type: 'Example Event Type',
room: room.guid,
track: track.guid
}
}.to_json