summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-21 18:38:26 +0200
committerDouwe Maan <douwe@gitlab.com>2015-04-24 12:31:16 +0200
commit889832578afcf668a15deca1fe3c84b9498bcd1d (patch)
tree529e37d024c2a96f0890fe648a3c1ae663b42540 /spec/support
parent0db79443eeaca358f74793f0dafe52f52c5b4497 (diff)
downloadgitlab-ce-889832578afcf668a15deca1fe3c84b9498bcd1d.tar.gz
Fix small issues.
Diffstat (limited to 'spec/support')
-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