Skip to content

Commit

Permalink
Merge pull request #5018 from plataformatec/frg-fix-webrat-warning
Browse files Browse the repository at this point in the history
Fix webrat warnings
  • Loading branch information
feliperenan authored Feb 4, 2019
2 parents 6064ca8 + 101e50f commit a921c10
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/support/webrat/integrations/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a921c10

Please sign in to comment.