sconover/wrong — Issue #16: Wrong::Config.read_here_or_higher can't handle absolute paths
Author: shviller
Created: 2012-01-07 20:18:51+00:00
State: open

read_here_or_higher doesn't expect its first argument to be an absolute path, which, on Windows, leads to inability to retrieve an assertion's source if it is located in a file other than the program's entry point.

The easiest way to reproduce is to create a file containing the following:

require 'wrong'
include Wrong::Assert
assert{false}

and then require it from irb. On Windows, instead of "Expected false (Wrong::Assert::AssertionFailedError)" you get "[couldn't retrieve source code due to #]"