File: 0001-Require-installed-version-to-run-tests-in-spec_helpe.patch

package info (click to toggle)
ruby-seamless-database-pool 1.0.20-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 288 kB
  • sloc: ruby: 1,544; makefile: 6
file content (22 lines) | stat: -rw-r--r-- 860 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Lucas Kanashiro <lucas.kanashiro@collabora.co.uk>
Date: Mon, 27 Aug 2018 11:31:16 -0300
Subject: Require installed version to run tests in spec_helper
Forwarded: not-needed

---
 spec/spec_helper.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index ad2d062..4869b35 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -7,7 +7,7 @@ gem 'activerecord', *active_record_version
 require 'active_record'
 puts "Testing Against ActiveRecord #{ActiveRecord::VERSION::STRING}" if defined?(ActiveRecord::VERSION)
 
-require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'seamless_database_pool'))
+require 'seamless_database_pool'
 require File.expand_path(File.join(File.dirname(__FILE__), 'test_model'))
 
 $LOAD_PATH << File.expand_path("../test_adapter", __FILE__)