README.rdoc in faraday-0.2.4 vs README.rdoc in faraday-0.3.0
- old
+ new
@@ -28,10 +28,10 @@
== Testing
# It's possible to define stubbed request outside a test adapter block.
stubs = Faraday::Test::Stubs.new do |stub|
- stub.get('/tamago') { [200, {}, 'egg' }
+ stub.get('/tamago') { [200, {}, 'egg'] }
end
# You can pass stubbed request to the test adapter or define them in a block
# or a combination of the two.
test = Faraday::Connection.new do |builder|