Sha256: 159067b0e838661136445fb7e1515cd69a51a66e71677b6d7aba877381eeb6d4
Contents?: true
Size: 624 Bytes
Versions: 4
Compression:
Stored size: 624 Bytes
Contents
# frozen_string_literal: true require "spec_helper" describe Decidim::Comments::Abilities::ProcessAdminUser do let(:user) { build(:user) } let(:user_process) { create :participatory_process, organization: user.organization } let(:context) { {} } subject { described_class.new(user, context) } context "when the user is an admin" do let(:user) { build(:user, :admin) } it "doesn't have any permission" do expect(subject.permissions[:can]).to be_empty expect(subject.permissions[:cannot]).to be_empty end end it { is_expected.to be_able_to(:manage, Decidim::Comments::Comment) } end
Version data entries
4 entries across 4 versions & 1 rubygems