Skip to content

Commit

Permalink
Silence deprecation warning by monkey-patching Rack for Capybara
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitemaeric committed Jan 3, 2024
1 parent 1db3ad8 commit aab3f40
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/initializers/capybara.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# https://github.com/teamcapybara/capybara/issues/2705#issuecomment-1752093026

if Rails.env.test?
require "rackup"

module Rack
Handler = ::Rackup::Handler
end
end

0 comments on commit aab3f40

Please sign in to comment.