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
|
context "bundle console", bundler: "< 3" do
|
||||||
before do
|
before do
|
||||||
|
begin
|
||||||
|
require "irb"
|
||||||
|
rescue LoadError
|
||||||
|
skip "This spec requires IRB to be available"
|
||||||
|
end
|
||||||
|
|
||||||
install_gemfile <<-G
|
install_gemfile <<-G
|
||||||
source "https://gem.repo1"
|
source "https://gem.repo1"
|
||||||
gem "myrack"
|
gem "myrack"
|
||||||
@ -950,12 +956,6 @@ G
|
|||||||
end
|
end
|
||||||
|
|
||||||
it "starts IRB with the default group loaded when ruby version matches", :readline do
|
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
|
gemfile <<-G
|
||||||
source "https://gem.repo1"
|
source "https://gem.repo1"
|
||||||
gem "myrack"
|
gem "myrack"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user