decidim-pages/spec/factories.rb in decidim-0.5.1 vs decidim-pages/spec/factories.rb in decidim-0.6.0
- old
+ new
@@ -1,14 +1,14 @@
# frozen_string_literal: true
require "decidim/core/test/factories"
-require "decidim/comments/test/factories"
+require "decidim/participatory_processes/test/factories"
FactoryGirl.define do
factory :page_feature, parent: :feature do
- name { Decidim::Features::Namer.new(participatory_process.organization.available_locales, :pages).i18n_name }
+ name { Decidim::Features::Namer.new(participatory_space.organization.available_locales, :pages).i18n_name }
manifest_name :pages
- participatory_process { create(:participatory_process, :with_steps) }
+ participatory_space { create(:participatory_process, :with_steps, organization: organization) }
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") }