diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-01-30 10:27:19 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-01-30 11:24:34 +0900 |
| commit | af508a6d105badae998c46ffb62a5e8e2b75883c (patch) | |
| tree | d30cf41f325328816e48019c82b03b4e4a00e978 | |
| parent | 3dda488782365b1dea3756c5aa1d7673d997df2f (diff) | |
Skip irb examples, I will handle related workarounds later
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12671
| -rw-r--r-- | spec/bundler/commands/exec_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
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 |
