File: fail_custom_assertion.rb

package info (click to toggle)
ruby-cutest 1.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 176 kB
  • sloc: ruby: 376; makefile: 14
file content (7 lines) | stat: -rw-r--r-- 126 bytes parent folder | download
1
2
3
4
5
6
7
def assert_empty(string)
  assert(string.empty?, "not empty")
end

test "failed custom assertion" do
  assert_empty "foo"
end