README.md in infrataster-0.3.1 vs README.md in infrataster-0.3.2

- old
+ new

@@ -240,24 +240,41 @@ # `response` is a instance of `Faraday::Response` # See: https://github.com/lostisland/faraday/blob/master/lib/faraday/response.rb end end - + # Gzip support describe http('http://app.example.com/gzipped') do it "responds with content deflated by gzip" do expect(response.headers['content-encoding']).to eq('gzip') end end - + describe http('http://app.example.com/gzipped', inflate_gzip: true) do it "responds with content inflated automatically" do expect(response.headers['content-encoding']).to be_nil expect(response.body).to eq('plain text') end end + + # Redirects + describe http('http://app.example.com/redirect', follow_redirects: true) do + it "follows redirects" do + expect(response.status).to eq(200) + end + end + + # Custom Faraday middleware + describe http('http://app.example.com', faraday_middleware: [ + YourMiddleware, + [YourMiddleware, options] + ]) do + it "uses the middlewares" do + expect(response.status).to eq(200) + end + end end ``` ### `capybara` resource @@ -331,18 +348,20 @@ ``` $ bundle exec rake spec:integration:prepare $ bundle exec rake spec:integration ``` -## Presentations +## Presentations and Articles * https://speakerdeck.com/ryotarai/introducing-infrataster <a href="https://speakerdeck.com/ryotarai/introducing-infrataster"> <img src="http://i.gyazo.com/305b8b041acd3569268ece4e07e2517a.png" alt="Introducing Infrataster" width="300px"> </a> * https://speakerdeck.com/ryotarai/infrataster-infra-behavior-testing-framework-number-oedo04 +* [Infratasterでリバースプロキシのテストをする](http://techlife.cookpad.com/entry/2014/11/19/151557) + * Google-Translated: [Testing reverse proxy with Infrataster](https://translate.google.com/translate?hl=ja&sl=ja&tl=en&u=http%3A%2F%2Ftechlife.cookpad.com%2Fentry%2F2014%2F11%2F19%2F151557) ## Changelog [Changelog](CHANGELOG.md)