spec/role_spec.rb in access-granted-1.1.0 vs spec/role_spec.rb in access-granted-1.1.1

- old
+ new

@@ -47,10 +47,10 @@ expect(@role.find_permission(:vague_action, nil)).to_not be_nil end it "forbids creating actions with the same name" do @role.can :read, String - expect { @role.can :read, String }.to raise_error AccessGranted::DuplicatePermission + expect { @role.can :read, String }.to raise_error AccessGranted::DuplicatePermission, "Permission `read` is already defined for String in role `member`" end it "accepts :manage shortcut for CRUD actions" do @role.can :manage, String expect(@role.permissions.map(&:action)).to include(:read, :create, :update, :destroy)