Adapt serializer specs to the new format
This commit is contained in:
parent
ac3be77219
commit
4256cdc06b
5 changed files with 122 additions and 138 deletions
|
|
@ -8,11 +8,9 @@ describe TrackSerializer, type: :serializer do
|
|||
|
||||
it 'sets guild, name, color' do
|
||||
expected_json = {
|
||||
track: {
|
||||
guid: track.guid,
|
||||
name: track.name,
|
||||
color: track.color
|
||||
}
|
||||
guid: track.guid,
|
||||
name: track.name,
|
||||
color: track.color
|
||||
}.to_json
|
||||
|
||||
expect(serializer.to_json).to eq expected_json
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue