Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-08-16 02:45:23 +0300
committerDouwe Maan <douwe@selenight.nl>2016-08-16 19:04:26 +0300
commit41007f6d3c30a294bbf361ff900b3b19bb463291 (patch)
tree5a5bfd55bcac4587b737bd4bc877250469ff375c /spec/models/diff_note_spec.rb
parent32e31d626f743c22b5ed21c50555f4670d5290f9 (diff)
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