Skip to content

Commit 2e335df

Browse files
committed
Update bundler spec paths to reflect restructured directory layout
1 parent cb76bbd commit 2e335df

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

spec/bundler/spec_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848

4949
SimpleCov.start do
5050
command_name "bundler:#{Process.pid}"
51-
root File.expand_path("../..", __dir__)
52-
coverage_dir File.expand_path("../../coverage", __dir__)
51+
root File.expand_path("../bundler", __dir__)
52+
coverage_dir File.expand_path("../coverage", __dir__)
5353

5454
add_filter "/spec/"
5555
add_filter "/test/"

spec/bundler/support/path.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module Path
1010
include Spec::Env
1111

1212
def source_root
13-
@source_root ||= Pathname.new(ruby_core? ? "../../.." : "../..").expand_path(__dir__)
13+
@source_root ||= Pathname.new(ruby_core? ? "../../.." : "../../bundler").expand_path(__dir__)
1414
end
1515

1616
def root
@@ -50,7 +50,7 @@ def dev_binstub
5050
end
5151

5252
def bindir
53-
@bindir ||= source_root.join(ruby_core? ? "spec/bin" : "bin")
53+
@bindir ||= source_root.join(ruby_core? ? "spec/bin" : "../bin")
5454
end
5555

5656
def exedir
@@ -76,7 +76,7 @@ def path
7676
end
7777

7878
def spec_dir
79-
@spec_dir ||= source_root.join(ruby_core? ? "spec/bundler" : "spec")
79+
@spec_dir ||= source_root.join(ruby_core? ? "spec/bundler" : "../spec")
8080
end
8181

8282
def man_dir
@@ -345,7 +345,7 @@ def git_ls_files(glob)
345345
end
346346

347347
def tracked_files_glob
348-
ruby_core? ? "libexec/bundle* lib/bundler lib/bundler.rb spec/bundler man/bundle*" : "lib exe spec CHANGELOG.md LICENSE.md README.md bundler.gemspec"
348+
ruby_core? ? "libexec/bundle* lib/bundler lib/bundler.rb spec/bundler man/bundle*" : "lib exe CHANGELOG.md LICENSE.md README.md bundler.gemspec"
349349
end
350350

351351
def lib_tracked_files_glob

0 commit comments

Comments
 (0)