diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-04-16 23:25:25 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-04-16 23:30:16 +0300 |
commit | dee52393b5b76c5d30addbfe7ba43e718b67a371 (patch) | |
tree | f8dc6343ca0e95ef7882e2916b10b4059da4173d /spec/models/commit_spec.rb | |
parent | 2dace3679fb9a086a015dcca213c6e563a08764e (diff) |
Correct usage of `subject` in specs
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r-- | spec/models/commit_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb index 11cc7762ce4..2cc23efb986 100644 --- a/spec/models/commit_spec.rb +++ b/spec/models/commit_spec.rb @@ -69,8 +69,9 @@ eos end it_behaves_like 'a mentionable' do - let(:subject) { commit } let(:mauthor) { create :user, email: commit.author_email } + subject { commit } + let(:backref_text) { "commit #{subject.id}" } let(:set_mentionable_text) { ->(txt){ subject.stub(safe_message: txt) } } |