Sha256: 99cff44f4375f81a3f1dd22c51f701efebf1bd57a26486ce23faf2825bc957ac
Contents?: true
Size: 768 Bytes
Versions: 2
Compression:
Stored size: 768 Bytes
Contents
covers 'assay/match_assay' testcase MatchAssay do class_method :pass? do test do assert MatchAssay.pass?('a', /a/) refute MatchAssay.pass?('b', /a/) refute MatchAssay.pass?('a', /b/) end end class_method :fail? do test do refute MatchAssay.fail?('a', /a/) assert MatchAssay.fail?('b', /a/) assert MatchAssay.fail?('a', /b/) end end class_method :assert! do test do MatchAssay.assert!('a', /a/) end test do expect MatchAssay do MatchAssay.assert!('a', /b/) end end end class_method :refute! do test do MatchAssay.refute!('a', /b/) end test do expect MatchAssay do MatchAssay.refute!('a', /a/) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
assay-0.4.1 | test/case_match_assay.rb |
assay-0.4.0 | test/case_match_assay.rb |