Sha256: dfd98f5497764b78ec789cb1ab828a66169dd95acd46adfe63bd094ae716214e
Contents?: true
Size: 810 Bytes
Versions: 1
Compression:
Stored size: 810 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-0.1.0 | decidim-admin/spec/queries/process_admins_spec.rb |