Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-04-16 23:25:25 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-04-16 23:30:16 +0300
commitdee52393b5b76c5d30addbfe7ba43e718b67a371 (patch)
treef8dc6343ca0e95ef7882e2916b10b4059da4173d /spec/models/commit_spec.rb
parent2dace3679fb9a086a015dcca213c6e563a08764e (diff)
Correct usage of `subject` in specs
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r--spec/models/commit_spec.rb3
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) } }