Move irb detection to top-level before(:each) block
This commit is contained in:
parent
3e8bf097ce
commit
261f802384
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user