mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
17 lines
383 B
Ruby
17 lines
383 B
Ruby
require 'spec_helper'
|
|
describe RoomSerializer, type: :serializer do
|
|
let(:room) { create(:room) }
|
|
let(:serializer) { RoomSerializer.new(room) }
|
|
|
|
it 'set guid, name and description' do
|
|
expected_json = {
|
|
room: {
|
|
guid: room.guid,
|
|
name: room.name,
|
|
description: ''
|
|
}
|
|
}.to_json
|
|
|
|
expect(serializer.to_json).to eq expected_json
|
|
end
|
|
end
|