class TestUnitPriority::TestFileName

Public Instance Methods

assert_escaped_name(expected, test_method_name) click to toggle source
# File test-unit-3.3.4/test/test-priority.rb, line 177
def assert_escaped_name(expected, test_method_name)
  checker = Checker.new(SpecialNameTestCase.new(test_method_name))
  passed_file = checker.send(:passed_file)
  method_name_component = File.basename(File.dirname(passed_file))
  assert_equal(expected, method_name_component)
end
test_equal() click to toggle source
# File test-unit-3.3.4/test/test-priority.rb, line 172
def test_equal
  assert_escaped_name("test_colon__#equal.equal_case",
                      "test: #equal= case")
end
test_exclamation() click to toggle source
# File test-unit-3.3.4/test/test-priority.rb, line 167
def test_exclamation
  assert_escaped_name("test_colon__#exclamation.destructive_case",
                      "test: #exclamation! case")
end
test_question() click to toggle source
# File test-unit-3.3.4/test/test-priority.rb, line 162
def test_question
  assert_escaped_name("test_colon__#question.predicate_case",
                      "test: #question? case")
end