Skip to content

Commit 3c5e7fb

Browse files
committed
smokey the smoke tester says: "only you can fight bitrot"
1 parent 8c168fa commit 3c5e7fb

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Rakefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ end
1414

1515
def sys cmd
1616
puts "$ #{cmd}"
17-
Bundler.with_clean_env do
17+
Bundler.with_unbundled_env do
1818
system cmd
1919
end
2020
end
@@ -103,7 +103,7 @@ namespace :rvm do
103103
puts "== #{using}"
104104
else
105105
if options[:bundle_check]
106-
Bundler.with_clean_env do
106+
Bundler.with_unbundled_env do
107107
prefix = "#{rvm} #{version} exec"
108108
sys "#{prefix} bundle check"
109109
if $?.exitstatus != 0
@@ -114,7 +114,7 @@ namespace :rvm do
114114
end
115115
end
116116

117-
Bundler.with_clean_env do
117+
Bundler.with_unbundled_env do
118118
sys "#{rvm} #{version} exec #{cmd}"
119119
end
120120
end

lib/wrong/capturing.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'stringio'
2+
13
module Wrong
24
module Capturing
35

@@ -15,7 +17,7 @@ def capturing(*streams)
1517
# reassign the $ variable (which is used by well-behaved code e.g. puts)
1618
streams.each do |stream|
1719
original[stream] = (stream == :stdout ? $stdout : $stderr)
18-
captured[stream] = StringIO.new
20+
captured[stream] = ::StringIO.new
1921
reassign_stream(stream, captured)
2022
end
2123

test/adapters/rspec_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
end
3434
end
3535

36-
Bundler.with_clean_env do
36+
Bundler.with_unbundled_env do
3737
# RSpec v1 exits with 0 on failure :-( (as do older rubies)
3838
expected_status = (rspec_version == 1 || RUBY_VERSION =~ /^1\.8\./ || RUBY_VERSION == '1.9.1' ? :ignore : 1)
3939
spec_output = sys "ruby #{dir}/failing_spec.rb", expected_status

0 commit comments

Comments
 (0)