diff options
author | Colby Swandale <colby@taplaboratories.com> | 2017-01-27 16:15:57 +1100 |
---|---|---|
committer | Colby Swandale <colby@taplaboratories.com> | 2017-01-27 16:18:20 +1100 |
commit | 69d7f2e13ef1c184ad82907ea8e734fe2b726629 (patch) | |
tree | 340b9a2adacf55b96ef87f3e4c5ca605a8a841f6 | |
parent | 8c0cbf3c03a56b8cdfeaba2558c35f461608b287 (diff) | |
download | bundler-69d7f2e13ef1c184ad82907ea8e734fe2b726629.tar.gz |
add failing spec for bundle update —outdated
-rw-r--r-- | spec/commands/show_spec.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/spec/commands/show_spec.rb b/spec/commands/show_spec.rb index 240bebccbe..28e6433c06 100644 --- a/spec/commands/show_spec.rb +++ b/spec/commands/show_spec.rb @@ -161,4 +161,31 @@ RSpec.describe "bundle show" do expect(out).to include("Could not find gem '#{invalid_regexp}'.") end end + + context "--outdated option" do + # Regression test for https://github.com/bundler/bundler/issues/5375 + before do + build_repo2 + end + + it "doesn't update gems to newer versions" do + install_gemfile <<-G + source "file://#{gem_repo2}" + gem "rails" + G + + bundle "install" + + update_repo2 do + build_gem "rails", '3.0.0' do |s| + s.executables = "rails" + end + end + + bundle "show --outdated" + + bundle "install" + expect(the_bundle).to include_gems("rails 2.3.2") + end + end end |