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
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 |
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
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' |
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
# 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' |