summaryrefslogtreecommitdiff
path: root/spec/runtime/require_spec.rb
diff options
context:
space:
mode:
authorJames Wen <jrw2175@columbia.edu>2015-12-26 14:34:56 -0500
committerJames Wen <jrw2175@columbia.edu>2015-12-26 20:24:18 -0500
commit85d6ceae60cb1be0ca230c93c93bec90675e2145 (patch)
treec849adbe313a7f44acf190bfe2952f6660f521cf /spec/runtime/require_spec.rb
parente2b14375c3ed2ef679fed1ca894dd346cbcefcf1 (diff)
downloadbundler-85d6ceae60cb1be0ca230c93c93bec90675e2145.tar.gz
Add original error context info to GemRequireError message
Diffstat (limited to 'spec/runtime/require_spec.rb')
-rw-r--r--spec/runtime/require_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/runtime/require_spec.rb b/spec/runtime/require_spec.rb
index 759aae3e47..e227514838 100644
--- a/spec/runtime/require_spec.rb
+++ b/spec/runtime/require_spec.rb
@@ -100,7 +100,7 @@ describe "Bundler.require" do
it "displays a helpful message if the required gem throws an error" do
build_lib "faulty", "1.0.0" do |s|
- s.write "lib/faulty.rb", "HI"
+ s.write "lib/faulty.rb", "raise RuntimeError.new(\"Gem Internal Error Message\")"
end
gemfile <<-G
@@ -110,6 +110,7 @@ describe "Bundler.require" do
run "Bundler.require", :expect_err => true
expect(err).to match("error while trying to load the gem 'faulty'")
+ expect(err).to match("Gem Internal Error Message")
end
it "doesn't swallow the error when the library has an unrelated error" do