sconover / wrong

Wrong provides a general assert method that takes a predicate block. Assertion failure messages are rich in detail.
MIT License
433 stars 30 forks source link

Fix for Issue 16 "Wrong::Config.read_here_or_higher can't handle absolute paths" #31

Open arild-jacobsen opened 11 years ago

arild-jacobsen commented 11 years ago

I'm not the most experienced Rubyist, but I've been enjoying using Wrong, and thought I'd have a go at fixing this issue since most of my hobbyprogramming is done on windows.

My approach is simply to check whether a path is absolute or relative by calling File.file? on it.

amatsuda commented 10 years ago

Why not just File.expand_path(file, dir) ?