25 Jun '12, 1pm

We've deprecated FactoryGirl's step definitions; now's the perfect time to write better steps!

June 25, 2012 Tagged: factory girl cucumber testing four-phase test direct model access training wheels Comments (View) Writing Better Cucumber Scenarios; or, Why We’re Deprecating FactoryGirl’s Cucumber Steps For almost three years now, FactoryGirl has provided developers using Cucumber a handful of step definitions that make it easy to create records in the database. Here are a few examples: Given a post exists with a title of "Blog post about FactoryGirl" Given 5 posts exist Given the following posts exist: | title | author | | FactoryGirl is great! | email: [email protected] | | Ruby is wonderful! | email: [email protected] | While these steps are very easy to use, it requires a large amount of knowledge about each model in the step definitions. Your steps now know about the model name (Post ), its title attribute, one of its associations (author ), author has an e...

Full article: http://robots.thoughtbot.com/post/25650434584/writing-bet...

Tweets

Steak: because Cucumber is for vegetarians! - Jeff Kreeftmeijer:

Steak: because Cucumber is for vegetarians! - J...

jeffkreeftmeijer.com 24 Jun '12, 6pm

why you should write acceptance (or integration) tests , but you should. I used Cucumber for a while now and I love it, bu...

7 Foolproof Tactics to Write Better Blog Posts with Social Media

7 Foolproof Tactics to Write Better Blog Posts ...

searchenginejournal.com 25 Jun '12, 1pm

Scan Twitter, Facebook, Google+, and LinkedIn – What words are people using when they tweet or post on Facebook? Is it the...

Getting the most out of FactoryGirl

rubyflow.com 01 Jul '12, 11am

Getting the most out of FactoryGirl Posted by avdgaag on July 01, 2012 — 0 comments I blogged about a few tips and tricks ...

How to Write Email to Get a Better Response Rate

seomoz.org 27 Jun '12, 6pm

Cheers for this, looking at my spreadsheet of bloggers I'd say I get a pretty good response rate. It's pretty common sense...

What's better than stretching? Stretching in a pool! Here's why:

What's better than stretching? Stretching in a ...

runnersworld.com 27 Jun '12, 1pm

After a long run on a hot day, few things feel better than diving into a pool. But why stop at cooling off? By taking your...

How to Write Email to Get a Better Response Rate

seomoz.org 21 Jun '12, 5am

A successful SEO campaign is the perfect combination of all strategies. Whether you're working with on-page optimization, ...

This strangely addicting online running game wi...

rwdaily.runnersworld.com 28 Jun '12, 4pm

I can't remember exactly who I stole this from, but it was somebody on Facebook . (Sorry for the lack of credit, Facebook ...

Some good news, and next steps to take, from Rio

Some good news, and next steps to take, from Rio

greenbiz.com 25 Jun '12, 9pm

There's no lack of skepticism about the UN Rio +20 Earth Summit, and when it comes to political leadership, no real progre...