diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-14 14:04:30 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-14 14:49:10 +0100 |
commit | 99d55c01577519b4bc6ca9565685eb8d3f8069f2 (patch) | |
tree | 3c19fde20d671eb47af9c0851812c8ceef2266b9 | |
parent | 79edb8c2cf6bff5ef90d302990bd500ac617149c (diff) | |
download | bundler-improve_deprecation_specs.tar.gz |
Be agressive, our specs should print no deprecationsimprove_deprecation_specs
-rw-r--r-- | spec/support/matchers.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb index 38de9450fb..0a9285837a 100644 --- a/spec/support/matchers.rb +++ b/spec/support/matchers.rb @@ -60,8 +60,6 @@ module Spec end end - MAJOR_DEPRECATION = /^\[DEPRECATED\]\s*/.freeze - RSpec::Matchers.define :have_dep do |*args| dep = Bundler::Dependency.new(*args) @@ -135,7 +133,6 @@ module Spec rescue StandardError => e next "#{name} is not installed:\n#{indent(e)}" end - last_command.stdout.gsub!(/#{MAJOR_DEPRECATION}.*$/, "") actual_version, actual_platform = last_command.stdout.strip.split(/\s+/, 2) unless Gem::Version.new(actual_version) == Gem::Version.new(version) next "#{name} was expected to be at version #{version} but was #{actual_version}" @@ -150,7 +147,6 @@ module Spec rescue StandardError next "#{name} does not have a source defined:\n#{indent(e)}" end - last_command.stdout.gsub!(/#{MAJOR_DEPRECATION}.*$/, "") unless last_command.stdout.strip == source next "Expected #{name} (#{version}) to be installed from `#{source}`, was actually from `#{out}`" end |