Sha256: bfd3bed60512b28e1a8952f34caf1cdf50061a36cef6bddac1eec8f279e78ce4
Contents?: true
Size: 379 Bytes
Versions: 74
Compression:
Stored size: 379 Bytes
Contents
module Insist::Raises # Assert raises def raises(exception_class) begin value rescue exception_class => e return # We're OK end assert(false, "Expected exception '#{exception_class}' but none was raised") end # def raises # Asserts a failure def fails raises(Insist::Failure) end # def fails end # module Insist::Raises
Version data entries
74 entries across 70 versions & 18 rubygems