diff options
-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 |