diff options
author | Hiroshi SHIBATA <[email protected]> | 2025-02-27 15:49:28 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-02-27 15:49:31 +0900 |
commit | 261f8023842b6f90007df68dfc3d88a01a9337a2 (patch) | |
tree | fd146d6bf0f4bec656d3e0a3d7a26606a9417fd8 | |
parent | 3e8bf097ce20acd12b8625d0b9c2353cd69313cb (diff) |
Move irb detection to top-level before(:each) block
-rw-r--r-- | spec/bundler/commands/platform_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/bundler/commands/platform_spec.rb b/spec/bundler/commands/platform_spec.rb index 7f740e305b..174ee239b7 100644 --- a/spec/bundler/commands/platform_spec.rb +++ b/spec/bundler/commands/platform_spec.rb @@ -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" |