Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.
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
12 changes: 12 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ def self.ruby=(ruby)
Gem.ruby = orig_ruby if ENV["BUNDLE_RUBY"]
end

config.before :suite do
if ENV["BUNDLE_RUBY"]
FileUtils.cp_r Spec::Path.bindir, File.join(Spec::Path.root, "lib", "exe")
end
end

config.before :all do
build_repo1
end
Expand All @@ -147,4 +153,10 @@ def self.ruby=(ruby)
Dir.chdir(original_wd)
ENV.replace(original_env)
end

config.after :suite do
if ENV["BUNDLE_RUBY"]
FileUtils.rm_rf File.join(Spec::Path.root, "lib", "exe")
end
end
end
2 changes: 1 addition & 1 deletion spec/support/path.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def gemspec
end

def bindir
@bindir ||= root.join(ruby_core? ? "bin" : "exe")
@bindir ||= root.join(ruby_core? ? "libexec" : "exe")
end

def spec_dir
Expand Down