Sha256: 028c38bb65ea50578f8f4c79fc12c742812647cdc0fd29a6fa5fb285a76d8537
Contents?: true
Size: 321 Bytes
Versions: 2
Compression:
Stored size: 321 Bytes
Contents
module Matchi # **Expecting errors** matcher. class RaiseException < BasicObject def initialize(expected) @expected = expected end # @return [Boolean] Comparison between actual and expected values. def matches? yield rescue @expected true else false end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
matchi-0.0.2 | lib/matchi/raise_exception.rb |
matchi-0.0.1 | lib/matchi/raise_exception.rb |