summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/bundler/commands/platform_spec.rb12
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"