diff options
author | Andre Arko <andre@arko.net> | 2010-03-16 22:48:22 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2010-03-16 23:06:30 -0700 |
commit | cfecc7cc06029c34f48c185371784e4c38ac277b (patch) | |
tree | 52e95d96aa1ecd15a5b71232db0b1ed88fb741a9 /spec | |
parent | 91dd99ce229ade393745c801c8ffc2c9a2fbae73 (diff) | |
download | bundler-cfecc7cc06029c34f48c185371784e4c38ac277b.tar.gz |
Give a specific, useful error if there are no sources in the Gemfile
Diffstat (limited to 'spec')
-rw-r--r-- | spec/install/gems/simple_case_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/install/gems/simple_case_spec.rb b/spec/install/gems/simple_case_spec.rb index 3fdadad1da..57f2a20367 100644 --- a/spec/install/gems/simple_case_spec.rb +++ b/spec/install/gems/simple_case_spec.rb @@ -166,6 +166,15 @@ describe "bundle install with gem sources" do should_be_installed "rack 1.2", "activesupport 1.2.3" end + + it "gives a useful error if no sources are set" do + install_gemfile <<-G + gem "rack" + G + + bundle :install, :expect_err => true + out.should =~ /Your Gemfile doesn't have any sources/i + end end describe "with BUNDLE_PATH set" do |