diff options
author | Allen Zhao <cnallenzhao@gmail.com> | 2016-05-24 09:50:27 +0800 |
---|---|---|
committer | Allen Zhao <cnallenzhao@gmail.com> | 2016-05-29 19:10:40 +0800 |
commit | 1587e0d392ab9861560480ac9c3e143f2153aa79 (patch) | |
tree | 5247a5acba8ba2f32e3e8df64fb77d76d26e0863 | |
parent | 5f1ec1113108428427c513299d610b844195578e (diff) | |
download | bundler-1587e0d392ab9861560480ac9c3e143f2153aa79.tar.gz |
Fix spec
-rw-r--r-- | lib/bundler/definition.rb | 2 | ||||
-rw-r--r-- | spec/install/yanked_spec.rb | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index a46f805378..69ecd4fdcc 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -146,7 +146,7 @@ module Bundler raise GemNotFound, "Your bundle is locked to #{locked_gem}, but that version could not " \ "be found in any of the sources listed in your Gemfile. If you haven't changed sources, " \ "that means the author of #{locked_gem} has removed it. You'll need to update your bundle " \ - "to a different version of foo that hasn't been removed in order to install." + "to a different version of #{locked_gem} that hasn't been removed in order to install." end unless specs["bundler"].any? local = Bundler.settings[:frozen] ? rubygems_index : index diff --git a/spec/install/yanked_spec.rb b/spec/install/yanked_spec.rb index 2f8af3fe5a..ab96d4fcee 100644 --- a/spec/install/yanked_spec.rb +++ b/spec/install/yanked_spec.rb @@ -1,14 +1,14 @@ # frozen_string_literal: true require "spec_helper" -describe "handle yanked" do +context "when installing a bundle that includes yanked gems" do before(:each) do build_repo4 do build_gem "foo", "9.0.0" end end - it "throws and error when there is gem yanked" do + it "throws an error when the original gem version is yanked" do lockfile <<-L GEM remote: file://#{gem_repo4} @@ -31,7 +31,7 @@ describe "handle yanked" do expect(out).to include("Your bundle is locked to foo (10.0.0)") end - it "throws the original error when manually enter a version number that doesn't exist" do + it "throws the original error when only the Gemfile specifies a gem version that doesn't exist" do install_gemfile <<-G source "file://#{gem_repo4}" gem "foo", "10.0.0" @@ -40,4 +40,4 @@ describe "handle yanked" do expect(out).not_to include("Your bundle is locked to foo (10.0.0)") expect(out).to include("Could not find gem 'foo (= 10.0.0)' in any of the gem sources") end -end
\ No newline at end of file +end |