Description: Fix absolute require of libary in tests
 Tests can't rely on the library in the lib/ dir in the source package,
 instead they must test the installed copy.
Author: Christian Hofstaedtler <zeha@debian.org>
Origin: Debian
Forwarded: no
Last-Update: 2015-09-10

--- ruby-awesome-print-1.6.1.orig/spec/misc_spec.rb
+++ ruby-awesome-print-1.6.1/spec/misc_spec.rb
@@ -49,7 +49,7 @@ describe "AwesomePrint" do
 
     # Require different file name this time (lib/ap.rb vs. lib/awesome_print).
     it "several require 'awesome_print' should do no harm" do
-      require File.expand_path(File.dirname(__FILE__) + '/../lib/ap')
+      require 'ap'
       expect { rand.ai }.not_to raise_error
     end
 
