lib/leftovers/file.rb in leftovers-0.6.0 vs lib/leftovers/file.rb in leftovers-0.7.0

- old
+ new

@@ -3,10 +3,14 @@ require 'pathname' module Leftovers class File < Pathname def relative_path - @relative_path ||= relative_path_from(Leftovers.pwd) + @relative_path ||= begin + relative_path_from(Leftovers.pwd) + rescue ArgumentError + self + end end def test? return @test if defined?(@test)