forked from railsbridge/bridge_troll
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
144 additions
and
154 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
Factory.define :user do |f| | ||
f.name "Anne" | ||
f.sequence(:email) { |n| "example0#{n}@example.com"} | ||
f.confirmed_at DateTime.now # all users are confirmed by default | ||
f.password "test123" | ||
end | ||
FactoryGirl.define do | ||
factory :user do | ||
name "Anne" | ||
sequence(:email) { |n| "example0#{n}@example.com"} | ||
confirmed_at DateTime.now # all users are confirmed by default | ||
password "test123" | ||
end | ||
|
||
Factory.define :event do |e| | ||
e.sequence(:title) { |n| "Event #{n}" } | ||
e.date DateTime.now | ||
end | ||
factory :event do | ||
sequence(:title) { |n| "Event #{n}" } | ||
date DateTime.now | ||
end | ||
|
||
Factory.define :location do |l| | ||
l.sequence(:name) { |n| "Location #{n}" } | ||
l.sequence(:address) { |n| "#{n} Street San Francisco, CA 94108" } | ||
end | ||
factory :location do | ||
sequence(:name) { |n| "Location #{n}" } | ||
sequence(:address) { |n| "#{n} Street San Francisco, CA 94108" } | ||
end | ||
end |
This file contains 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
This file contains 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
Oops, something went wrong.