spec/support/corpus.rb
def assert_error(path, exception)
          original_error = exception.cause || exception

          raise exception unless map.fetch(original_error.inspect, []).include?(path)
        end
# Assert that we expect to encounter the provided exception for this path
#
# @param path [Pathname]
# @param exception [Exception]
#
# @raise provided exception if we are not expecting this error
#
# This method is reraising exceptions but rubocop can't tell
# rubocop:disable Style/SignalException
#
# @return [undefined]
Assert that we expect to encounter the provided exception for this path
Assert that we expect to encounter the provided exception for this path
def assert_error(path, exception)
          original_error = exception.cause || exception
          raise exception unless map.fetch(original_error.inspect, []).include?(path)
        end
def assert_error ( path , exception ) original_error = exception . cause || exception raise exception unless map . fetch ( original_error . inspect , [ ] ) . include? ( path ) end
Assert that we expect to encounter the provided exception for this path
Assert that we expect to encounter the provided exception for this path
None
undefined
provided exception if we are not expecting this error This method is reraising exceptions but rubocop can't tell rubocop:disable Style/SignalException
provided exception if we are not expecting this error This method is reraising exceptions but rubocop can ' t tell rubocop : disable Style / SignalException
path
exception
None