Created
September 19, 2012 03:56
-
-
Save fujimura/3747598 to your computer and use it in GitHub Desktop.
unit_test_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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