17 Nov '13, 12am

Faking Remote Services with Rack::Test

Faking Remote Services with Rack::Test Joe Ferris November 16, 2013 testing ruby Using Rack middleware, we can reroute Rack::Test requests to fake remote services without spinning up servers. This example shows how to use that technique to handle the Transparent Redirect HTTP requests for the Braintree payment gateway . How Rack::Test works Our typical integration test stack is RSpec and Capybara . We use different drivers for different situations, such as Capybara Webkit when we need to run JavaScript in a headless browser. The default driver for Capybara is Rack::Test . It is one of the fastest drivers because it interacts directly with Rack interfaces and doesn't require an external service to be started. Out of the box, Rack::Test will hit the same Rack application for every request. So, we'll use Rack middleware to re-route Rack::Test requests based on their port numb...

Full article: http://robots.thoughtbot.com/faking-remote-services-with-...

Tweets

Faking Remote Services with Rack::Test

rubyflow.com 17 Nov '13, 12am

Faking Remote Services with Rack::Test Posted by croaky on November 17, 2013 — 0 comments Using Rack middleware, we can re...

Don't Stub the System Under Test

robots.thoughtbot.com 22 Nov '13, 4pm

Don't Stub the System Under Test Joe Ferris November 21, 2013 ruby testing refactoring xUnit Test Patterns defines the Sys...

Arriva services over the #festive period 2013.

Arriva services over the #festive period 2013.

arrivabus.co.uk 14 Nov '13, 9am

Skip to Content Skip to Route planner This page is for all regions New Cookie Policy | Working with us Timetables & maps T...

Two good blog posts on stubbing from @thoughtbo...

robots.thoughtbot.com 25 Nov '13, 1pm

Don't Stub the System Under Test Joe Ferris November 22, 2013 ruby testing xUnit Test Patterns defines the System Under Te...

Martex acquires Bollag textile waste services

ecotextile.com 14 Nov '13, 11am

Lawsuits underline C8 textile chemistry risks Textile eco-tool gains traction Court ruling aims to limit nanosilver in tex...

House Armed Services Member Blasts 'Arrogance' of DoD Civilian, Military Leaders

House Armed Services Member Blasts 'Arrogance' ...

defensenews.com 14 Nov '13, 6pm

WASHINGTON — A US House Armed Services Committee Republican is sharply criticizing Defense Department officials for “an ar...

Christmas bus services information

merseytravel.gov.uk 26 Nov '13, 11am

Cookies - we do not use cookies to store personal information about you, we only use them to improve our website for you. ...

Remote Control FPV cockpit

Remote Control FPV cockpit

hackaday.com 08 Nov '13, 12am

FPV flying, for how awesome it actually is, still consists of fiddling around with a remote control transmitter and either...

Remote Mappers Enable Relief to Reach Filipino ...

spectrum.ieee.org 14 Nov '13, 4pm

The typhoon that hit the Philippines last week killed thousands of people and displaced hundreds of thousands more, accord...