summaryrefslogtreecommitdiff
path: root/spec/models/commit_spec.rb
diff options
context:
space:
mode:
authorHan Loong Liauw <hanloongliauw@gmail.com>2015-10-17 09:32:31 +1100
committerHan Loong Liauw <hanloongliauw@gmail.com>2015-10-17 09:32:31 +1100
commit02e8beaa0b83a343752ebf60e4fca4482c17f9e3 (patch)
treee00847b274daa7fa03fd7a4647154cc2e4d98e85 /spec/models/commit_spec.rb
parent0bea5ced8bf4c9306f8f8e912313731a43d16f4c (diff)
parentc856a7a5934fba13598be09507c2090888f57a39 (diff)
downloadgitlab-ce-02e8beaa0b83a343752ebf60e4fca4482c17f9e3.tar.gz
Merge branch 'master' into remove-forks-from-projects-settings
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r--spec/models/commit_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb
index e303a97e6b5..90be9324951 100644
--- a/spec/models/commit_spec.rb
+++ b/spec/models/commit_spec.rb
@@ -89,9 +89,9 @@ eos
end
it_behaves_like 'a mentionable' do
- subject { commit }
+ subject { create(:project).commit }
- let(:author) { create(:user, email: commit.author_email) }
+ let(:author) { create(:user, email: subject.author_email) }
let(:backref_text) { "commit #{subject.id}" }
let(:set_mentionable_text) do
->(txt) { allow(subject).to receive(:safe_message).and_return(txt) }