diff options
author | James Wen <jrw2175@columbia.edu> | 2016-04-25 01:51:03 -0400 |
---|---|---|
committer | James Wen <jrw2175@columbia.edu> | 2016-04-25 01:51:03 -0400 |
commit | cc3558650ed94c110ee1ab50ea75cd556dc188e9 (patch) | |
tree | 7e8f0efa137be773008827fda114d2073a93e9a7 /spec/commands/outdated_spec.rb | |
parent | f8c6f25f499a6286be94d48db4f1c211b7e00f4d (diff) | |
download | bundler-cc3558650ed94c110ee1ab50ea75cd556dc188e9.tar.gz |
Only report same platform gem updates for `bundle outdated`
- `bundle outdated` will now only show updates for a gem if there are
available updates for that gem on the same platform
- ex. gem `laduradura` is being used on ruby platform but updates are
available on gem `laduradura` for java platform = do not display
potential update versions for java
Diffstat (limited to 'spec/commands/outdated_spec.rb')
-rw-r--r-- | spec/commands/outdated_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/commands/outdated_spec.rb b/spec/commands/outdated_spec.rb index d61d316011..6420c28ac7 100644 --- a/spec/commands/outdated_spec.rb +++ b/spec/commands/outdated_spec.rb @@ -243,6 +243,20 @@ describe "bundle outdated" do end end + context "update available for a gem on a different platform" do + before do + install_gemfile <<-G + source "file://#{gem_repo2}" + gem "laduradura", '= 5.15.2' + G + end + + it "reports that no updates are available" do + bundle "outdated" + expect(out).to include("Bundle up to date!") + end + end + shared_examples_for "version update is detected" do it "reports that a gem has a newer version" do subject |