Sha256: 585973de81b7f70cab03312182dd9b9fdfb32a30419dbe9e9aa2ed660e9703ce
Contents?: true
Size: 821 Bytes
Versions: 2
Compression:
Stored size: 821 Bytes
Contents
covers 'assay/true_assay' testcase TrueAssay do class_method :pass? do test do assert TrueAssay.pass?(true) refute TrueAssay.pass?(nil) refute TrueAssay.pass?(false) refute TrueAssay.pass?(:foobar) end end class_method :fail? do test do refute TrueAssay.fail?(true) assert TrueAssay.fail?(nil) assert TrueAssay.fail?(false) assert TrueAssay.fail?(:foobar) end end class_method :assert! do test do TrueAssay.assert!(true) end test do expect TrueAssay do TrueAssay.assert!(false) end end end class_method :refute! do test do TrueAssay.refute!(nil) TrueAssay.refute!(false) end test do expect TrueAssay do TrueAssay.refute!(true) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
assay-0.4.1 | test/case_true_assay.rb |
assay-0.4.0 | test/case_true_assay.rb |