Sha256: 22befbf745d99f743910aa1bc28ead36822d95b32efa20e842637f2d178972ee

Contents?: true

Size: 200 Bytes

Versions: 36

Compression:

Stored size: 200 Bytes

Contents

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

Factory.define :user do |user|
  user.email { Factory.next :email }
  user.password "password"
  user.password_confirmation "password"
end

Version data entries

36 entries across 22 versions & 5 rubygems

Version Path
gravis-clearance-0.3.7 generators/clearance/templates/test/factories.rb
hashrocket-clearance-0.4.0 generators/clearance/templates/test/factories.rb
hashrocket-clearance-0.4.0 test/rails_root/test/factories.rb
hashrocket-clearance-0.4.1 generators/clearance/templates/test/factories.rb
hashrocket-clearance-0.4.1 test/rails_root/test/factories.rb
hashrocket-clearance-0.4.2 generators/clearance/templates/test/factories.rb
hashrocket-clearance-0.4.2 test/rails_root/test/factories.rb
hashrocket-clearance-0.4.3 test/rails_root/test/factories.rb
hashrocket-clearance-0.4.3 generators/clearance/templates/test/factories.rb
hashrocket-clearance-0.4.4 generators/clearance/templates/test/factories.rb
mischa-clearance-0.3.3 generators/clearance/templates/test/factories.rb
mischa-mischa-clearance-0.3.3 generators/clearance/templates/test/factories.rb
thoughtbot-clearance-0.2.2 test/rails_root/test/factories.rb
thoughtbot-clearance-0.2.3 test/rails_root/test/factories.rb
thoughtbot-clearance-0.2.4 test/rails_root/test/factories.rb
thoughtbot-clearance-0.2.5 generators/clearance/templates/test/factories.rb
thoughtbot-clearance-0.2.5 test/rails_root/test/factories.rb
thoughtbot-clearance-0.2.6 test/rails_root/test/factories.rb
thoughtbot-clearance-0.2.6 generators/clearance/templates/test/factories.rb
thoughtbot-clearance-0.2.7 generators/clearance/templates/test/factories.rb