Sha256: a0f2839f3f58e49f770da42e8b1da39b45e65def6b44ce5558609bdb6281f9b7

Contents?: true

Size: 382 Bytes

Versions: 11

Compression:

Stored size: 382 Bytes

Contents

require "spec_helper"

describe Arrthorizer::Privilege do
  describe :initialize do
    let(:role) { SomeGroup }
    let(:roles) { [ role ] }
    let(:name) { "some name" }

    subject(:privilege) { Arrthorizer::Privilege.new(name: name, roles: roles) }

    it "makes itself accessible to each provided role" do
      expect(privilege).to be_accessible_to(role)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
arrthorizer-0.4.2 spec/privilege/initialize_spec.rb
arrthorizer-0.4.1 spec/privilege/initialize_spec.rb
arrthorizer-0.3.2 spec/privilege/initialize_spec.rb
arrthorizer-0.3.1 spec/privilege/initialize_spec.rb
arrthorizer-0.3.0 spec/privilege/initialize_spec.rb
arrthorizer-0.2.1 spec/privilege/initialize_spec.rb
arrthorizer-0.2.0 spec/privilege/initialize_spec.rb
arrthorizer-0.1.3 spec/privilege/initialize_spec.rb
arrthorizer-0.1.2 spec/privilege/initialize_spec.rb
arrthorizer-0.1.1 spec/privilege/initialize_spec.rb
arrthorizer-0.1.0 spec/privilege/initialize_spec.rb