diff options
Diffstat (limited to 'spec/serializers')
-rw-r--r-- | spec/serializers/board_serializer_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/serializers/board_serializer_spec.rb b/spec/serializers/board_serializer_spec.rb new file mode 100644 index 00000000000..8a633e46316 --- /dev/null +++ b/spec/serializers/board_serializer_spec.rb @@ -0,0 +1,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 |