wrong
Wrong provides a general assert method that takes a predicate block. Assertion failure messages are rich in detail. The Wrong idea is to replace all those countless assert_this, assert_that library methods which only exist to give a more useful failure message than "assertion failed". Wrong replaces all of them in one fell swoop, since if you can write it in Ruby, Wrong can make a sensible failure message out of it. Also provided are several helper methods, like rescuing, capturing, and d.
Ecosystem
rubygems.org
rubygems.org
Latest Release
over 12 years ago
0.7.1
over 12 years ago
Versions
42
42
Downloads
590,791 total
590,791 total
Dependent Packages
68
68
Dependent Repos
265
265
Loading...
Readme
Loading...
Links
| Registry | rubygems.org |
| Source | Repository |
| Homepage | Homepage |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:gem/wrong
spec |
| License | MIT |
| First Release | over 15 years ago |
| Last Synced | 23 days ago |
Rankings on rubygems.org
Overall
Top 2.7%
Downloads
Top 3.7%
Dependent packages
Top 0.4%
Dependent repos
Top 1.9%
Forks
Top 4.9%
Docker downloads
Top 2.6%