require_relative '../../test_helper.rb' class Configurator_test < MiniTest::Unit::TestCase def test_load_config config_file = "../../fixtures/config.json" 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