diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-12-21 16:03:15 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-12-21 17:35:54 +0300 |
commit | c27c65f97ac6c02a73661ebd66e728b6fd4a6039 (patch) | |
tree | e5dc96bc62a0e30070c87da75dde88ebc2c69f81 /spec/serializers/merge_request_serializer_spec.rb | |
parent | 3ee5fd156e3465a1e1c04b2b321c62b577496ee8 (diff) |
Fall back to the `MergeRequestWidgetEntity`
When no serializer was passed.
Diffstat (limited to 'spec/serializers/merge_request_serializer_spec.rb')
-rw-r--r-- | spec/serializers/merge_request_serializer_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/serializers/merge_request_serializer_spec.rb b/spec/serializers/merge_request_serializer_spec.rb index 1ad974c774b..b259cb92962 100644 --- a/spec/serializers/merge_request_serializer_spec.rb +++ b/spec/serializers/merge_request_serializer_spec.rb @@ -36,8 +36,8 @@ describe MergeRequestSerializer do context 'no serializer' do let(:serializer) { nil } - it 'raises an error' do - expect { json_entity }.to raise_error(NoMethodError) + it 'falls back to the widget entity' do + expect(json_entity).to match_schema('entities/merge_request_widget') end end end |