Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (9 sloc) 232 Bytes
---
assert_nothing_raised: |-
# 'cheat assertions' for the rest
assert_nothing_raised(*args) {|| ...}
Passes if block does not raise an exception.
Example:
assert_nothing_raised do
[1, 2].uniq
end