spec/permission/grant_spec.rb in arrthorizer-0.1.0.pre2 vs spec/permission/grant_spec.rb in arrthorizer-0.1.0
- old
+ new
@@ -1,10 +1,10 @@
require "spec_helper"
describe Arrthorizer::Permission do
describe :grant do
let(:privilege) { Arrthorizer::Privilege.new(name: "privilege") }
- let(:role) { UnnamespacedContextRole }
+ 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)