diff options
author | chrismo <chrismo@clabs.org> | 2016-11-14 16:54:17 -0600 |
---|---|---|
committer | chrismo <chrismo@clabs.org> | 2016-11-15 10:26:55 -0600 |
commit | b3ad1702ba4d45df3d0c85c6585b1a60b9001b3a (patch) | |
tree | c0ffa989dc61dd747b770b9c6a5ef7e044518f2e /spec/commands/outdated_spec.rb | |
parent | 291a807c7d6f441253f15a2fda29b2a52035c55a (diff) | |
download | bundler-b3ad1702ba4d45df3d0c85c6585b1a60b9001b3a.tar.gz |
Refactoring of @lucasmazza fix w/ specs.
The only existing spec coverage was essentially integration level and
there was no way either @lucasmazza or myself could find a way to
simulate the bug context.
I extracted some of the code out of outdated into Definition and
SpecSet and added unit specs to those extracted bits.
Diffstat (limited to 'spec/commands/outdated_spec.rb')
-rw-r--r-- | spec/commands/outdated_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/commands/outdated_spec.rb b/spec/commands/outdated_spec.rb index b3d9a97b82..a3e46a4e7f 100644 --- a/spec/commands/outdated_spec.rb +++ b/spec/commands/outdated_spec.rb @@ -607,17 +607,17 @@ describe "bundle outdated" do it "shows all gems when patching and filtering to patch" do bundle "outdated --patch --filter-patch" - expect(out).to include("patch (newest") - expect(out).to include("minor (newest") - expect(out).to include("major (newest") + expect(out).to include("patch (newest 1.0.1") + expect(out).to include("minor (newest 1.0.1") + expect(out).to include("major (newest 1.0.1") end it "shows minor and major when updating to minor and filtering to patch and minor" do bundle "outdated --minor --filter-minor" expect(out).not_to include("patch (newest") - expect(out).to include("minor (newest") - expect(out).to include("major (newest") + expect(out).to include("minor (newest 1.1.0") + expect(out).to include("major (newest 1.1.0") end it "shows minor when updating to major and filtering to minor with parseable" do |