From 5601ce3b940836ddb8310a62c15129450bcba463 Mon Sep 17 00:00:00 2001 From: Phil Dibowitz Date: Fri, 29 Dec 2023 13:48:14 -0800 Subject: [PATCH] Fix the LOAD_PATH dirs for the specs These should always have been `../lib`. Signed-off-by: Phil Dibowitz --- spec/commands_spec.rb | 3 +-- spec/repoconfig_spec.rb | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/commands_spec.rb b/spec/commands_spec.rb index 6615714..0e071af 100644 --- a/spec/commands_spec.rb +++ b/spec/commands_spec.rb @@ -1,4 +1,3 @@ -# require 'spec_helper' # For Ruby packages, Debian autopkgtest runs in an environment where # gem2deb-test-runner removes the lib directory from the source tree, so # the specs have to be able to load the installed copy instead. @@ -8,7 +7,7 @@ # back to an installed module # # See https://wiki.debian.org/Teams/Ruby/Packaging/Tests#Case_eight:_autopkgtest_failure -$LOAD_PATH.unshift File.expand_path('lib', __dir__) +$LOAD_PATH.unshift File.expand_path('../lib', __dir__) require 'sugarjar/commands' describe 'SugarJar::Commands' do diff --git a/spec/repoconfig_spec.rb b/spec/repoconfig_spec.rb index 435d637..0fd9619 100644 --- a/spec/repoconfig_spec.rb +++ b/spec/repoconfig_spec.rb @@ -1,4 +1,4 @@ -$LOAD_PATH.unshift File.expand_path('lib', __dir__) +$LOAD_PATH.unshift File.expand_path('../lib', __dir__) require 'sugarjar/repoconfig' describe 'SugarJar::RepoConfig' do