Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 90fd03aafa
Fetching contributors…

Cannot retrieve contributors at this time

file 24 lines (21 sloc) 0.504 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Factory.define :user do |f|
  f.first_name "Joe"
  f.last_name "Smith"
  f.sequence(:email) {|n| "joesmith#{n}@example.com"}
end

Factory.define :twitter_user, :parent => :user do |f|
  f.provider 'twitter'
  f.uid '123456'
  f.avatar 'spec/fixtures/Buddy.png'
  f.username 'joesmith'
end

Factory.define :shipping_address do |f|
  f.association :user
  f.street "123 Main St"
  f.city "San Francisco"
  f.zip "1234"
  f.state "CA"
end

Factory.define :order do |f|
  f.association :shipping_address
end
Something went wrong with that request. Please try again.