#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:
Jonas Nicklas 2011-11-15 16:57:18 +01:00
parent 5682fee985
commit dff278db53
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ class Capybara::RackTest::Browser
def source
last_response.body
rescue Rack::Test::Error
nil
""
end
protected