#source returns an empty string instead of nil if no pages have been visited
This is more consistent with the behaviour of other methods, such as #current_url
This commit is contained in:
parent
5682fee985
commit
dff278db53
|
@ -92,7 +92,7 @@ class Capybara::RackTest::Browser
|
|||
def source
|
||||
last_response.body
|
||||
rescue Rack::Test::Error
|
||||
nil
|
||||
""
|
||||
end
|
||||
|
||||
protected
|
||||
|
|
Loading…
Reference in New Issue