lib/rubocop/cop/rspec/unspecified_exception.rb in rubocop-rspec-2.1.0 vs lib/rubocop/cop/rspec/unspecified_exception.rb in rubocop-rspec-2.2.0

- old
+ new

@@ -30,9 +30,10 @@ # }.to raise_error(/err/) # # expect { do_something }.not_to raise_error class UnspecifiedException < Base MSG = 'Specify the exception being captured' + RESTRICT_ON_SEND = %i[to].freeze def_node_matcher :empty_raise_error_or_exception, <<-PATTERN (send (block (send nil? :expect) ...)