diff options
Diffstat (limited to 'spec/serializers/diff_file_entity_spec.rb')
-rw-r--r-- | spec/serializers/diff_file_entity_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/serializers/diff_file_entity_spec.rb b/spec/serializers/diff_file_entity_spec.rb index bebe2e2dfb5..1b8456e5c49 100644 --- a/spec/serializers/diff_file_entity_spec.rb +++ b/spec/serializers/diff_file_entity_spec.rb @@ -69,4 +69,15 @@ RSpec.describe DiffFileEntity do end end end + + describe '#is_fully_expanded' do + context 'file with a conflict' do + let(:options) { { conflicts: { diff_file.new_path => double(diff_lines_for_serializer: []) } } } + + it 'returns false' do + expect(diff_file).not_to receive(:fully_expanded?) + expect(subject[:is_fully_expanded]).to eq(false) + end + end + end end |