Skip to content

Instantly share code, notes, and snippets.

@jarib
Created September 22, 2008 14:49
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 jarib/12002 to your computer and use it in GitHub Desktop.
Save jarib/12002 to your computer and use it in GitHub Desktop.
require "test/unit"
class Foo < Test::Unit::TestCase
0.upto(10) do |n|
define_method("test_#{n}") do
assert_equal(n, @data[n])
end
end
def setup
@data = [0,1,2,3,4,5,6,7,8,9,0]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment