Posted over 2 years ago. Visible to the public.

CucumberFactory 1.11 lets you use FactoryGirl traits

If you have FactoryGirl traits like this:

factory :movie do title 'Sunshine' year 2007 trait :vintage do year 1951 end trait :moody do title 'Interstellar' end end

You can now call them from Cucumber Factory like this:

Given there is a movie (vintage, moody)
Growing Rails Applications in Practice
Check out our new e-book:
Learn to structure large Ruby on Rails codebases with the tools you already know and love.

Author of this card:

Henning Koch
Last edit:
over 2 years ago
by Henning Koch
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Henning Koch to makandropedia