burke / zeus

Boot any rails app in under a second.
MIT License
3.33k stars 231 forks source link

superclass mismatch for class with Pundit gem #561

Open TangMonk opened 8 years ago

TangMonk commented 8 years ago

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