Sha256: aaa31dbe9c3222c277f50a8c59d69f76f6e6a73391bd3e2d5d0eaa0ee145b75f
Contents?: true
Size: 618 Bytes
Versions: 49
Compression:
Stored size: 618 Bytes
Contents
FactoryBot.define do factory :cmor_testimonials_testimonial, class: "Cmor::Testimonials::Testimonial" do association(:category, factory: :cmor_testimonials_category) sequence(:fullname) {|n| "John_Doe_#{n}" } role { "MyString" } company { "MyString" } body { "MyText" } published_at { 1.hour.ago } after(:build) do |resource| image = resource.image.attach( io: File.open(Cmor::Testimonials::Engine.root.join(*%w( spec files cmor testimonials testimonials homer.png))), filename: 'homer.png', content_type: 'image/png' ) end end end
Version data entries
49 entries across 49 versions & 1 rubygems