diff options
Diffstat (limited to 'spec/serializers/merge_request_serializer_spec.rb')
-rw-r--r-- | spec/serializers/merge_request_serializer_spec.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/spec/serializers/merge_request_serializer_spec.rb b/spec/serializers/merge_request_serializer_spec.rb index 2c91e620dcd..276e0f6ff3d 100644 --- a/spec/serializers/merge_request_serializer_spec.rb +++ b/spec/serializers/merge_request_serializer_spec.rb @@ -18,13 +18,21 @@ describe MergeRequestSerializer do end context 'sidebar merge request serialization' do - let(:serializer) { 'sidebar_extras' } + let(:serializer) { 'sidebar' } - it 'matches sidebar merge request json schema' do + it 'matches merge_request_sidebar json schema' do expect(json_entity).to match_schema('entities/merge_request_sidebar') end end + context 'sidebar_extras merge request serialization' do + let(:serializer) { 'sidebar_extras' } + + it 'matches merge_request_sidebar_extras json schema' do + expect(json_entity).to match_schema('entities/merge_request_sidebar_extras') + end + end + context 'basic merge request serialization' do let(:serializer) { 'basic' } |