lib/rubocop/cop/rspec/unspecified_exception.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/unspecified_exception.rb in rubocop-rspec-2.3.0
- old
+ new
@@ -32,9 +32,10 @@
# expect { do_something }.not_to raise_error
class UnspecifiedException < Base
MSG = 'Specify the exception being captured'
RESTRICT_ON_SEND = %i[to].freeze
+ # @!method empty_raise_error_or_exception(node)
def_node_matcher :empty_raise_error_or_exception, <<-PATTERN
(send
(block
(send nil? :expect) ...)
:to