Created
July 9, 2009 21:17
-
-
Save rgraff/144005 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
# done | |
# -- Matthew Peychich | |
Factory.define :venue do |v| | |
v.name 'Foo Place' | |
v.url {Factory.next(:url_slug)} | |
v.address_hint 'MyString' | |
v.phone '(805) 555-1212' | |
v.capacity 'MyString' | |
v.website 'example.com' | |
v.image 'MyString' | |
v.description 'MyText' | |
v.directions 'MyText' | |
v.handicap_info 'MyText' | |
v.handicap_availability 0 | |
v.custom_seattypes 'MyText' | |
v.geocode_latitude 9.99 | |
v.geocode_longitude 9.99 | |
v.active true | |
v.created_by_user {|a| a.association(:user)} | |
v.address {|a| a.association(:address)} | |
# Make sure the address has a matching postal_code object | |
Factory(:postal_code, :country_name => v.address.country_name, :postal_code => v.address.postal_code) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment