class MiniUnitMethod
Method Unit Test
Public Instance Methods
setup()
click to toggle source
# File mini_unit/mini_unit_method.rb, line 8 def setup #method test add. ary = [] ary2 = %w[] 1.step(10,3) do |i| ary << i ary2 << i end @step = ary @step2 = ary2 end
teardown()
click to toggle source
# File mini_unit/mini_unit_method.rb, line 45 def teardown # database network test add. end
test_match()
click to toggle source
# File mini_unit/mini_unit_method.rb, line 41 def test_match # assert_match end
test_method()
click to toggle source
# File mini_test/mini_test_method.rb, line 8 def test_method # method test add. ary = [] ary2 = %w[] 1.step(10, 3) do |i| ary << i ary2 << i end assert_equal @step = ary, @step2 = ary2 end
test_new()
click to toggle source
# File mini_unit/mini_unit_method.rb, line 22 def test_new assert_equal @step, @step2 end
test_nil_variable()
click to toggle source
# File mini_unit/mini_unit_method.rb, line 37 def test_nil_variable # assert_nil end
test_step_should_be_array()
click to toggle source
# File mini_unit/mini_unit_method.rb, line 27 def test_step_should_be_array assert_kind_of Array, @step assert_instance_of Array, @step end
test_step_should_be_array2()
click to toggle source
# File mini_unit/mini_unit_method.rb, line 32 def test_step_should_be_array2 assert_kind_of Array, @step2 assert_instance_of Array, @step2 end