From af508a6d105badae998c46ffb62a5e8e2b75883c Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 30 Jan 2025 10:27:19 +0900 Subject: [PATCH] Skip irb examples, I will handle related workarounds later --- spec/bundler/commands/exec_spec.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/spec/bundler/commands/exec_spec.rb b/spec/bundler/commands/exec_spec.rb index e2b965c34c..62e9d95c8a 100644 --- a/spec/bundler/commands/exec_spec.rb +++ b/spec/bundler/commands/exec_spec.rb @@ -193,6 +193,14 @@ RSpec.describe "bundle exec" do end context "with default gems" do + before do + begin + require "irb" + rescue LoadError + skip "This spec requires IRB to be available" + end + end + let(:default_irb_version) { ruby "gem 'irb', '< 999999'; require 'irb'; puts IRB::VERSION", raise_on_error: false } context "when not specified in Gemfile" do @@ -637,6 +645,12 @@ RSpec.describe "bundle exec" do describe "with gems bundled via :path with invalid gemspecs" do it "outputs the gemspec validation errors" do + begin + require "irb" + rescue LoadError + skip "This spec requires IRB to be available" + end + build_lib "foo" gemspec = lib_path("foo-1.0").join("foo.gemspec").to_s