lib/rubocop/cop/rspec/leading_subject.rb in rubocop-rspec-1.12.0 vs lib/rubocop/cop/rspec/leading_subject.rb in rubocop-rspec-1.13.0
- old
+ new
@@ -25,10 +25,10 @@
# it 'is valid' do
# expect(subject.valid?).to be(true)
# end
# end
class LeadingSubject < Cop
- MSG = 'Declare `subject` above any other `let` declarations'.freeze
+ MSG = 'Declare `subject` above any other `let` declarations.'.freeze
def_node_matcher :subject?, '(block $(send nil :subject ...) args ...)'
def on_block(node)
return unless subject?(node) && !in_spec_block?(node)