lib/rubocop/cop/rspec/expect_actual.rb in rubocop-rspec-2.0.0.pre vs lib/rubocop/cop/rspec/expect_actual.rb in rubocop-rspec-2.0.0
- old
+ new
@@ -46,10 +46,10 @@
SUPPORTED_MATCHERS = %i[eq eql equal be].freeze
def_node_matcher :expect_literal, <<~PATTERN
(send
(send nil? :expect $#literal?)
- #{Runners::ALL.node_pattern_union}
+ #Runners.all
{
(send (send nil? $:be) :== $_)
(send nil? $_ $_ ...)
}
)