lib/capybara/rack_test_json/driver.rb in capybara-json-0.2.2 vs lib/capybara/rack_test_json/driver.rb in capybara-json-0.2.3
- old
+ new
@@ -61,9 +61,13 @@
def body
MultiJson.load(source) || {}
end
+ def json
+ MultiJson.load(source) || {}
+ end
+
def response_headers
last_response.headers
end
def status_code