Sha256: 871751c3f38e97e3ee966bf8b8f4941e6e1df9a41cd7cf96d7c547825a15f866

Contents?: true

Size: 367 Bytes

Versions: 2

Compression:

Stored size: 367 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :external_event, class: Decidim::Calendar::ExternalEvent do
    title { generate_localized_title }
    start_at { Date.current }
    end_at { Date.current + 1.day }
    url { Faker::Internet.url }
    organization { build(:organization) }
    author { build(:user, organization: organization) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
decidim-calendar-0.19.0 lib/decidim/calendar/test/factories.rb
decidim-calendar-0.13.1.3 lib/decidim/calendar/test/factories.rb