Skip to content

Instantly share code, notes, and snippets.

@tubbo
Created January 31, 2011 17:13
Show Gist options
  • Select an option

  • Save tubbo/804395 to your computer and use it in GitHub Desktop.

Select an option

Save tubbo/804395 to your computer and use it in GitHub Desktop.
FactoryGirl definitions
# all factories for bacon's spec
FactoryGirl.define do
factory :user do
name 'Andrew Long'
login 'andrew' # @aplusldesign.com
password 'longj0hnsi|ver'
password_confirm 'longj0hnsi|ver'
end
factory :project do
name 'A+L Design'
number 14210
user_id 1 # andrew
live_url 'http://aplusldesign.com'
dev_url 'http://dev.aplusldesign.com'
end
factory :task do
overview 'A task to be completed'
description 'A little more jawn.'
association :user, :factory => :user
association :project, :factory => :project
flagged false
priority false
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment