Package: ruby-dataobjects-sqlite3 / 0.10.17-1

0020_remove_loadpath_manipulation_in_specs.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
Description: remove $LOAD_PATH manipulation in specs
 They should use the copy installed in debian/
Author: C├ędric Boutillier <cedric.boutillier@gmail.com>
Last-Update: 2011-11-03

--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -8,15 +8,15 @@
 require 'win32console' if RUBY_PLATFORM =~ /mingw|mswin/
 
 driver_lib = File.expand_path('../../lib', __FILE__)
-$LOAD_PATH.unshift(driver_lib) unless $LOAD_PATH.include?(driver_lib)
+#$LOAD_PATH.unshift(driver_lib) unless $LOAD_PATH.include?(driver_lib)
 
 # Prepend data_objects/do_jdbc in the repository to the load path.
 # DO NOT USE installed gems, except when running the specs from gem.
-repo_root = File.expand_path('../../..', __FILE__)
-(['data_objects'] << ('do_jdbc' if JRUBY)).compact.each do |lib|
-  lib_path = "#{repo_root}/#{lib}/lib"
-  $LOAD_PATH.unshift(lib_path) if File.directory?(lib_path) && !$LOAD_PATH.include?(lib_path)
-end
+#repo_root = File.expand_path('../../..', __FILE__)
+#(['data_objects'] << ('do_jdbc' if JRUBY)).compact.each do |lib|
+#  lib_path = "#{repo_root}/#{lib}/lib"
+#  $LOAD_PATH.unshift(lib_path) if File.directory?(lib_path) && !$LOAD_PATH.include?(lib_path)
+#end
 
 require 'data_objects'
 require 'data_objects/spec/setup'