Sha256: fe5b4265e208b0306c66a8d32779f15d0f6297cbc5958c6362ef1c47bbcfb2ad
Contents?: true
Size: 776 Bytes
Versions: 2
Compression:
Stored size: 776 Bytes
Contents
covers 'assay/throw_assay' testcase ThrowAssay do class_method :pass? do test do assert ThrowAssay.pass?(:foo){ throw :foo } refute ThrowAssay.pass?(:foo){ throw :bar } end end class_method :fail? do test do assert ThrowAssay.fail?(:foo){ throw :bar } refute ThrowAssay.fail?(:foo){ throw :foo } end end class_method :assert! do test do ThrowAssay.assert!(:foo){ throw :foo } end test do expect ThrowAssay do ThrowAssay.assert!(:bar){ throw :foo } end end end class_method :refute! do test do ThrowAssay.refute!(:bar){ throw :foo } end test do expect ThrowAssay do ThrowAssay.refute!(:bar){ throw :bar } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
assay-0.4.1 | test/case_throw_assay.rb |
assay-0.4.0 | test/case_throw_assay.rb |