diff options
author | Felipe Artur <felipefac@gmail.com> | 2017-11-13 21:38:15 +0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2017-11-13 21:40:54 +0300 |
commit | aefefbf11701042ae59a60818e3f957b30831dfd (patch) | |
tree | 8d8bd3d7a63ba2767b3e37dcb9bc00af80552d92 /spec/models/diff_note_spec.rb | |
parent | 9200b500125d15a56d10e66c9bcd78943e4386b1 (diff) |
Prevents position update for image diff notes
Diffstat (limited to 'spec/models/diff_note_spec.rb')
-rw-r--r-- | spec/models/diff_note_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/diff_note_spec.rb b/spec/models/diff_note_spec.rb index da972d2d86a..8389d5c5430 100644 --- a/spec/models/diff_note_spec.rb +++ b/spec/models/diff_note_spec.rb @@ -283,6 +283,12 @@ describe DiffNote do expect(diff_line).to be nil expect(subject).to be_valid end + + it "does not update the position" do + expect(subject).not_to receive(:update_position) + + subject.save + end end it "returns true for on_image?" do |