summaryrefslogtreecommitdiff
path: root/spec/support/mentionable_shared_examples.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/mentionable_shared_examples.rb')
-rw-r--r--spec/support/mentionable_shared_examples.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/support/mentionable_shared_examples.rb b/spec/support/mentionable_shared_examples.rb
index dde80b1e1dd..63800602e01 100644
--- a/spec/support/mentionable_shared_examples.rb
+++ b/spec/support/mentionable_shared_examples.rb
@@ -52,9 +52,10 @@ def common_mentionable_setup
}
extra_commits.each { |c| commitmap[c.short_id] = c }
- allow(project.repository).to receive(:commit) { |sha| commitmap[sha] }
-
+ allow(project).to receive(:commit) { |sha| commitmap[sha] }
+
set_mentionable_text.call(ref_string)
+ subject.save
end
end