Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

superclass mismatch for class with Pundit gem #561

Open
TangMonk opened this issue Jun 4, 2016 · 0 comments
Open

superclass mismatch for class with Pundit gem #561

TangMonk opened this issue Jun 4, 2016 · 0 comments

Comments

@TangMonk
Copy link

TangMonk commented Jun 4, 2016

I have a following pundit policy in app/policies folder:

wx_admin_policy.rb

class WxAdminPolicy < Struct.new(:user, :feature)
...
end

When I run zeus test will throw an error:

superclass mismatch for class WxAdminPolicy (TypeError)

But run bundle exec rspec spec/ will works normally

Then I try to remove Struct.new(:user, :feature) in wx_admin_policy.rb :

class WxAdminPolicy
...
end

will works too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant