Sha256: 91c521468c80f367df262acbad29322472a9d506e9dc082fbe67d211ba457171

Contents?: true

Size: 1.38 KB

Versions: 8

Compression:

Stored size: 1.38 KB

Contents

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

Factory.sequence :login do |n|
  "inquire#{n}"
end

Factory.sequence :name do |n|
  "a_name#{n}"
end

Factory.sequence :title do |n|
  "a_title#{n}"
end

Factory.sequence :abbr do |n|
  "abbr#{n}"
end

Factory.sequence :description do |n|
  "This is the description: #{n}"
end

Factory.sequence :uri do |n|
  "n#{n}.example.com"
end

Factory.define :state do |f|
  f.name { Factory.next(:name) }
  f.abbreviation { Factory.next(:abbr) }
  f.country {|a| a.association(:country) }
end

Factory.define :country do |f|
  f.name { Factory.next(:name) }
  f.abbreviation { Factory.next(:abbr) }
end

Factory.define :user do |f|
  f.login { Factory.next(:login) }
  f.email { Factory.next(:email) }
  f.password 'inquire_pass'
  f.password_confirmation 'inquire_pass'
  f.first_name 'test'
  f.last_name 'guy'
  f.terms_of_service true
  f.activated_at DateTime.now
end

Factory.define :permission do |f|
  f.role {|a| a.association(:role)}
  f.user {|a| a.association(:user)}
end

Factory.define :role do |f|
  f.rolename 'administrator'
end

Factory.define :share do |f|
  f.uri { Factory.next(:uri) }
  f.title { Factory.next(:title) }
  f.shared_by {|a| a.association(:user)}
end

Factory.define :domain_theme do |f|
  f.name { Factory.next(:name) }
  f.uri { Factory.next(:uri) }
end

Factory.define :theme do |f|
  f.name { Factory.next(:name) }
end


Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
muck-shares-0.1.7 test/rails_root/test/factories.rb
muck-shares-0.1.6 test/rails_root/test/factories.rb
muck-shares-0.1.5 test/rails_root/test/factories.rb
muck-shares-0.1.4 test/rails_root/test/factories.rb
muck-shares-0.1.1 test/rails_root/test/factories.rb
muck-shares-0.1.2 test/rails_root/test/factories.rb
muck-shares-0.1.3 test/rails_root/test/factories.rb
muck-shares-0.1.0 test/rails_root/test/factories.rb