You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really helpful to have a quick way to test that a policy implements given actions or actions on objects. Currently we have to do something like:
it "has the expected actions" do
user = build(:user)
policy = AccessControl::RolePolicy.new(user)
expect(policy).to respond_to(:create_edit_roles?, :manage?)
end
The text was updated successfully, but these errors were encountered:
It would be really helpful to have a quick way to test that a policy implements given actions or actions on objects. Currently we have to do something like:
The text was updated successfully, but these errors were encountered: