Created
December 25, 2013 23:48
-
-
Save testflyjets/8127993 to your computer and use it in GitHub Desktop.
FactoryGirl setup
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
FactoryGirl.define do | |
factory :flight do | |
name "Testing" | |
flt_number 69 | |
contact "Rich Eagledell" | |
email "[email protected]" | |
address1 "P.O. Box 2233" | |
city "MCAS Miramar" | |
state "CA" | |
zip "92040" | |
active true | |
description "San Diego's first Daedalians flight" | |
end | |
end | |
FactoryGirl.define do | |
factory :location do | |
flight | |
location_name "Miramar Club" | |
address "2233 Gunny Street" | |
city "La Jolla" | |
state "CA" | |
phone "858-555-1212" | |
map_url "http://maps.google.com" | |
directions "Follow the map" | |
default_instructions "Cash, check or Apollo online payment" | |
end | |
end | |
FactoryGirl.define do | |
factory :event do | |
flight | |
location | |
member | |
event_name "January 2014 Meeting" | |
headline "Start the New Year out right!" | |
description "We'll be meeting at the Club to kick-off a great new year" | |
start_time Time.new(2014, 1, 9, 11, 30) | |
end_time Time.new(2014, 1, 9, 14, 0) | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment