aboutsummaryrefslogtreecommitdiffstats
path: root/spec/runtime/require_spec.rb
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-07-20 17:35:23 -0700
committerCarlhuda <carlhuda@engineyard.com>2010-07-20 17:35:23 -0700
commit4549f0afa63d7c706f7eb038563cc0a35a608eab (patch)
tree356353016788691b2beedd61a4d979defe9a31ff /spec/runtime/require_spec.rb
parent6b5b79dbe3fe9af863fec0b0df4fa0a7134ec2e0 (diff)
downloadbundler-4549f0afa63d7c706f7eb038563cc0a35a608eab.tar.gz
Don't swallow require failures
Diffstat (limited to 'spec/runtime/require_spec.rb')
-rw-r--r--spec/runtime/require_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/runtime/require_spec.rb b/spec/runtime/require_spec.rb
index 0b2de452..53db6b97 100644
--- a/spec/runtime/require_spec.rb
+++ b/spec/runtime/require_spec.rb
@@ -210,5 +210,20 @@ describe "Bundler.require" do
check out.should == "two_not_loaded\none\ntwo"
end
end
+
+ describe "with busted gems" do
+ it "should be busted" do
+ build_gem "busted_require", :to_system => true do |s|
+ s.write "lib/busted_require.rb", "require 'no_such_file_omg'"
+ end
+
+ install_gemfile <<-G
+ gem "busted_require"
+ G
+
+ run "Bundler.require", :expect_err => true
+ err.should include("no such file to load -- no_such_file_omg")
+ end
+ end
end
end