summaryrefslogtreecommitdiff
path: root/spec/serializers/board_serializer_spec.rb
blob: 9e6d5a93d532007ede9c215927308e253a8f4928 (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'

RSpec.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