Sha256: a63f68f537a3a195ab19345915b76035370b6231eb1f60c3eb198ad30978da80

Contents?: true

Size: 1.03 KB

Versions: 6

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true

RSpec.shared_context "participatory process admin" do
  let(:organization) { create(:organization) }
  let!(:user) { create(:user, :admin, :confirmed, organization: organization) }
  let(:participatory_process) { create(:participatory_process, organization: organization) }
  let(:process_admin) { create :user, :confirmed, organization: organization }
  let!(:user_role) { create :participatory_process_user_role, user: process_admin, participatory_process: participatory_process }
  let(:image1_filename) { "city.jpeg" }
  let(:image1_path) do
    File.expand_path(File.join(__dir__, "..", "..", "..", "decidim-dev", "spec", "support", image1_filename))
  end
  let(:image2_filename) { "city2.jpeg" }
  let(:image2_path) do
    File.expand_path(File.join(__dir__, "..", "..", "..", "decidim-dev", "spec", "support", image2_filename))
  end
  let(:image3_filename) { "city3.jpeg" }
  let(:image3_path) do
    File.expand_path(File.join(__dir__, "..", "..", "..", "decidim-dev", "spec", "support", image3_filename))
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-0.4.2 decidim-admin/spec/shared/participatory_admin_shared_context.rb
decidim-0.4.1 decidim-admin/spec/shared/participatory_admin_shared_context.rb
decidim-0.4.0 decidim-admin/spec/shared/participatory_admin_shared_context.rb
decidim-0.3.2 decidim-admin/spec/shared/participatory_admin_shared_context.rb
decidim-0.3.1 decidim-admin/spec/shared/participatory_admin_shared_context.rb
decidim-0.3.0 decidim-admin/spec/shared/participatory_admin_shared_context.rb