Skip to content

Instantly share code, notes, and snippets.

View mpeychich's full-sized avatar

Matthew Peychich mpeychich

  • Goldstar
  • Portland, OR, USA
View GitHub Profile
@mpeychich
mpeychich / gist:193063
Created September 24, 2009 21:22 — forked from rgraff/gist:193060
def should_assign_to(*names)
names.each do |name|
it "should assign @#{name}" do
assigns(name.to_sym).should_not be_nil
end
end
end
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'
# 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'