Topic: How do I list all test_methods from within my test class

I have method which I call in my ActionController::TestCase class that re-runs a set of tests as mobile requests. Right now it takes a list of test names as an argument and re-runs each of those tests, but I would like to have the option of getting all test methods in the class and iterating over them.

My test class looks like this:

require 'test_helper'

class ResourcesControllerTest < ActionController::TestCase

  mobile_test :all
...
end

and my method (in test_helper.rb) looks like this:

  # Adds an extra test with mobile format enabled
  # Usage: mobile_test :show
  # This adds