README.md in rack-test-0.8.3 vs README.md in rack-test-1.0.0

- old
+ new

@@ -26,10 +26,14 @@ * 2.4 * JRuby 9.1.+ If you are using Ruby 1.8, 1.9 or JRuby 1.7, use rack-test 0.6.3. +## Known incompatibilites + +* `rack-test >= 0.71` _does not_ work with older Capybara versions (`< 2.17`). See [#214](https://github.com/rack-test/rack-test/issues/214) for more details. + ## Examples (The examples use `Test::Unit` but it's equally possible to use `rack-test` with other testing frameworks like `rspec`.) ```ruby require "test/unit" @@ -70,10 +74,14 @@ # No assertion in this, we just demonstrate how you can post a JSON-encoded string. # By default, Rack::Test will use HTTP form encoding if you pass in a Hash as the # parameters, so make sure that `json` below is already a JSON-serialized string. post(uri, json, { 'CONTENT_TYPE' => 'application/json' }) end + + def delete_with_url_params_and_body + delete '/?foo=bar', JSON.generate('baz' => 'zot') + end end ``` If you want to test one app in isolation, you just return that app as shown above. But if you want to test the entire app stack, including middlewares, cascades etc. you need to parse the app defined in config.ru. @@ -104,10 +112,10 @@ ``` Or via Bundler: ``` -gem 'rack-test', require: 'rack/test' +gem 'rack-test' ``` Or to install unreleased version via Bundler: ```