class Test::Unit::TestTestCase::TestTestDefined::TestPath::TestMethodStyle

Public Instance Methods

test_absolute_path() click to toggle source
# File test-unit-3.3.4/test/test-test-case.rb, line 632
def test_absolute_path
  test_case = Class.new(TestCase) do
    test "nothing" do
    end
  end
  assert_true(test_case.test_defined?(:path => __FILE__))
end
test_base_name() click to toggle source
# File test-unit-3.3.4/test/test-test-case.rb, line 623
def test_base_name
  test_case = Class.new(TestCase) do
    test "nothing" do
    end
  end
  base_name = File.basename(__FILE__)
  assert_true(test_case.test_defined?(:path => base_name))
end
test_not_match() click to toggle source
# File test-unit-3.3.4/test/test-test-case.rb, line 640
def test_not_match
  test_case = Class.new(TestCase) do
    test "nothing" do
    end
  end
  assert_false(test_case.test_defined?(:path => "nonexistent.rb"))
end