summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-02-26 22:48:13 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-02-28 16:41:22 +0100
commitae11272b8afe7adc7b5ad297bcd14afe39e397a4 (patch)
treefc48a0f95423ab4acd2caffc3ae94b319568971e
parent3b24acce0fa2f3fa1e6330acb47bbce13697321a (diff)
downloadbundler-ae11272b8afe7adc7b5ad297bcd14afe39e397a4.tar.gz
Remove now unnecessary filtering
Those deprecation messages are no longer printed.
-rw-r--r--spec/other/major_deprecation_spec.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/other/major_deprecation_spec.rb b/spec/other/major_deprecation_spec.rb
index f01f313faa..445c970c4c 100644
--- a/spec/other/major_deprecation_spec.rb
+++ b/spec/other/major_deprecation_spec.rb
@@ -2,7 +2,6 @@
RSpec.describe "major deprecations" do
let(:warnings) { err }
- let(:warnings_without_version_messages) { warnings.gsub(/#{Spec::Matchers::MAJOR_DEPRECATION}Bundler will only support ruby >= .*/, "") }
before do
create_file "gems.rb", <<-G
@@ -35,7 +34,7 @@ RSpec.describe "major deprecations" do
describe "bundle update --quiet" do
it "does not print any deprecations" do
bundle :update, :quiet => true
- expect(warnings_without_version_messages).not_to have_major_deprecation
+ expect(warnings).not_to have_major_deprecation
end
end
@@ -56,7 +55,7 @@ RSpec.describe "major deprecations" do
it "does not warn when --all is passed" do
bundle! "update --all"
- expect(warnings_without_version_messages).not_to have_major_deprecation
+ expect(warnings).not_to have_major_deprecation
end
end
@@ -80,7 +79,7 @@ RSpec.describe "major deprecations" do
G
bundle :install
- expect(warnings_without_version_messages).not_to have_major_deprecation
+ expect(warnings).not_to have_major_deprecation
end
xit "should print a Gemfile deprecation warning" do
@@ -126,7 +125,7 @@ RSpec.describe "major deprecations" do
Bundler.setup
RUBY
- expect(warnings_without_version_messages).to have_major_deprecation("gems.rb and gems.locked will be preferred to Gemfile and Gemfile.lock.")
+ expect(warnings).to have_major_deprecation("gems.rb and gems.locked will be preferred to Gemfile and Gemfile.lock.")
end
end