describe Api::TagPolicy do
  let(:context) { { role: role, real_user: role.user } }
  describe_rule :index do
    succeed 'role is an instructor' do
      let(:role) { create(:instructor) }
    end
    failed 'role is a ta' do
      let(:role) { create(:ta) }
    end
    failed 'role is a student' do
      let(:role) { create(:student) }
    end
  end
end
