summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-06-14 16:30:32 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-06-14 16:30:32 -0500
commit237f03566013309760445af3c9c0cb76d0f99635 (patch)
tree82fcf16708f46a4c31ad9a4c633746a0bd438ff0
parente9cf5df06df18255ff322ba770d19abc4a76db75 (diff)
downloadbundler-seg-update-all-flag.tar.gz
Dont test against the expected version deprecationsseg-update-all-flag
-rw-r--r--spec/other/major_deprecation_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/other/major_deprecation_spec.rb b/spec/other/major_deprecation_spec.rb
index 79654b18f6..75d5e68f79 100644
--- a/spec/other/major_deprecation_spec.rb
+++ b/spec/other/major_deprecation_spec.rb
@@ -2,6 +2,7 @@
RSpec.describe "major deprecations" do
let(:warnings) { out } # change to err in 2.0
+ let(:warnings_without_version_messages) { warnings.gsub(/#{Spec::Matchers::MAJOR_DEPRECATION}Bundler will only support ruby(gems)? >= .*/, "") }
context "in a .99 version" do
before do
@@ -86,7 +87,7 @@ RSpec.describe "major deprecations" do
describe "bundle update --quiet" do
it "does not print any deprecations" do
bundle :update, :quiet => true
- expect(warnings).not_to have_major_deprecation
+ expect(warnings_without_version_messages).not_to have_major_deprecation
end
end
@@ -103,7 +104,7 @@ RSpec.describe "major deprecations" do
it "does not warn when --all is passed" do
bundle! "update --all"
- expect(warnings).not_to have_major_deprecation
+ expect(warnings_without_version_messages).not_to have_major_deprecation
end
end
@@ -127,8 +128,7 @@ RSpec.describe "major deprecations" do
G
bundle :install
- expect(err).not_to have_major_deprecation
- expect(out).not_to have_major_deprecation
+ expect(warnings_without_version_messages).not_to have_major_deprecation
end
it "should print a Gemfile deprecation warning" do