summaryrefslogtreecommitdiff
path: root/spec/serializers/board_serializer_spec.rb
blob: 8a633e46316bc3c6da04b95ee3b55f91e5507b6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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