test/messenging_test.rb in cliutils-2.0.3 vs test/messenging_test.rb in cliutils-2.1.0
- old
+ new
@@ -13,10 +13,10 @@
def setup
@file1path = '/tmp/file1.txt'
end
def teardown
- FileUtils.rm(@file1path) if File.exist?(@file1path)
+ FileUtils.rm(@file1path) if File.file?(@file1path)
end
def test_stdout_output
assert_output('# This is error'.red + "\n") { messenger.send(:error, 'This is error') }
assert_output('# This is info'.blue + "\n") { messenger.send(:info, 'This is info') }