test/configurator_test.rb in cliutils-2.0.3 vs test/configurator_test.rb in cliutils-2.1.0
- old
+ new
@@ -9,10 +9,10 @@
@config_path = '/tmp/test.config'
@config = CLIUtils::Configurator.new(@config_path)
end
def teardown
- FileUtils.rm(@config_path) if File.exist?(@config_path)
+ FileUtils.rm(@config_path) if File.file?(@config_path)
end
def test_add_section
@config.add_section(:test)
assert_equal(@config.data, test: {})