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
|
From: Antonio Terceiro <terceiro@debian.org>
Date: Tue, 12 Oct 2021 06:33:50 -0300
Subject: spec_helper: drop require_relative to lib directory
This makes it possible to run the test suite against the installed
packgae, and still just works in development due to how rspec works.
---
spec/spec_helper.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index c000c15..9fa2da5 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -3,8 +3,8 @@ require_relative 'support/matchers'
require_relative 'support/helpers'
require 'pry'
-require_relative '../lib/rmagick'
-require_relative '../lib/rvg/rvg'
+require 'rmagick'
+require 'rvg/rvg'
root_dir = File.expand_path('..', __dir__)
IMAGES_DIR = File.join(root_dir, 'doc/ex/images')
|