Skip to content

Instantly share code, notes, and snippets.

@apeiros
Created April 16, 2010 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apeiros/368898 to your computer and use it in GitHub Desktop.
Save apeiros/368898 to your computer and use it in GitHub Desktop.
BareTest.suite do
suite "Success" do
assert "Returning a trueish value (non nil/false) is a success" do
true
end
end
suite "Failure" do
assert "Returning a falsish value (nil/false) is a failure" do
false
end
end
suite "Pending" do
assert "Without a block is pending"
end
suite "Error" do
assert "Uncaught exceptions are an error" do
raise "Error!"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment