Skip to content

Instantly share code, notes, and snippets.

@RobertDober
Created September 10, 2009 06:59
Show Gist options
  • Save RobertDober/184377 to your computer and use it in GitHub Desktop.
Save RobertDober/184377 to your computer and use it in GitHub Desktop.
require "rubygems"
require "shoulda"
class Test1 < Test::Unit::TestCase
context "a user" do
setup do
puts "setting up"
end
should "be true" do
puts "true"
assert true
end
should "be the answer" do
puts "42"
assert_equal 42, 0x2a
end
end
end #class Test
#
#
# Loaded suite xxx
# Started
# setting up
# 42
# .setting up
# true
# .
# Finished in 0.000807 seconds.
#
# 2 tests, 2 assertions, 0 failures, 0 errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment