lib/capybara/rack_test_json/driver.rb in capybara-json-0.3.0.beta1 vs lib/capybara/rack_test_json/driver.rb in capybara-json-0.3.0.beta2

- old
+ new

@@ -53,12 +53,14 @@ def current_url last_request.url end - def source + def raw_json last_response.body end + alias source raw_json # almost deprecated + alias html raw_json # hack for capybara2 def body MultiJson.load(source) || {} end