06 Jul '13, 1pm

Spying on Your Tests with VCR #NOTPRISM

VCR is a great tool for recording http requests during a test suite so that you can play them back later when the external server is not running or available. However, I’d like to show you how to abuse VCR into giving you the ability to spy on the network interactions during your test suite. Here’s why: I wanted my integration test suite for AwesomeResource to kill two birds with one stone: Prove that it integrates correctly with a rails server that serializes models to JSON the default Rails way Create executable documentation for anyone that wants to look at the required JSON format In other words, I needed to write a cucumber scenario like the following: Scenario: Endpoint responds with 201 When I call `create` on an Article model: """ Article.create title: "foo" """ Then the Article model should successfully POST the following JSON to "http://localhost:3001/articles": ...

Full article: http://pivotallabs.com/spying-on-your-tests-with-vcr/

Tweets

Tech at Night: Ads and privacy. Spying and nati...

redstate.com 06 Jul '13, 5am

Remember “Don’t be evil?” Even as Twitter plans to honor Do Not Track , even on MS Internet Explorer, Google apparently wo...

#USNavy successfully tests long range attack pr...

navy.mil 05 Jul '13, 10pm

WHITE SANDS MISSILE RANGE, N.M. (NNS) -- The Navy announced July 2 that it successfully conducted four Long Range Land Att...

Integration tests vs. Bogus

rubyflow.com 09 Jul '13, 6pm

Bogus verifies that you only stub real method calls. There must be a context in which the stubbed method acts the way you ...

Brazil expresses concern at report of NSA spying

militarytimes.com 07 Jul '13, 7pm

PARATY, BRAZIL — Brazil’s foreign minister said Sunday his government is worried by a report that the United States has co...

Brazil expresses concern at report of NSA spying

armytimes.com 07 Jul '13, 7pm

PARATY, BRAZIL — Brazil’s foreign minister said Sunday his government is worried by a report that the United States has co...

Brazil expresses concern at report of NSA spying

navytimes.com 07 Jul '13, 7pm

PARATY, BRAZIL — Brazil’s foreign minister said Sunday his government is worried by a report that the United States has co...

Brazil expresses concern at report of NSA spying

airforcetimes.com 07 Jul '13, 7pm

PARATY, BRAZIL — Brazil’s foreign minister said Sunday his government is worried by a report that the United States has co...

Geek glossary: stub via @pivotallabs

pivotallabs.com 06 Jul '13, 9pm

Over the next few blog posts I intend to bang a few more nails in the coffin of the widespread misunderstanding of stubs, ...

Oh, the programs you’ll DRY!

pivotallabs.com 07 Jul '13, 4am

Someone just told you your code isn’t DRY, and you have no idea what they’re talking about. You’re fresh out of college, a...