I am using Rails 4.1 and the Pundit gem. I created a UserPolicyTest class for my UserPolicy class. But when I run rake test, none of the tests in the class get run. I'm also trying to use mini-test. I cannot find any documentation on what the parent class should be. I also tried extending MiniTest::Unit:TestCase but that didn't work either. Below is the test class which is in the test/policies folder. The name is user_policy_test.rb. I removed some of the tests in the file to save space.
require 'test_helper'
class UserPolicyTest < ActiveSupport::TestCase
def setup
@user = users(:regularuser)
@admin = users(:admin)
@admin.role = :admin
end
def test_index
policy = UserPolicy.new @admin, nil
refute policy.index?
end
end