diff --git a/test/support/watcher_test.rb b/test/support/watcher_test.rb index 162fca14..6857ebb9 100644 --- a/test/support/watcher_test.rb +++ b/test/support/watcher_test.rb @@ -31,9 +31,7 @@ def teardown end def touch(file, mtime = nil) - options = {} - options[:mtime] = mtime if mtime - FileUtils.touch(file, options) + FileUtils.touch(file, mtime: mtime) end def assert_stale