summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2011-12-22 18:46:10 -0800
committerAndre Arko <andre@arko.net>2011-12-22 18:46:10 -0800
commita86fbb03f31418fb5cf7eb2466844f8d8a34f812 (patch)
treee478faa0a1fdcd69e819c76cbf852169a459123e /spec
parent50650d9463533bfa576c9a483509693fc8c8f4c8 (diff)
downloadbundler-a86fbb03f31418fb5cf7eb2466844f8d8a34f812.tar.gz
make Gemfile errors more sensible
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/dsl_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/bundler/dsl_spec.rb b/spec/bundler/dsl_spec.rb
index 0cf24c7626..4f50c3c6bb 100644
--- a/spec/bundler/dsl_spec.rb
+++ b/spec/bundler/dsl_spec.rb
@@ -19,4 +19,12 @@ describe Bundler::Dsl do
subject.dependencies.first.source.uri.should == github_uri
end
end
+
+ describe "syntax errors" do
+ it "should raise a Bundler::GemfileError" do
+ gemfile "gem 'foo', :path => /unquoted/string/syntax/error"
+ lambda { Bundler::Dsl.evaluate(bundled_app("Gemfile"), nil, true) }.
+ should raise_error(Bundler::GemfileError)
+ end
+ end
end