Created
August 29, 2011 14:24
-
-
Save jgonera/1178495 to your computer and use it in GitHub Desktop.
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
| # Fabrication | |
| Fabricator(:user) do | |
| email { sequence(:email) { |n| "tester#{n}@test.com" } } | |
| password 'tester' | |
| end | |
| Fabricator(:store, from: :dropbox_store) do | |
| path '/myproject' | |
| end | |
| Fabricator(:project) do | |
| name { sequence(:name) { |n| "A project #{n}" } } | |
| store | |
| end | |
| # FactoryGirl | |
| FactoryGirl.define do | |
| factory :user do | |
| sequence(:email) { |n| "tester#{n}@test.com" } | |
| password 'tester' | |
| end | |
| factory :store, class: DropboxStore do | |
| path '/myproject' | |
| end | |
| factory :project do | |
| sequence(:name) { |n| "A project #{n}" } | |
| store | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment