diff options
author | Carlhuda <carlhuda@engineyard.com> | 2010-08-02 16:49:32 -0700 |
---|---|---|
committer | Carlhuda <carlhuda@engineyard.com> | 2010-08-02 17:40:37 -0700 |
commit | 9d75eae7dd26adeeb99774263949bb2251ecb513 (patch) | |
tree | 2c09bc076c7f7f689b63afd2616c12d6ba6b8e93 /spec/other/check_spec.rb | |
parent | 537f9f0eb5471df4bf11a2f5abccebdd684a0766 (diff) | |
download | bundler-9d75eae7dd26adeeb99774263949bb2251ecb513.tar.gz |
Change the bundle check reporting strategy
Diffstat (limited to 'spec/other/check_spec.rb')
-rw-r--r-- | spec/other/check_spec.rb | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/spec/other/check_spec.rb b/spec/other/check_spec.rb index aaedbc26..d72cfb9d 100644 --- a/spec/other/check_spec.rb +++ b/spec/other/check_spec.rb @@ -37,7 +37,7 @@ describe "bundle check" do out.should include("Your Gemfile's dependencies could not be satisfied") end - it "shows what is missing with the current Gemfile if it is not satisfied" do + it "prints a generic error if a Gemfile.lock does not exist and a toplevel dependency does not exist" do gemfile <<-G source "file://#{gem_repo1}" gem "rails" @@ -45,21 +45,10 @@ describe "bundle check" do bundle :check, :exit_status => true check @exitstatus.should > 0 - out.should include("rails (>= 0, runtime)") + out.should include("could not be satisfied") end - it "shows missing child dependencies" do - system_gems "missing_dep-1.0" - gemfile <<-G - gem "missing_dep" - G - - bundle :check - out.should include(%{Could not find gem 'not_here'}) - out.should include(%{required by 'missing_dep'}) - end - - it "provides debug information when there is a resolving problem" do + it "prints a generic message if you changed your lockfile" do install_gemfile <<-G source "file://#{gem_repo1}" gem 'rails' @@ -76,7 +65,7 @@ describe "bundle check" do G bundle :check - out.should include(%{could not find compatible versions for gem "activesupport"}) + out.should include("Your Gemfile's dependencies could not be satisfied") end it "remembers --without option from install" do |