File: remove_lib_from_loadpath.patch

package info (click to toggle)
ruby-addressable 2.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 736 kB
  • sloc: ruby: 9,460; makefile: 12
file content (18 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: remove lib/ from loadpath in spec using unicode.data
 so that it picks up the installed version of the library in debian/ with
 unicode.data at the right place.
 in complement to move_unicode_data.patch
Author: Cédric Boutillier <boutil@debian.org>
Forwarded: no
Last-Update: 2014-05-07

--- a/spec/addressable/idna_spec.rb
+++ b/spec/addressable/idna_spec.rb
@@ -19,6 +19,7 @@
 # Have to use RubyGems to load the idn gem.
 #require "rubygems"
 
+$:.delete File.expand_path("../../../lib", __FILE__)
 require "addressable/idna"
 
 shared_examples_for "converting from unicode to ASCII" do