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
defcall(**_any)authorize!(::Finance::ChargeTypes::ChargeType,to: :index?,with: ::ChargeTypePolicy)# .... rest of codeend
I understand the need to check for an_instance_of(Post) for which === makes sense, however I would suggest to change the matches? method in testing.rb code to:
Tell us about your environment
Ruby Version:
2.6.1
Framework Version (Rails, whatever):
Rails 5.2
Action Policy Version:
0.40.0
What did you do?
Upgraded from 0.31.1 to 0.40.0
What did you expect to happen?
Spec
be_authorized_to
to pass as usual.What actually happened?
Spec failed with following error:
Here's the spec code:
And here's the code that runs in subject:
I understand the need to check for
an_instance_of(Post)
for which===
makes sense, however I would suggest to change thematches?
method intesting.rb
code to:or something similar.
Thank you in advance
The text was updated successfully, but these errors were encountered: