Sha256: 660f185896c58e2c91192d877a44dc03262006772d748f92095b09b7884270c5
Contents?: true
Size: 443 Bytes
Versions: 1
Compression:
Stored size: 443 Bytes
Contents
require_relative File.join 'support', 'coverage' require_relative File.join '..', 'lib', 'matchi' # It is expected to be true fail unless Matchi.fetch(:RaiseException, ZeroDivisionError).matches? { 0 / 0 } # It is expected to be false fail if Matchi.fetch(:RaiseException, ZeroDivisionError).matches? { 'bar' } # It is expected to raise begin Matchi.fetch(:RaiseException, ZeroDivisionError).matches? { BOOM } rescue NameError true end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
matchi-0.0.6 | test/test_raise_exception.rb |