diff options
author | Andre Arko <andre@arko.net> | 2011-12-22 18:46:10 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2011-12-22 18:46:10 -0800 |
commit | a86fbb03f31418fb5cf7eb2466844f8d8a34f812 (patch) | |
tree | e478faa0a1fdcd69e819c76cbf852169a459123e /spec | |
parent | 50650d9463533bfa576c9a483509693fc8c8f4c8 (diff) | |
download | bundler-a86fbb03f31418fb5cf7eb2466844f8d8a34f812.tar.gz |
make Gemfile errors more sensible
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/dsl_spec.rb | 8 |
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 |