Read more

Cucumber factory 1.10.0 released

Tobias Kraze
February 02, 2015Software engineer at makandra GmbH

I've pushed an update to Cucumber factory that simplifies working with FactoryGirl factories.

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

Say you define a factory with the class: option:

factory :admin, class: User
  email
  admin true
end

In the past, you had to write

Given there is a user (admin)

Now you can simply write

Given there is an admin

The class is inferred from the factory.

Posted by Tobias Kraze to makandra dev (2015-02-02 14:38)