diff options
author | Andre Arko <andre@arko.net> | 2015-04-13 21:23:01 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2015-04-13 22:50:16 -0700 |
commit | e41edd133a737ed95581a4e850076c7160289269 (patch) | |
tree | 896f72d91172eea039efd8052dc1362ee5a05402 /spec/install/post_bundle_message_spec.rb | |
parent | 3c3d5c635c23abd43c1e2f1b72d55f6d38956119 (diff) | |
download | bundler-e41edd133a737ed95581a4e850076c7160289269.tar.gz |
Merge tag 'v1.9.4'
Version 1.9.4
Conflicts:
lib/bundler/installer.rb
lib/bundler/match_platform.rb
lib/bundler/source/rubygems.rb
Diffstat (limited to 'spec/install/post_bundle_message_spec.rb')
-rw-r--r-- | spec/install/post_bundle_message_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/install/post_bundle_message_spec.rb b/spec/install/post_bundle_message_spec.rb index 78133d92..408e5188 100644 --- a/spec/install/post_bundle_message_spec.rb +++ b/spec/install/post_bundle_message_spec.rb @@ -81,6 +81,22 @@ describe "post bundle message" do expect(out).to include(bundle_complete_message) end end + + describe "with misspelled or non-existent gem name" do + before :each do + gemfile <<-G + source 'https://rubygems.org/' + gem "rails" + gem "misspelled-gem-name", :group => :development + G + end + + it "should report a helpufl error message" do + bundle :install + expect(out).to include("Fetching gem metadata from https://rubygems.org/") + expect(out).to include("Could not find gem 'misspelled-gem-name (>= 0) ruby' in any of the gem sources listed in your Gemfile or installed on this machine.") + end + end end describe "for second bundle install run" do |