19 May '13, 6am

Factory Girl step definitions for Cucumber

December 15, 2009 dancroak cucumber factory girl Factory Girl step definitions for Cucumber Did you know… Factory Girl includes some steps for your integration testing pleasure? They are currently available but remain relatively unknown. Read the source at lib/factory_girl/step_definitions.rb . They make Direct Model Access a little easier from your Cucumber features. example usage Define your factories normally in test/factories.rb or spec/factories.rb: Factory.define :user do |user| user.email { Factory.next(:email) } user.password { "password" } user.password_confirmation { "password" } end Factory.define :author, :parent => :user do |author| author.after_create { |a| Factory(:article, :author => a) } end Factory.define :recruiter, :parent => :user do |recruiter| recruiter.is_recruiter { true } end Make sure Factory Girl is available in your config/environments/cucumber...

Full article: http://robots.thoughtbot.com/post/284805810/factory-girl-...

Tweets

koriii: uncomprehended: For the girl with the...

caxs.tumblr.com 18 May '13, 6am

"Well that's your opinion isn't it? And Im not about to waste my time trying to change it." CAXSDOESNTWEARCLOTHES.TUMBLR.C...

VIDEO: Army Dad Surprises His Little Girl:

military.com 19 May '13, 12pm

A Tampa Bay area girl throwing the first pitch at a Rays game got a big surprise from her father, who had been stationed i...

Guide to Making Coffee Step by Step

ladyironchef.com 21 May '13, 3am

Stopped by the aroma of coffee but baffled by the various kinds of coffee beans? Captivated by the brew and foam art but n...

#Style Inspiration - Featuring the @ZiGishoes G...

heels.com 19 May '13, 12am

I wore these boots for about 8 or 9 hours the first time for dinner and clubbing. I am a petite 5ft 2in tall and have them...

Who’s this new GoDaddy girl? via @DomainNameWire

Who’s this new GoDaddy girl? via @DomainNameWire

domainnamewire.com 23 May '13, 1pm

GoDaddy.com has replaced Danica Patrick with a real small business customer. For most of last five years, GoDaddy girl Dan...

This girl ---> #Beaut

seaofshoes.typepad.com 27 May '13, 12pm

If your hair doesn't hold curl very well then you may want to put a palmful of curling mousse in it when it is halfway dry...

10 Factory Outlets to visit in Bandung, #Indone...

blog.malaysia-asia.my 19 May '13, 1pm

Don't forget that if you are visiting Singapore or Malaysia, you can also check out the Johor Premium Outlets (JPO) which ...

Managing test data with factory girl

rubyflow.com 28 May '13, 11pm

When writing software tests, you usually need to get your application into a certain state by creating test data. This tes...

Top 5 Cucumber best practices

rubyflow.com 21 May '13, 8pm

Top 5 Cucumber best practices Posted by manualwise on May 21, 2013 — 0 comments Once you get started with Cucumber, the qu...

Dusky #Shark One Step Closer to Protection unde...

switchboard.nrdc.org 18 May '13, 6am

Today marks an important day for sharks off our Atlantic coast and in the Gulf of Mexico. Responding to a petition filed b...