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 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