summaryrefslogtreecommitdiff
path: root/spec/support/mentionable_shared_examples.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-10-12 16:23:15 +0200
committerDouwe Maan <douwe@gitlab.com>2015-10-12 16:23:15 +0200
commit6f35614852a7cf360bbc4af6ba6c450d8667c04e (patch)
treeff62ab82fafec3e8e40343f56c8d901705cc264d /spec/support/mentionable_shared_examples.rb
parent7a0cc665ff5ad3969f36082baa162a2169c34612 (diff)
downloadgitlab-ce-6f35614852a7cf360bbc4af6ba6c450d8667c04e.tar.gz
Fix mentionable specs
Diffstat (limited to 'spec/support/mentionable_shared_examples.rb')
-rw-r--r--spec/support/mentionable_shared_examples.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/mentionable_shared_examples.rb b/spec/support/mentionable_shared_examples.rb
index 220566a22b6..412c6f4ead8 100644
--- a/spec/support/mentionable_shared_examples.rb
+++ b/spec/support/mentionable_shared_examples.rb
@@ -5,7 +5,7 @@
# - let(:set_mentionable_text) { lambda { |txt| "block that assigns txt to the subject's mentionable_text" } }
def common_mentionable_setup
- let(:project) { create :project }
+ let(:project) { subject.project }
let(:author) { subject.author }
let(:mentioned_issue) { create(:issue, project: project) }