class Rails::Generators::TestCase

Public Class Methods

determine_default_generator(name) click to toggle source
# File lib/minitest/rails.rb, line 118
def self.determine_default_generator(name)
  generator = determine_constant_from_test_name(name) do |constant|
    Class === constant && constant < Rails::Generators::Base
  end
  raise NameError.new("Unable to resolve generator for #{name}") if generator.nil?
  generator
end