Adapt serializer specs to the new format

This commit is contained in:
James Mason 2018-09-29 16:13:38 -07:00
parent a20dcc6125
commit 709ddbc9e9
No known key found for this signature in database
GPG key ID: 1B3951886C449023
5 changed files with 122 additions and 138 deletions

View file

@ -7,11 +7,9 @@ describe RoomSerializer, type: :serializer do
it 'set guid, name and description' do
expected_json = {
room: {
guid: room.guid,
name: room.name,
description: ''
}
guid: room.guid,
name: room.name,
description: ''
}.to_json
expect(serializer.to_json).to eq expected_json