Open TangMonk opened 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:
zeus test
superclass mismatch for class WxAdminPolicy (TypeError)
But run bundle exec rspec spec/ will works normally
bundle exec rspec spec/
Then I try to remove Struct.new(:user, :feature) in wx_admin_policy.rb :
Struct.new(:user, :feature)
class WxAdminPolicy ... end
will works too
I have a following pundit policy in app/policies folder:
wx_admin_policy.rb
When I run
zeus test
will throw an error:But run
bundle exec rspec spec/
will works normallyThen I try to remove
Struct.new(:user, :feature)
inwx_admin_policy.rb
:will works too