-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for old versions of Capybara::RackTest::Form::NilUploaded…
…File Capybara subclasses Rack::Test::UploadedFile, overrides initialize and redefines a bunch of methods. This is a terrible approach, but as one of the goals is to keep capybara working with rack-test, this hack is needed for compatibility. Note that Capybara master already defines set_encoding and append_to, so this is only needed for Capybara 3.37.1 and older. Fixes #301
- Loading branch information
1 parent
5116c46
commit cf9d2e0
Showing
2 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters