diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2018-11-30 06:16:40 +0300 |
---|---|---|
committer | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-12-19 12:58:53 +0300 |
commit | 199a4db2c4854b101370970546637c0d68e0b854 (patch) | |
tree | 4989028824595375ef0d2de4aea111e650e86ceb /spec/serializers/merge_request_serializer_spec.rb | |
parent | ddb1d326e06cc40d87b8eaa40aab7019447d6e5e (diff) |
Add schema tests
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' } |