gitlab-org--gitlab-foss/spec/serializers/board_serializer_spec.rb
charlieablett 27dd0b8e36 Use serialization for project boards
- Add serializers and Grape::Entity
- Replace to_json
- Add specs
2019-06-06 22:13:14 +12:00

20 lines
436 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
describe BoardSerializer do
let(:resource) { create(:board) }
let(:json_entity) do
described_class.new
.represent(resource, serializer: serializer)
.with_indifferent_access
end
context 'serialization' do
let(:serializer) { 'board' }
it 'matches issue_sidebar json schema' do
expect(json_entity).to match_schema('board')
end
end
end