mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fixup 1d079a0c5d
This commit is contained in:
parent
1d889c9656
commit
df5fd1d09c
Notes:
git
2020-05-22 20:33:02 +09:00
3 changed files with 5 additions and 5 deletions
|
@ -931,7 +931,7 @@ __FILE__: #{path.to_s.inspect}
|
|||
end
|
||||
end
|
||||
|
||||
context "with a git gem that includes extensions" do
|
||||
context "with a git gem that includes extensions", :ruby_repo do
|
||||
before do
|
||||
build_git "simple_git_binary", &:add_c_extension
|
||||
bundle! "config set --local path .bundle"
|
||||
|
|
|
@ -44,7 +44,7 @@ RSpec.describe "require 'bundler/gem_tasks'" do
|
|||
expect(exitstatus).to eq(0) if exitstatus
|
||||
end
|
||||
|
||||
it "defines a working `rake install` task" do
|
||||
it "defines a working `rake install` task", :ruby_repo do
|
||||
with_gem_path_as(base_system_gems.to_s) do
|
||||
sys_exec "#{rake} install", :env => { "GEM_HOME" => system_gem_path.to_s }
|
||||
end
|
||||
|
@ -56,7 +56,7 @@ RSpec.describe "require 'bundler/gem_tasks'" do
|
|||
expect(err).to be_empty
|
||||
end
|
||||
|
||||
context "rake build when path has spaces" do
|
||||
context "rake build when path has spaces", :ruby_repo do
|
||||
before do
|
||||
spaced_bundled_app = tmp.join("bundled app")
|
||||
FileUtils.cp_r bundled_app, spaced_bundled_app
|
||||
|
@ -73,7 +73,7 @@ RSpec.describe "require 'bundler/gem_tasks'" do
|
|||
bundle "config set path vendor/bundle"
|
||||
end
|
||||
|
||||
it "works" do
|
||||
it "works", :ruby_repo do
|
||||
install_gemfile! <<-G
|
||||
source "#{file_uri_for(gem_repo1)}"
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ RSpec.describe "Bundler.with_env helpers" do
|
|||
EOS
|
||||
end
|
||||
|
||||
it "removes variables that bundler added" do
|
||||
it "removes variables that bundler added", :ruby_repo do
|
||||
# Simulate bundler has not yet been loaded
|
||||
ENV.replace(ENV.to_hash.delete_if {|k, _v| k.start_with?(Bundler::EnvironmentPreserver::BUNDLER_PREFIX) })
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue