Sha256: c4086ed1493f178e6f0265fc2b92509751eb727b76b5c813050eb887ead55100

Contents?: true

Size: 238 Bytes

Versions: 40

Compression:

Stored size: 238 Bytes

Contents

require_relative 'model_factory'

class UserFactory < ModelFactory
  def self.for(user)
    super('users')[user]
  end
end

ParameterType(
  name: 'user',
  regexp: /[A-Za-z0-9]+ user/,
  transformer: ->(user) { UserFactory.for(user) }
)

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
ruby_raider-1.0.8 lib/generators/cucumber/templates/user_factory.tt
ruby_raider-1.0.7 lib/generators/cucumber/templates/user_factory.tt
ruby_raider-1.0.6 lib/generators/cucumber/templates/user_factory.tt
ruby_raider-1.0.5 lib/generators/cucumber/templates/user_factory.tt
ruby_raider-1.0.4 lib/generators/cucumber/templates/user_factory.tt
ruby_raider-1.0.3 lib/generators/cucumber/templates/user_factory.tt
ruby_raider-1.0.2 lib/generators/cucumber/templates/user_factory.tt
ruby_raider-1.0.1 lib/generators/cucumber/templates/user_factory.tt
ruby_raider-1.0.0 lib/generators/cucumber/templates/user_factory.tt
ruby_raider-0.9.9 lib/generators/cucumber/templates/user_factory.tt
ruby_raider-0.9.8 lib/generators/cucumber/templates/user_factory.tt
ruby_raider-0.9.7 lib/generators/cucumber/templates/user_factory.tt
ruby_raider-0.9.6 lib/generators/cucumber/templates/user_factory.tt
ruby_raider-0.9.5 lib/generators/cucumber/templates/user_factory.tt
ruby_raider-0.9.4 lib/generators/cucumber/templates/user_factory.tt
ruby_raider-0.9.3 lib/generators/cucumber/templates/user_factory.tt
ruby_raider-0.9.2 lib/generators/cucumber/templates/user_factory.tt
ruby_raider-0.9.1 lib/generators/cucumber/templates/user_factory.tt
ruby_raider-0.9.0 lib/generators/cucumber/templates/user_factory.tt
ruby_raider-0.8.9 lib/generators/cucumber/templates/user_factory.tt