Break down  Rails::Generator::TestCase into modules
Merge pull request #10021 from pabloh/refactor_rails_generator_test_case

Refactor Rails::Generator::TestCase into modules
Move the class methods to above the protected section