Sha256: 5a73f5a23146e109ff42fadf4fcc1b34bd6fba26357431d312503041b79f6de9
Contents?: true
Size: 798 Bytes
Versions: 2
Compression:
Stored size: 798 Bytes
Contents
covers 'assay/nomatch_assay' testcase NoMatchAssay do class_method :pass? do test do assert NoMatchAssay.pass?('b', /a/) assert NoMatchAssay.pass?('a', /b/) refute NoMatchAssay.pass?('a', /a/) end end class_method :fail? do test do refute NoMatchAssay.fail?('b', /a/) refute NoMatchAssay.fail?('a', /b/) assert NoMatchAssay.fail?('a', /a/) end end class_method :assert! do test do NoMatchAssay.assert!('a', /b/) end test do expect NoMatchAssay do NoMatchAssay.assert!('a', /a/) end end end class_method :refute! do test do NoMatchAssay.refute!('a', /a/) end test do expect NoMatchAssay do NoMatchAssay.refute!('a', /b/) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
assay-0.4.1 | test/case_nomatch_assay.rb |
assay-0.4.0 | test/case_nomatch_assay.rb |