Sha256: 7b33d7ea3fecd9c2b6f69a1baca18896acc621a641ac83204713aa2a3ed9f861

Contents?: true

Size: 578 Bytes

Versions: 2

Compression:

Stored size: 578 Bytes

Contents

require 'factory_girl'

Factory.sequence :email do |n|
  "somebody#{n}@example.com"
end

Factory.sequence :user_authentication_token do |n|
  "xxxx#{Time.now.to_i}#{rand(1000)}#{n}xxxxxxxxxxxxx"
end

Factory.define :user do |f|
  f.email { Factory.next(:email) }
  f.login { |u| u.email }
  f.authentication_token { Factory.next(:user_authentication_token) }
  f.password "secret"
  f.password_confirmation "secret"
end

FEATURES_PATH = File.expand_path('../..', __FILE__)

# load shared env with features
require File.expand_path('../../../../features/support/env', __FILE__)

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
MyCommerceapi-1.0.0 api/features/support/env.rb
MyCommerce-0.0.3 api/features/support/env.rb