summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-06-23 18:44:56 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-06-23 18:44:56 -0500
commit2cc7c46f3eab17a6bfefa71ad29166aab70c367e (patch)
treeee090d65ce17733a1397a8027ec0632aa998c618
parent5b7aa36a6d07ee3d051512d08c86946bde21410c (diff)
downloadbundler-seg-major-deprecations.tar.gz
Fix matching against multiple major deprecationsseg-major-deprecations
-rw-r--r--spec/other/major_deprecation_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/other/major_deprecation_spec.rb b/spec/other/major_deprecation_spec.rb
index 6957b539f8..a3d8fd12f4 100644
--- a/spec/other/major_deprecation_spec.rb
+++ b/spec/other/major_deprecation_spec.rb
@@ -6,7 +6,7 @@ describe "major deprecations" do
diffable
match do |actual|
actual.split(/^\[DEPRECATED FOR 2\.0\]\s*/).any? do |d|
- !d.empty? && values_match?(expected, d)
+ !d.empty? && values_match?(expected, d.strip)
end
end
end
@@ -51,7 +51,7 @@ describe "major deprecations" do
describe "rubygems version", :rubygems => "< 2.0" do
it "requires a newer rubygems version" do
instance_eval(&trigger)
- expect(warnings).to have_major_deprecation "Bundler will only support rubygems >= 2.4, you are running #{Gem::VERSION}"
+ expect(warnings).to have_major_deprecation "Bundler will only support rubygems >= 2.0, you are running #{Gem::VERSION}"
end
end
end