spec/support/corpus.rb
# Assert that we expect to not encounter an error for the specified path
#
# @param path [Pathname]
#
# @raise [UnnecessaryExpectation] if we are expecting an exception for this path
#
# @return [undefined]
Assert that we expect to not encounter an error for the specified path
Assert that we expect to not encounter an error for the specified path
def assert_success(path)
          map.each do |error, paths|
            fail UnnecessaryExpectation.new(error, path) if paths.include?(path)
          end
        end
def assert_success ( path ) map . each do | error , paths | fail UnnecessaryExpectation . new ( error , path ) if paths . include? ( path ) end end
Assert that we expect to not encounter an error for the specified path
Assert that we expect to not encounter an error for the specified path
None
undefined
[UnnecessaryExpectation] if we are expecting an exception for this path
[ UnnecessaryExpectation ] if we are expecting an exception for this path
path
None