Sha256: cd8cc39b3b4e3a0ebe503aeb4fd04276005000145dd33a7b74a3530d46c1d0b7

Contents?: true

Size: 617 Bytes

Versions: 11

Compression:

Stored size: 617 Bytes

Contents

# frozen_string_literal: true

require "decidim/core/test/factories"
require "decidim/comments/test/factories"

FactoryGirl.define do
  factory :page_feature, parent: :feature do
    name { Decidim::Features::Namer.new(participatory_process.organization.available_locales, :pages).i18n_name }
    manifest_name :pages
    participatory_process { create(:participatory_process, :with_steps) }
  end

  factory :page, class: Decidim::Pages::Page do
    body { Decidim::Faker::Localized.wrapped("<p>", "</p>") { Decidim::Faker::Localized.sentence(4) } }
    feature { build(:feature, manifest_name: "pages") }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
decidim-0.5.1 decidim-pages/spec/factories.rb
decidim-0.5.0 decidim-pages/spec/factories.rb
decidim-0.4.4 decidim-pages/spec/factories.rb
decidim-0.4.3 decidim-pages/spec/factories.rb
decidim-0.4.2 decidim-pages/spec/factories.rb
decidim-0.4.1 decidim-pages/spec/factories.rb
decidim-0.4.0 decidim-pages/spec/factories.rb
decidim-0.3.2 decidim-pages/spec/factories.rb
decidim-0.3.1 decidim-pages/spec/factories.rb
decidim-0.3.0 decidim-pages/spec/factories.rb
decidim-0.2.0 decidim-pages/spec/factories.rb