diff --git a/test/support/webrat/integrations/rails.rb b/test/support/webrat/integrations/rails.rb index ebb481a193..a78d04e662 100644 --- a/test/support/webrat/integrations/rails.rb +++ b/test/support/webrat/integrations/rails.rb @@ -18,6 +18,12 @@ def logger # :nodoc: end class RailsAdapter + # This method is private within webrat gem and after Ruby 2.4 we get a lot of warnings because + # Webrat::Session#response is delegated to this method. + def response + integration_session.response + end + protected def do_request(http_method, url, data, headers)