Sha256: fbe700c0efdbd85819e32057e79a57385e7dc6c683fd583b065caf023dfd1ed6
Contents?: true
Size: 811 Bytes
Versions: 5
Compression:
Stored size: 811 Bytes
Contents
# frozen_string_literal: true require "spec_helper" describe Decidim::Admin::ProcessAdmins do let(:organization) { create :organization } let(:participatory_process) { create :participatory_process, organization: organization } let!(:admin) { create(:user, :admin, :confirmed, organization: organization) } let!(:participatory_process_admin) do user = create(:user, :confirmed, organization: organization) Decidim::Admin::ParticipatoryProcessUserRole.create!( role: :admin, user: user, participatory_process: participatory_process ) user end subject { described_class.new(participatory_process) } it "returns the organization admins and participatory process admins" do expect(subject.query).to match_array([admin, participatory_process_admin]) end end
Version data entries
5 entries across 5 versions & 1 rubygems