Sha256: 3e9f285f23727b6fe1aa22e4a47508f0afd3794852df81ffb326f509dc9e31c3
Contents?: true
Size: 374 Bytes
Versions: 4
Compression:
Stored size: 374 Bytes
Contents
require "spec_helper" describe Arrthorizer::Permission do describe :grant do let(:privilege) { Arrthorizer::Privilege.new(name: "privilege") } let(:role) { Arrthorizer::Group.new("role") } it "adds the role to the privilege set" do Arrthorizer::Permission.grant(privilege, to: role) expect(privilege).to be_accessible_to(role) end end end
Version data entries
4 entries across 4 versions & 1 rubygems