22 Nov '13, 4pm

Don't Stub the System Under Test

Don't Stub the System Under Test Joe Ferris November 21, 2013 ruby testing refactoring xUnit Test Patterns defines the System Under Test (SUT) as: whatever class, object or method we are testing; when we are writing customer tests, the SUT is probably the entire application or at least a major subsystem of it. The System Under Test helps us focus on what we're really testing, what Depended-On Components (DOC) interact with it, and how to replace a Depended-On Component with a Test Double (such as a stub, spy, or fake). However, it can be tempting to also stub parts of the System Under Test. This should be avoided. Why not stub the System Under Test? The goal of the guideline "Don't Stub the System Under Test" is to help us use tests as a guide for when to split up a class. If a behavior is so complicated that we felt compelled to stub it out in a test, that behavior is its...

Full article: http://robots.thoughtbot.com/don-t-stub-the-system-under-...

Tweets

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...

Faking Remote Services with Rack::Test

robots.thoughtbot.com 17 Nov '13, 12am

Faking Remote Services with Rack::Test Joe Ferris November 16, 2013 testing ruby Using Rack middleware, we can reroute Rac...

@blainsmith yeah you shouldn't be using system ...

robots.thoughtbot.com 02 Dec '13, 11pm

Joel Oliveira June 28, 2013 ruby OS X Mavericks may ship with Ruby 2.0. Cool, right? Don’t touch it. Why eschew system Rub...

YouTube: New Comments System Stays But We're Improving It

YouTube: New Comments System Stays But We're Im...

reelseo.com 26 Nov '13, 4pm

After a couple of weeks of radio silence, YouTube have at last issued some feedback regarding the super popular new commen...

San Francisco's BART System Went Down Due to Server Upgrade Gone Bad

San Francisco's BART System Went Down Due to Se...

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

During last week’s round-the-clock Obamacare website glitch watch, for instance, we heard a government official admit that...

@hotgazpacho yeah, it's a bit different.

robots.thoughtbot.com 28 Nov '13, 3am

Use Factory Girl's build_stubbed for a Faster Test Suite Josh Clayton May 09, 2012 factory girl rails slow tests testing W...