diff options
Diffstat (limited to 'spec/models/discussion_spec.rb')
-rw-r--r-- | spec/models/discussion_spec.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/models/discussion_spec.rb b/spec/models/discussion_spec.rb index 212619a1c3d..7bd3c5743a6 100644 --- a/spec/models/discussion_spec.rb +++ b/spec/models/discussion_spec.rb @@ -37,10 +37,11 @@ RSpec.describe Discussion do describe '.build_collection' do it 'returns an array of discussions of the right type' do discussions = described_class.build_collection([first_note, second_note, third_note], merge_request) - expect(discussions).to eq([ - DiffDiscussion.new([first_note, second_note], merge_request), - DiffDiscussion.new([third_note], merge_request) - ]) + expect(discussions).to eq( + [ + DiffDiscussion.new([first_note, second_note], merge_request), + DiffDiscussion.new([third_note], merge_request) + ]) end end |