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