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