class ConfigurationTest

Public Instance Methods

test_config_exist() click to toggle source

Test if the config file exists

# File test/test_configuration.rb, line 6
def test_config_exist
  path = File.expand_path("~/.vermillion.yml")

  assert File.exist? path
end
test_default() click to toggle source

Test the default method

# File test/test_configuration.rb, line 13
def test_default
  req = MockRequest.new(:status, :default)
  cfg = Vermillion::Cfg.new.populate_config

  status = Status.new(cfg, req)

  assert status.default.zero?
end