engine/spec/factories.rb

22 lines
414 B
Ruby

## Site ##
Factory.define :site do |s|
s.name 'Acme Website'
s.subdomain 'acme'
s.created_at Time.now
end
# Accounts ##
Factory.define :account do |a|
a.name 'Bart Simpson'
a.email 'bart@simpson.net'
a.password 'easyone'
a.password_confirmation 'easyone'
a.locale 'en'
end
## Pages ##
Factory.define :page do |p|
p.association :site, :factory => :site
p.title 'Home page'
p.slug 'index'
end