Skip to content

Commit 3e3364e

Browse files
Use a rubygems filter for the timeout spec
For consistency.
1 parent 4d0c058 commit 3e3364e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

bundler/spec/runtime/inline_spec.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -590,14 +590,10 @@ def confirm(msg, newline = nil)
590590
expect(err).to be_empty
591591
end
592592

593-
it "does not load default timeout" do
593+
it "does not load default timeout", rubygems: ">= 3.5.0" do
594594
default_timeout_version = ruby "gem 'timeout', '< 999999'; require 'timeout'; puts Timeout::VERSION", raise_on_error: false
595595
skip "timeout isn't a default gem" if default_timeout_version.empty?
596596

597-
# This only works on RubyGems 3.5.0 or higher
598-
ruby "require 'rubygems/vendored_timeout'", raise_on_error: false
599-
skip "rubygems under test does not yet vendor timeout" unless last_command.success?
600-
601597
build_repo4 do
602598
build_gem "timeout", "999"
603599
end

0 commit comments

Comments
 (0)