Description: fix test in Debian build environment
Author: Christian Hofstaedtler <zeha@debian.org>
Last-Update: 2014-01-15

--- a/test/test_inline.rb
+++ b/test/test_inline.rb
@@ -16,7 +16,11 @@ File.umask(0)
 
 require 'pathname'
 
-$inline_path      = './lib/inline.rb'
+$inline_path = $LOADED_FEATURES.reverse.find do |f|
+  f.end_with?('/inline.rb') && !f.end_with?('test_inline.rb')
+end
+$inline_path = $inline_path.sub(%r{\A#{Regexp.escape(Dir.pwd)}/}, './') if $inline_path
+$inline_path ||= './lib/inline.rb'
 $test_inline_path = './test/test_inline.rb'
 
 class InlineTestCase < Minitest::Test
