lib/rubocop/cop/rspec/implicit_expect.rb in rubocop-rspec-1.32.0 vs lib/rubocop/cop/rspec/implicit_expect.rb in rubocop-rspec-1.33.0

- old
+ new

@@ -25,15 +25,15 @@ # it { should be_truthy } # class ImplicitExpect < Cop include ConfigurableEnforcedStyle - MSG = 'Prefer `%<good>s` over `%<bad>s`.'.freeze + MSG = 'Prefer `%<good>s` over `%<bad>s`.' def_node_matcher :implicit_expect, <<-PATTERN { (send nil? ${:should :should_not} ...) - (send (send nil? $:is_expected) {:to :to_not :not_to} ...) + (send (send nil? $:is_expected) #{Runners::ALL.node_pattern_union} ...) } PATTERN alternatives = { 'is_expected.to' => 'should',