Package: ruby-columnize / 0.9.0-1

fix_autopkg_tests.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Description: fix autopkg tests by require
Author: Jonas Genannt <jonas.genannt@capi2name.de>
Forwarded: not-needed

--- a/test/test-columnize-array.rb
+++ b/test/test-columnize-array.rb
@@ -6,7 +6,7 @@ class TestColumnizeArray < Test::Unit::T
   # Ruby 1.8 form of require_relative
   TOP_SRC_DIR = File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib')
   ENV['COLUMNS'] = '80'
-  require File.join(TOP_SRC_DIR, 'columnize.rb')
+  require 'columnize'
 
   # test columnize
   def test_arrange_array
--- a/test/test-columnize.rb
+++ b/test/test-columnize.rb
@@ -5,7 +5,7 @@ require 'test/unit'
 class TestColumnize < Test::Unit::TestCase
   # Ruby 1.8 form of require_relative
   TOP_SRC_DIR = File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib')
-  require File.join(TOP_SRC_DIR, 'columnize.rb')
+  require 'columnize'
 
   # test columnize
   def test_basic
--- a/test/test-columnizer.rb
+++ b/test/test-columnizer.rb
@@ -4,7 +4,7 @@ require 'test/unit'
 # Test of Columnizer class
 class TestColumnizer < Test::Unit::TestCase
   TOP_SRC_DIR = File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib')
-  require File.join(TOP_SRC_DIR, 'columnize.rb')
+  require 'columnize'
 
   Columnize::Columnizer.class_eval 'attr_reader :stringify, :short_circuit, :term_adjuster'
   Columnize::Columnizer.class_eval 'attr_reader *ATTRS'
--- a/test/test-hashparm.rb
+++ b/test/test-hashparm.rb
@@ -4,7 +4,7 @@ require 'test/unit'
 # Test of Columnize module
 class TestHashFormat < Test::Unit::TestCase
   TOP_SRC_DIR = File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib')
-  require File.join(TOP_SRC_DIR, 'columnize.rb')
+  require 'columnize'
 
   def test_parse_columnize_options
     assert Columnize.parse_columnize_options([{}]).kind_of?(Hash)
--- a/test/test-issue3.rb
+++ b/test/test-issue3.rb
@@ -4,7 +4,7 @@ require 'test/unit'
 # Test of Columnize module for github issue #3
 class TestIssue3 < Test::Unit::TestCase
   @@TOP_SRC_DIR = File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib')
-  require File.join(@@TOP_SRC_DIR, 'columnize.rb')
+  require 'columnize'
 
   # test columnize
   def test_long_column
--- a/test/test-min_rows_and_colwidths.rb
+++ b/test/test-min_rows_and_colwidths.rb
@@ -5,7 +5,7 @@ require 'test/unit'
 class TestComputeRowsAndColwidths < Test::Unit::TestCase
   # Ruby 1.8 form of require_relative
   TOP_SRC_DIR = File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib')
-  require File.join(TOP_SRC_DIR, 'columnize.rb')
+  require 'columnize'
 
   VOPTS = Columnize::DEFAULT_OPTS.merge(:displaywidth => 80)
   HOPTS = VOPTS.merge(:arrange_vertical => false)