diff options
Diffstat (limited to 'spec/serializers/diff_file_entity_spec.rb')
-rw-r--r-- | spec/serializers/diff_file_entity_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/serializers/diff_file_entity_spec.rb b/spec/serializers/diff_file_entity_spec.rb index fbb45162136..5eee9c34e1e 100644 --- a/spec/serializers/diff_file_entity_spec.rb +++ b/spec/serializers/diff_file_entity_spec.rb @@ -84,8 +84,8 @@ RSpec.describe DiffFileEntity do let(:options) { { conflicts: {} } } it 'calls diff_lines_for_serializer on diff_file' do - # #diff_lines_for_serializer gets called in #fully_expanded? as well so we expect twice - expect(diff_file).to receive(:diff_lines_for_serializer).twice.and_return([]) + # #diff_lines_for_serializer gets called in #fully_expanded? and whitespace_only as well so we expect three calls + expect(diff_file).to receive(:diff_lines_for_serializer).exactly(3).times.and_return([]) expect(subject[:highlighted_diff_lines]).to eq([]) end end |