Skip to content

Instantly share code, notes, and snippets.

@fujimura
Created September 19, 2012 03:56
Show Gist options
  • Save fujimura/3747598 to your computer and use it in GitHub Desktop.
Save fujimura/3747598 to your computer and use it in GitHub Desktop.
unit_test_spec.rb
require 'minitest/autorun'
class TestC < MiniTest::Unit::TestCase
def test_foo_returns_one_for_1
assert C.new.foo(1) == "one"
end
def test_foo_returns_two_for_2
assert C.new.foo(2) == "two"
end
def test_foo_returns_three_for_3
assert C.new.foo(3) == "three"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment