mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Added build_rack_mock_session, closes #344
This commit is contained in:
parent
4c3ce57430
commit
5450b0a17e
1 changed files with 4 additions and 0 deletions
|
@ -81,6 +81,10 @@ class Capybara::RackTest::Browser
|
|||
|
||||
protected
|
||||
|
||||
def build_rack_mock_session
|
||||
Rack::MockSession.new(app, current_host)
|
||||
end
|
||||
|
||||
def to_binary(object)
|
||||
return object unless Kernel.const_defined?(:Encoding)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue