Sha256: c71f3d4bcf1ec6396bbc3face4de390cdda644fbe05cc401e4427c12513fe2f0

Contents?: true

Size: 690 Bytes

Versions: 18

Compression:

Stored size: 690 Bytes

Contents

# frozen_string_literal: true

require "decidim/faker/localized"
require "decidim/dev"

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

  factory :result, class: Decidim::Results::Result do
    title { Decidim::Faker::Localized.sentence(3) }
    description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { Decidim::Faker::Localized.sentence(4) } }
    feature { build(:feature, manifest_name: "results") }
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
decidim-results-0.6.8 lib/decidim/results/test/factories.rb
decidim-0.6.8 decidim-results/lib/decidim/results/test/factories.rb
decidim-results-0.6.7 lib/decidim/results/test/factories.rb
decidim-0.6.7 decidim-results/lib/decidim/results/test/factories.rb
decidim-results-0.6.6 lib/decidim/results/test/factories.rb
decidim-0.6.6 decidim-results/lib/decidim/results/test/factories.rb
decidim-results-0.6.5 lib/decidim/results/test/factories.rb
decidim-0.6.5 decidim-results/lib/decidim/results/test/factories.rb
decidim-results-0.6.4 lib/decidim/results/test/factories.rb
decidim-0.6.4 decidim-results/lib/decidim/results/test/factories.rb
decidim-results-0.6.3 lib/decidim/results/test/factories.rb
decidim-0.6.3 decidim-results/lib/decidim/results/test/factories.rb
decidim-results-0.6.2 lib/decidim/results/test/factories.rb
decidim-0.6.2 decidim-results/lib/decidim/results/test/factories.rb
decidim-results-0.6.1 lib/decidim/results/test/factories.rb
decidim-0.6.1 decidim-results/lib/decidim/results/test/factories.rb
decidim-results-0.6.0 lib/decidim/results/test/factories.rb
decidim-0.6.0 decidim-results/lib/decidim/results/test/factories.rb