Sha256: 76490350d6d378798701bedffe9b9a3c29af1f0d0857f1fef1994856b907a45a
Contents?: true
Size: 300 Bytes
Versions: 5
Compression:
Stored size: 300 Bytes
Contents
FactoryGirl.define do factory :calendar do description { "<p>#{Faker::Lorem.paragraphs(2).join('</p><p>')}</p>" } transient do owner { User.find_by_name('Admin User') } end after(:create) do |record, evaluator| evaluator.owner.add_role(:owner, record) end end end
Version data entries
5 entries across 5 versions & 1 rubygems