diff options
Diffstat (limited to 'spec/serializers/issue_serializer_spec.rb')
-rw-r--r-- | spec/serializers/issue_serializer_spec.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/spec/serializers/issue_serializer_spec.rb b/spec/serializers/issue_serializer_spec.rb index b9946515f26..b8255e004d0 100644 --- a/spec/serializers/issue_serializer_spec.rb +++ b/spec/serializers/issue_serializer_spec.rb @@ -18,13 +18,21 @@ describe IssueSerializer do end context 'sidebar issue serialization' do - let(:serializer) { 'sidebar_extras' } + let(:serializer) { 'sidebar' } - it 'matches sidebar issue json schema' do + it 'matches issue_sidebar json schema' do expect(json_entity).to match_schema('entities/issue_sidebar') end end + context 'sidebar extras issue serialization' do + let(:serializer) { 'sidebar_extras' } + + it 'matches issue_sidebar_extras json schema' do + expect(json_entity).to match_schema('entities/issue_sidebar_extras') + end + end + context 'board issue serialization' do let(:serializer) { 'board' } |