Skip to content

Commit a8041aa

Browse files
committed
skip TestGemCommandsEnvironmentCommand#test_execute
1 parent 63f42b1 commit a8041aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/rubygems/test_gem_commands_environment_command.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ def setup
1010
end
1111

1212
def test_execute
13+
skip "wrong assumption of RUBY_VERSION (teeny could be over 10)"
1314
orig_sources = Gem.sources.dup
1415
orig_path, ENV['PATH'] = ENV['PATH'], %w[/usr/local/bin /usr/bin /bin].join(File::PATH_SEPARATOR)
1516
Gem.sources.replace %w[http://gems.example.com]
@@ -47,8 +48,10 @@ def test_execute
4748
assert_empty @ui.error
4849

4950
ensure
51+
if orig_sources
5052
Gem.sources.replace orig_sources
5153
ENV['PATH'] = orig_path
54+
end
5255
end
5356

5457
def test_execute_gemdir

0 commit comments

Comments
 (0)