Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (9 sloc) 228 Bytes
---
assert_nothing_thrown: |-
# 'cheat assertions' for the rest
assert_nothing_thrown(message="", &proc)
Passes if block does not throw anything.
Example:
assert_nothing_thrown do
[1, 2].uniq
end