lib/rubocop/cop/rspec/let_setup.rb in rubocop-rspec-1.8.0 vs lib/rubocop/cop/rspec/let_setup.rb in rubocop-rspec-1.9.0

- old
+ new

@@ -24,13 +24,10 @@ # # it 'counts widgets' do # expect(Widget.count).to eq(1) # end class LetSetup < Cop - include RuboCop::RSpec::SpecOnly, - RuboCop::RSpec::TopLevelDescribe, - RuboCop::RSpec::Language, - RuboCop::RSpec::Language::NodePattern + include RuboCop::RSpec::TopLevelDescribe MSG = 'Do not use `let!` for test setup.'.freeze def_node_search :let_bang, '(block $(send nil :let! (sym $_)) args ...)'