Skip to content

Commit

Permalink
Ignore some warnings with the warning gem (#1545)
Browse files Browse the repository at this point in the history
  • Loading branch information
Earlopain authored Nov 21, 2024
1 parent 534d6a1 commit 4f6d193
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -536,6 +537,7 @@ DEPENDENCIES
stackprof
tapioca
timecop
warning
webrick
yard
yard-activesupport-concern
Expand Down
8 changes: 8 additions & 0 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f6d193

Please sign in to comment.