lib/capybara/httpclient_json/driver.rb in capybara-json-0.2.2 vs lib/capybara/httpclient_json/driver.rb in capybara-json-0.2.3

- old
+ new

@@ -35,9 +35,13 @@ def body MultiJson.load(source) || {} end + def json + MultiJson.load(source) || {} + end + def response_headers response.headers end def get(url, params = {}, headers = {})