require 'factories' require 'qcourses/date_ex' Rubory.use_default_module('Qcourses') Rubory.define(:company) do name { |n| "company_#{n}" } contact_person "some contact" contact_email { |n| "contact_#{n}@email.com" } invoice_address "some address" postal_code "1234 AA" city "Amsterdam" end Rubory.define(:employee) do name "some employee" email { |n| "email_#{n}@qwan.it" } associate :company end Rubory.define(:event) do from { Date.tomorrow } to { Date.tomorrow.tomorrow } location "Tilburg" end