Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the LOAD_PATH dirs for the specs #139

Merged
merged 1 commit into from
Dec 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions spec/commands_spec.rb
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/repoconfig_spec.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading