logo
首页技术栈工具库讨论
wrong

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.
由 
bruceshi2021-01-13 收录
--
推荐
不推荐
更多信息
GitHub iconsconover/wrong430
RUBYGEMS
gem install wrong
查看
标签
根据用户添加的标签生成
暂无标签