28 Nov '13, 3am

@hotgazpacho yeah, it's a bit different.

Use Factory Girl's build_stubbed for a Faster Test Suite Josh Clayton May 09, 2012 factory girl rails slow tests testing Want to speed up your test suite? Reduce the number of objects persisted to the database. With Factory Girl, this is really easy; instead of using build or create to instantiate your models with data, use build_stubbed ! build_stubbed is the younger, more hip sibling to build ; it instantiates and assigns attributes just like build , but that's where the similarities end. It makes objects look look like they've been persisted, creates associations with the build_stubbed strategy (whereas build still uses create ), and stubs out a handful of methods that interact with the database and raises if you call them. This leads to much faster tests and reduces your test dependency on a database. For example, let's say we have an OrderProcessor that accepts instan...

Full article: http://robots.thoughtbot.com/use-factory-girls-build-stub...

Tweets

Faster Grepping in Vim

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

Dan Croak November 27, 2013 vim We often search our projects for specific text within Vim like so: :grep sometext However,...

Use Deadweight and your integration suite to au...

robots.thoughtbot.com 28 Nov '13, 11pm

Use Deadweight and your integration suite to automatically find unused CSS rules Jason Morrison January 04, 2011 integrati...

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

New, aggressive HIV strain causes Aids faster

straitstimes.com 28 Nov '13, 11pm

STOCKHOLM (AFP) - A new and more aggressive strain of HIV discovered in West Africa causes significantly faster progressio...

@FSC_US using forensic science to test species ...

buildinggreen.com 27 Nov '13, 11pm

New testing would detect the presence of endangered species or genetically modified organisms in wood products. By Paula M...

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