lib/rubocop/cop/rspec/named_subject.rb in rubocop-rspec-1.8.0 vs lib/rubocop/cop/rspec/named_subject.rb in rubocop-rspec-1.9.0
- old
+ new
@@ -36,11 +36,9 @@
# subject(:user) { described_class.new }
#
# it { should be_valid }
# end
class NamedSubject < Cop
- include RuboCop::RSpec::SpecOnly
-
MSG = 'Name your test subject if '\
'you need to reference it explicitly.'.freeze
def_node_matcher :rspec_block?, <<-PATTERN
(block