File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 14
14
15
15
def sys cmd
16
16
puts "$ #{ cmd } "
17
- Bundler . with_clean_env do
17
+ Bundler . with_unbundled_env do
18
18
system cmd
19
19
end
20
20
end
@@ -103,7 +103,7 @@ namespace :rvm do
103
103
puts "== #{ using } "
104
104
else
105
105
if options [ :bundle_check ]
106
- Bundler . with_clean_env do
106
+ Bundler . with_unbundled_env do
107
107
prefix = "#{ rvm } #{ version } exec"
108
108
sys "#{ prefix } bundle check"
109
109
if $?. exitstatus != 0
@@ -114,7 +114,7 @@ namespace :rvm do
114
114
end
115
115
end
116
116
117
- Bundler . with_clean_env do
117
+ Bundler . with_unbundled_env do
118
118
sys "#{ rvm } #{ version } exec #{ cmd } "
119
119
end
120
120
end
Original file line number Diff line number Diff line change
1
+ require 'stringio'
2
+
1
3
module Wrong
2
4
module Capturing
3
5
@@ -15,7 +17,7 @@ def capturing(*streams)
15
17
# reassign the $ variable (which is used by well-behaved code e.g. puts)
16
18
streams . each do |stream |
17
19
original [ stream ] = ( stream == :stdout ? $stdout : $stderr)
18
- captured [ stream ] = StringIO . new
20
+ captured [ stream ] = :: StringIO . new
19
21
reassign_stream ( stream , captured )
20
22
end
21
23
Original file line number Diff line number Diff line change 33
33
end
34
34
end
35
35
36
- Bundler . with_clean_env do
36
+ Bundler . with_unbundled_env do
37
37
# RSpec v1 exits with 0 on failure :-( (as do older rubies)
38
38
expected_status = ( rspec_version == 1 || RUBY_VERSION =~ /^1\. 8\. / || RUBY_VERSION == '1.9.1' ? :ignore : 1 )
39
39
spec_output = sys "ruby #{ dir } /failing_spec.rb" , expected_status
You can’t perform that action at this time.
0 commit comments