diff --git a/sample/coverage.rb b/sample/coverage.rb index 5e15f99716..1e036f95f9 100644 --- a/sample/coverage.rb +++ b/sample/coverage.rb @@ -17,7 +17,7 @@ at_exit do File.writable?(f) || File.writable?(File.dirname(f)) end unless writable[cfile] - cfile = cfile.gsub(File.PATH_SEPARATOR, "#") + cfile = cfile.gsub(File::PATH_SEPARATOR, "#") next unless writable[cfile] end