diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-10-06 01:36:20 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-10-06 01:36:20 +0300 |
commit | caf10464c0e78817c91ff01e3be5f2f9472aba19 (patch) | |
tree | ba7e070f9266532fa9eefacc4712cf8690e30369 /spec/serializers/diff_file_entity_spec.rb | |
parent | 1bd08177761a6599d2ebfdfb02bcadee574e9c44 (diff) |
Fix LFS uploaded images not being rendered
Diffstat (limited to 'spec/serializers/diff_file_entity_spec.rb')
-rw-r--r-- | spec/serializers/diff_file_entity_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/serializers/diff_file_entity_spec.rb b/spec/serializers/diff_file_entity_spec.rb index 3d90ce44dfb..7497b8f27bd 100644 --- a/spec/serializers/diff_file_entity_spec.rb +++ b/spec/serializers/diff_file_entity_spec.rb @@ -26,6 +26,11 @@ describe DiffFileEntity do ) end + it 'includes viewer' do + expect(subject[:viewer].with_indifferent_access) + .to match_schema('entities/diff_viewer') + end + # Converted diff files from GitHub import does not contain blob file # and content sha. context 'when diff file does not have a blob and content sha' do |