lib/capybara/httpclient_json/driver.rb in capybara-json-0.3.0.beta1 vs lib/capybara/httpclient_json/driver.rb in capybara-json-0.3.0.beta2
- old
+ new
@@ -27,12 +27,14 @@
def status_code
response.code
end
- def source
+ def raw_json
response.body
end
+ alias source raw_json # almost deprecated
+ alias html raw_json # hack for capybara2
def body
MultiJson.load(source) || {}
end