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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue