Skip to content

Commit

Permalink
Fix compatability with rack-test 0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Nov 19, 2017
1 parent 4bde730 commit 95a297e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/capybara/rack_test/form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def initialize
def original_filename; ""; end
def content_type; "application/octet-stream"; end
def path; @empty_file.path; end
def size; 0; end
def read; ""; end
end

def params(button)
Expand Down

4 comments on commit 95a297e

@perlun
Copy link

@perlun perlun commented on 95a297e Nov 21, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also helps with rack-test 0.8.0, which has the same behavior. See rack/rack-test#207.

@twalpole
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@perlun Yes, rack-test 0.7.1 was pulled and then re-released as 0.8.0

@perlun
Copy link

@perlun perlun commented on 95a297e Nov 21, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know, it was me who discovered that we had released it with the wrong version number. 😉

@twalpole
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@perlun AH -- ok 👍

Please sign in to comment.