diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-04-24 11:13:08 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-04-24 11:17:15 -0500 |
commit | 63d38a303b47d73b3d97a2c8f8ffb5271d39c13d (patch) | |
tree | ef2df9a863308202b72c11ba609a1d5f449c2bc5 /spec | |
parent | 1005389f70070245092c1ae5f3f9b10b8e7c102e (diff) | |
download | gitlab-ce-63d38a303b47d73b3d97a2c8f8ffb5271d39c13d.tar.gz |
Fix commenting on an existing discussion on an unchanged line that is no longer in the diff
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/diff/position_tracer_spec.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/spec/lib/gitlab/diff/position_tracer_spec.rb b/spec/lib/gitlab/diff/position_tracer_spec.rb index c166f83664a..a10a251dc4a 100644 --- a/spec/lib/gitlab/diff/position_tracer_spec.rb +++ b/spec/lib/gitlab/diff/position_tracer_spec.rb @@ -569,13 +569,8 @@ describe Gitlab::Diff::PositionTracer, lib: true do # 1 1 BB # 2 2 A - it "returns the new position" do - expect_new_position( - old_path: file_name, - new_path: new_file_name, - old_line: old_position.new_line, - new_line: old_position.new_line - ) + it "returns nil since the line doesn't exist in the new diffs anymore" do + expect(subject).to be_nil end end |