Created
January 31, 2011 17:13
-
-
Save tubbo/804395 to your computer and use it in GitHub Desktop.
FactoryGirl definitions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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