diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-10-14 22:42:59 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-10-14 22:42:59 +0200 |
commit | ef44138ce42de6a02724a7be10b6eb08873a3c1e (patch) | |
tree | 2ed4084aabf42a046d4cd0d2ad5441dc66b9fc9e /spec/models/commit_spec.rb | |
parent | 528d2823e9888ae09aa03b72c2e61cd0b9a39937 (diff) | |
parent | 123669a55107514798ba531ba3a744b3ec8503ee (diff) | |
download | gitlab-ce-ef44138ce42de6a02724a7be10b6eb08873a3c1e.tar.gz |
Merge branch 'master' into rs-redactor-filter
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r-- | spec/models/commit_spec.rb | 4 |
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) } |