Sha256: c3f9e488abc5a1fb95c8a71dece962326d9448966ac91acc23794ac1912c938a
Contents?: true
Size: 816 Bytes
Versions: 2
Compression:
Stored size: 816 Bytes
Contents
covers 'assay/like_assay' testcase LikeAssay do class_method :pass? do test do assert LikeAssay.pass?(1, 1) assert LikeAssay.pass?(1, 1.0) assert LikeAssay.pass?(1, Integer) refute LikeAssay.pass?(1, 2) end end class_method :fail? do test do refute LikeAssay.fail?(1, 1) refute LikeAssay.fail?(1, 1.0) refute LikeAssay.fail?(1, Integer) assert LikeAssay.fail?(1, 2) end end class_method :assert! do test do LikeAssay.assert!(1, Numeric) end test do expect LikeAssay do LikeAssay.assert!(1, 2) end end end class_method :refute! do test do LikeAssay.refute!(1, 2) end test do expect LikeAssay do LikeAssay.refute!(1, 1) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
assay-0.4.1 | test/case_like_assay.rb |
assay-0.4.0 | test/case_like_assay.rb |