diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-04-16 16:25:25 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-04-16 16:30:16 -0400 |
commit | dee52393b5b76c5d30addbfe7ba43e718b67a371 (patch) | |
tree | f8dc6343ca0e95ef7882e2916b10b4059da4173d /spec/support | |
parent | 2dace3679fb9a086a015dcca213c6e563a08764e (diff) | |
download | gitlab-ce-dee52393b5b76c5d30addbfe7ba43e718b67a371.tar.gz |
Correct usage of `subject` in specs
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/mentionable_shared_examples.rb | 2 | ||||
-rw-r--r-- | spec/support/taskable_shared_examples.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/mentionable_shared_examples.rb b/spec/support/mentionable_shared_examples.rb index 305592fa5a6..35ed126b5bc 100644 --- a/spec/support/mentionable_shared_examples.rb +++ b/spec/support/mentionable_shared_examples.rb @@ -1,6 +1,6 @@ # Specifications for behavior common to all Mentionable implementations. # Requires a shared context containing: -# - let(:subject) { "the mentionable implementation" } +# - subject { "the mentionable implementation" } # - let(:backref_text) { "the way that +subject+ should refer to itself in backreferences " } # - let(:set_mentionable_text) { lambda { |txt| "block that assigns txt to the subject's mentionable_text" } } diff --git a/spec/support/taskable_shared_examples.rb b/spec/support/taskable_shared_examples.rb index 490f453d468..8e5e3a8aafc 100644 --- a/spec/support/taskable_shared_examples.rb +++ b/spec/support/taskable_shared_examples.rb @@ -1,7 +1,7 @@ # Specs for task state functionality for issues and merge requests. # # Requires a context containing: -# let(:subject) { Issue or MergeRequest } +# subject { Issue or MergeRequest } shared_examples 'a Taskable' do before do subject.description = <<EOT.gsub(/ {6}/, '') |