lib/rubocop/cop/rspec/be.rb in rubocop-rspec-2.15.0 vs lib/rubocop/cop/rspec/be.rb in rubocop-rspec-2.16.0
- old
+ new
@@ -19,9 +19,11 @@
# expect(foo).to be(true)
#
class Be < Base
MSG = "Don't use `be` without an argument."
+ RESTRICT_ON_SEND = Runners.all
+
# @!method be_without_args(node)
def_node_matcher :be_without_args, <<-PATTERN
(send _ #Runners.all $(send nil? :be))
PATTERN