summaryrefslogtreecommitdiff
path: root/spec/models/diff_note_spec.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-08-15 18:45:23 -0500
committerDouwe Maan <douwe@selenight.nl>2016-08-16 11:04:26 -0500
commit41007f6d3c30a294bbf361ff900b3b19bb463291 (patch)
tree5a5bfd55bcac4587b737bd4bc877250469ff375c /spec/models/diff_note_spec.rb
parent32e31d626f743c22b5ed21c50555f4670d5290f9 (diff)
downloadgitlab-ce-41007f6d3c30a294bbf361ff900b3b19bb463291.tar.gz
Address review feedback
Diffstat (limited to 'spec/models/diff_note_spec.rb')
-rw-r--r--spec/models/diff_note_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/diff_note_spec.rb b/spec/models/diff_note_spec.rb
index 8aee3e11a4a..6b8e6577cfb 100644
--- a/spec/models/diff_note_spec.rb
+++ b/spec/models/diff_note_spec.rb
@@ -103,7 +103,7 @@ describe DiffNote, models: true do
describe "#active?" do
context "when noteable is a commit" do
- subject { create(:diff_note_on_commit, project: project, position: position) }
+ subject { build(:diff_note_on_commit, project: project, position: position) }
it "returns true" do
expect(subject.active?).to be true