summaryrefslogtreecommitdiff
path: root/spec/runtime
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2017-12-21 13:05:59 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2017-12-21 16:48:43 +0900
commitf7414bcb17fe1bd67246021251b5f0527bd6afd1 (patch)
treeb7dff28eab9ba0d26b4b888f1342226a637641ae /spec/runtime
parent2b24dead712cc823b4774ee4cd5444466b0df9e5 (diff)
downloadbundler-f7414bcb17fe1bd67246021251b5f0527bd6afd1.tar.gz
Added workarounds for Travis specific issues.
Diffstat (limited to 'spec/runtime')
-rw-r--r--spec/runtime/gem_tasks_spec.rb2
-rw-r--r--spec/runtime/with_clean_env_spec.rb6
2 files changed, 3 insertions, 5 deletions
diff --git a/spec/runtime/gem_tasks_spec.rb b/spec/runtime/gem_tasks_spec.rb
index 7bfd0e44a4..5fc87a6d46 100644
--- a/spec/runtime/gem_tasks_spec.rb
+++ b/spec/runtime/gem_tasks_spec.rb
@@ -37,7 +37,7 @@ RSpec.describe "require 'bundler/gem_tasks'" do
it "adds 'pkg' to rake/clean's CLOBBER" do
with_gem_path_as(Spec::Path.base_system_gems.to_s) do
- sys_exec! %('#{Gem.ruby}' -rrake -e 'load "Rakefile"; puts CLOBBER.inspect')
+ sys_exec! %('#{Gem.ruby}' -S rake -e 'load "Rakefile"; puts CLOBBER.inspect')
end
expect(last_command.stdout).to eq '["pkg"]'
end
diff --git a/spec/runtime/with_clean_env_spec.rb b/spec/runtime/with_clean_env_spec.rb
index 225e794eba..fd621071ad 100644
--- a/spec/runtime/with_clean_env_spec.rb
+++ b/spec/runtime/with_clean_env_spec.rb
@@ -56,11 +56,9 @@ RSpec.describe "Bundler.with_env helpers" do
end
it "removes variables that bundler added" do
- system_gems :bundler
- system_gems :bundler, :path => :bundle_path # to ensure the bundler under test is the one activated...
- original = ruby!('puts ENV.to_a.map {|e| e.join("=") }.sort.join("\n")')
+ original = ruby!('puts ENV.to_a.map {|e| e.join("=") }.sort.join("\n")', :env => { :RUBYOPT => "-r#{spec_dir.join("support/hax")}" })
code = 'puts Bundler.original_env.to_a.map {|e| e.join("=") }.sort.join("\n")'
- bundle! "exec '#{Gem.ruby}' -e #{code.dump}", :system_bundler => true
+ bundle! "exec '#{Gem.ruby}' -e #{code.dump}", :env => { :RUBYOPT => "-r#{spec_dir.join("support/hax")}" }
expect(out).to eq original
end
end