class TestUnitColorScheme::TestFor8Colors

Public Instance Methods

setup() click to toggle source
# File test-unit-3.3.4/test/test-color-scheme.rb, line 45
def setup
  @original_term, ENV["TERM"] = ENV["TERM"], nil
  @original_color_term, ENV["COLORTERM"] = ENV["COLORTERM"], nil
  ENV["TERM"] = "xterm"
end
teardown() click to toggle source
# File test-unit-3.3.4/test/test-color-scheme.rb, line 51
def teardown
  ENV["TERM"] = @original_term
  ENV["COLORTERM"] = @original_color_term
end
test_default() click to toggle source
# File test-unit-3.3.4/test/test-color-scheme.rb, line 56
def test_default
  expected_schema_keys = [
    "pass",
    "pass-marker",
    "failure",
    "failure-marker",
    "pending",
    "pending-marker",
    "omission",
    "omission-marker",
    "notification",
    "notification-marker",
    "error",
    "error-marker",
    "case",
    "suite",
    "diff-inserted-tag",
    "diff-deleted-tag",
    "diff-difference-tag",
    "diff-inserted",
    "diff-deleted",
  ]
  assert_equal(expected_schema_keys.sort,
               Test::Unit::ColorScheme.default.to_hash.keys.sort)
end