09 May '12, 2pm

Speed up your test suite by using FactoryGirl's build_stubbed instead of build or create:

May 9, 2012 Tagged: factory girl rails slow tests testing Comments (View) Use Factory Girl’s build_stubbed for a Faster Test Suite 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 acce...

Full article: http://robots.thoughtbot.com/post/22670085288/use-factory...

Tweets

Your F-35 Flight Test Update #defense

Your F-35 Flight Test Update #defense

defensetech.org 08 May '12, 5pm

FORT WORTH, Texas, May 8, 2012 – Lockheed Martin’s [NYSE: LMT] F-35 Lightning II flight test program continues to make pro...

Take Attribution for a Test Drive Using a Secondary Profile

Take Attribution for a Test Drive Using a Secon...

searchenginewatch.com 10 May '12, 7am

Attribution has been a popular buzzword in the industry for years now. It’s a topic at nearly every digital marketing conf...

Clarkware › Ruby Learning Test #1: Are You Ther...

clarkware.com 08 May '12, 3am

Ruby Learning Test #1: Are You There, World? March 18, 2005 I truly have no idea where this is going or if it will scale. ...

Lockheed test fires DAGR from AH-64D Apache helicopter

Lockheed test fires DAGR from AH-64D Apache hel...

army-technology.com 09 May '12, 9am

Lockheed test fires DAGR from AH-64D Apache helicopter 9 May 2012 Print Email The Lockheed Martin-built direct attack guid...

Getting Hi-Tech!!>>NASA Will Use Cereal & Crayons to Test Engine Sensors

Getting Hi-Tech!!>>NASA Will Use Cereal & Crayo...

designnews.com 10 May '12, 1pm

NASA researchers are planning to put the engines of a C-17 cargo transport plane on a diet of cereal and crayons as part o...

Latest F-35 flight test report: 373 flights fro...

lockheedmartin.com 09 May '12, 2pm

Who We Are Absolute Freedom An engineer tells his inspiring story of how engineering helped him overcome a life-changing a...

IEEE preps cameraphone image-quality test: @ee_...

eetimes.com 07 May '12, 1pm

IEEE preps cameraphone image-quality test Rick Merritt 5/7/2012 9:00 AM EDT SAN JOSE – The IEEE aims to release within two...

Peek into the Rs 8 lakh Tata Suite Hillary Clinton stayed at in Delhi

Peek into the Rs 8 lakh Tata Suite Hillary Clin...

luxpresso.com 09 May '12, 8am

Hillary Clinton with Taj Palace general manager Taljinder Singh The Taj Palace in New Delhi seems to be Hillary Clinton 's...