class TestMethod

Method Unit Test

Public Instance Methods

setup() click to toggle source
# File test/test_method.rb, line 5
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 test/test_method.rb, line 42
  def teardown
# database network test add.
  end
test_match() click to toggle source
# File test/test_method.rb, line 38
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 test/test_method.rb, line 19
def test_new
  assert_equal @step, @step2

end
test_nil_variable() click to toggle source
# File test/test_method.rb, line 34
def test_nil_variable
  # assert_nil
end
test_step_should_be_array() click to toggle source
# File test/test_method.rb, line 24
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 test/test_method.rb, line 29
def test_step_should_be_array2
  assert_kind_of Array, @step2
  assert_instance_of Array, @step2
end