Move irb detection to top-level before(:each) block

This commit is contained in:
Hiroshi SHIBATA 2025-02-27 15:49:28 +09:00
parent 3e8bf097ce
commit 261f802384
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -941,6 +941,12 @@ G
context "bundle console", bundler: "< 3" do
before do
begin
require "irb"
rescue LoadError
skip "This spec requires IRB to be available"
end
install_gemfile <<-G
source "https://gem.repo1"
gem "myrack"
@ -950,12 +956,6 @@ G
end
it "starts IRB with the default group loaded when ruby version matches", :readline do
begin
require "irb"
rescue LoadError
skip "This spec requires IRB to be available"
end
gemfile <<-G
source "https://gem.repo1"
gem "myrack"