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

@ -6,8 +6,8 @@ describe ConferenceSerializer, type: :serializer do
let(:conference) do
create(:conference, short_title: 'goto',
description: 'Lorem ipsum dolor sit',
start_date: Date.new(2014, 03, 04),
end_date: Date.new(2014, 03, 10))
start_date: Date.new(2014, 03, 04),
end_date: Date.new(2014, 03, 10))
end
let(:serializer) { ConferenceSerializer.new(conference) }

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

View file

@ -8,8 +8,8 @@ describe RoomSerializer, type: :serializer do
it 'set guid, name and description' do
expected_json = {
room: {
guid: room.guid,
name: room.name,
guid: room.guid,
name: room.name,
description: ''
}
}.to_json

View file

@ -9,9 +9,9 @@ describe SpeakerSerializer, type: :serializer do
it 'sets name and affiliation' do
expected_json = {
speaker: {
name: 'John Doe',
name: 'John Doe',
affiliation: 'JohnDoesInc',
biography: nil
biography: nil
}
}.to_json
@ -25,9 +25,9 @@ describe SpeakerSerializer, type: :serializer do
it 'sets name, affiliation and biography' do
expected_json = {
speaker: {
name: 'John Doe',
name: 'John Doe',
affiliation: 'JohnDoesInc',
biography: 'Doest of all Jon Does'
biography: 'Doest of all Jon Does'
}
}.to_json

View file

@ -9,8 +9,8 @@ describe TrackSerializer, type: :serializer do
it 'sets guild, name, color' do
expected_json = {
track: {
guid: track.guid,
name: track.name,
guid: track.guid,
name: track.name,
color: track.color
}
}.to_json