When originally implemented, the relative_path_from Dir.pwd was purely to keep the assertion results consistent across systems. The path_to helper in the specs reference absolute paths, so instead I've redacted the path in the spec.
The actual bin/htmlbeautifier should not be coercing the path into a relative one. This change will give more consistent output to the user. If a relative path is provided, its failure message will be relative. If an absolute path is provided, its failure message will be absolute.
resolves https://github.com/threedaymonk/htmlbeautifier/issues/65
When originally implemented, the
relative_path_from Dir.pwd
was purely to keep the assertion results consistent across systems. Thepath_to
helper in the specs reference absolute paths, so instead I've redacted the path in the spec.The actual
bin/htmlbeautifier
should not be coercing the path into a relative one. This change will give more consistent output to the user. If a relative path is provided, its failure message will be relative. If an absolute path is provided, its failure message will be absolute.