README.md in capybara-json-0.0.3 vs README.md in capybara-json-0.1.0
- old
+ new
@@ -9,19 +9,19 @@
Capybara is an acceptance test framework, and it has no interest with client error(4xx response).
testing web application
## USAGE
require 'capybara/json'
- Capybara.current_driver = :rack_test_json
-
include Capybara::Json
- post '/', { "this is" => "json" } # POST { "this is": "json" }
+
+ Capybara.current_driver = :rack_test_json
+ post '/', { "this is" => "json" } # POST '/'
body #=> parsed json response
source #=> raw response body
Capybara.current_driver = :httpclient_json
-
- post 'http://example.jp/', { "this is" => "json" }
+ Capybara.app_host = 'http://example.com'
+ post '/', { "this is" => "json" } # POST 'http://example.com/'
body #=> parsed json response
source #=> raw response body
## ROADMAP
\ No newline at end of file