class TestAdder
Public Instance Methods
setup()
click to toggle source
# File test-unit-3.3.4/sample/test_adder.rb, line 9 def setup @adder = Adder.new(5) end
teardown()
click to toggle source
# File test-unit-3.3.4/sample/test_adder.rb, line 17 def teardown @adder = nil end
test_add()
click to toggle source
# File test-unit-3.3.4/sample/test_adder.rb, line 13 def test_add assert_equal(7, @adder.add(2), "Should have added correctly") end