Sha256: 7030fdde33aa99359a92d51bf369e3f26adb1d2f0a2a680ed2fc00da52dea02c

Contents?: true

Size: 317 Bytes

Versions: 9

Compression:

Stored size: 317 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

describe Decidim::Assemblies::Abilities::EveryoneAbility do
  let(:user) { build(:user) }

  subject { described_class.new(user, {}) }

  it "lets the user read assemblies" do
    expect(subject.permissions[:can][:read]).to include("Decidim::Assembly")
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-0.6.8 decidim-assemblies/spec/models/abilities/everyone_ability_spec.rb
decidim-0.6.7 decidim-assemblies/spec/models/abilities/everyone_ability_spec.rb
decidim-0.6.6 decidim-assemblies/spec/models/abilities/everyone_ability_spec.rb
decidim-0.6.5 decidim-assemblies/spec/models/abilities/everyone_ability_spec.rb
decidim-0.6.4 decidim-assemblies/spec/models/abilities/everyone_ability_spec.rb
decidim-0.6.3 decidim-assemblies/spec/models/abilities/everyone_ability_spec.rb
decidim-0.6.2 decidim-assemblies/spec/models/abilities/everyone_ability_spec.rb
decidim-0.6.1 decidim-assemblies/spec/models/abilities/everyone_ability_spec.rb
decidim-0.6.0 decidim-assemblies/spec/models/abilities/everyone_ability_spec.rb