diff --git a/Gemfile b/Gemfile index 3d6f26ec..87c6e00a 100644 --- a/Gemfile +++ b/Gemfile @@ -38,6 +38,7 @@ platforms :ruby do gem "foreman" gem "gem-release" gem "github_changelog_generator", require: false + gem "warning" group :debug do gem "activerecord-explain-analyze", require: false diff --git a/Gemfile.lock b/Gemfile.lock index 9845117c..a6dd6bfd 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -471,6 +471,7 @@ GEM unicode-display_width (2.6.0) uri (1.0.1) useragent (0.16.10) + warning (1.4.0) webrick (1.9.0) websocket (1.2.11) websocket-driver (0.7.6) @@ -536,6 +537,7 @@ DEPENDENCIES stackprof tapioca timecop + warning webrick yard yard-activesupport-concern diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index befe14c7..0a10b8a8 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -14,6 +14,14 @@ require "timecop" +require "warning" +# https://github.com/mikel/mail/pull/1557 +Warning.ignore(%r{/lib/mail/parsers/}) +# https://github.com/SeleniumHQ/selenium/pull/14770 +Warning.ignore(%r{/lib/selenium/.*URI::RFC3986_PARSER.escape is obsolete}) +# https://github.com/teamcapybara/capybara/pull/2781 +Warning.ignore(%r{/lib/capybara/.*URI::RFC3986_PARSER.make_regexp is obsolete}) + require File.expand_path('../demo/config/environment', __dir__) # Prevent database truncation if the environment is production