c61af953 | require_relative '../../test_helper.rb' class Configurator_test < MiniTest::Unit::TestCase def test_load_config |
8cbb7fe5 | config_file = "#{Rubysermon::APP_PATH}/test/fixtures/config.json" |
c61af953 | configurator = Rubysermon::Configurator.new(config_file) loaded_settings = configurator.get_settings() expected_settings = {modules: ["cpu", "ram"], notify: ["mail"], refresh: 30} assert_equal(expected_settings, loaded_settings) end end |