diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-10-12 17:23:15 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-10-12 17:23:15 +0300 |
commit | 6f35614852a7cf360bbc4af6ba6c450d8667c04e (patch) | |
tree | ff62ab82fafec3e8e40343f56c8d901705cc264d /spec/models/commit_spec.rb | |
parent | 7a0cc665ff5ad3969f36082baa162a2169c34612 (diff) |
Fix mentionable specs
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) } |