diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-23 18:46:52 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-24 12:31:57 +0200 |
commit | 077a8ec270b58ed099d13447841d51b2df70541b (patch) | |
tree | 540af919d11c1a254de49928e7423269486f13cc | |
parent | 04020d5e2038e9acd31147c16dc07fb5a2360a24 (diff) | |
download | gitlab-ce-077a8ec270b58ed099d13447841d51b2df70541b.tar.gz |
Fix tests.commit-project
-rw-r--r-- | spec/support/mentionable_shared_examples.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/mentionable_shared_examples.rb b/spec/support/mentionable_shared_examples.rb index 63800602e01..9d0af29ff99 100644 --- a/spec/support/mentionable_shared_examples.rb +++ b/spec/support/mentionable_shared_examples.rb @@ -52,10 +52,9 @@ def common_mentionable_setup } extra_commits.each { |c| commitmap[c.short_id] = c } - allow(project).to receive(:commit) { |sha| commitmap[sha] } + allow(project.repository).to receive(:commit) { |sha| commitmap[sha] } set_mentionable_text.call(ref_string) - subject.save end end @@ -108,6 +107,8 @@ shared_examples 'an editable mentionable' do end it 'creates new cross-reference notes when the mentionable text is edited' do + subject.save + cross = ext_proj.path_with_namespace new_text = <<-MSG @@ -136,7 +137,6 @@ shared_examples 'an editable mentionable' do with(newref, subject.local_reference, author) end - subject.save set_mentionable_text.call(new_text) subject.notice_added_references(project, author) end |