class TestUnit::Generators::ModelGenerator

Constants

RESERVED_YAML_KEYWORDS

Public Instance Methods

create_fixture_file() click to toggle source
# File lib/rails/generators/test_unit/model/model_generator.rb, line 20
def create_fixture_file
  if options[:fixture] && options[:fixture_replacement].nil?
    template 'fixtures.yml', File.join('test/fixtures', class_path, "#{plural_file_name}.yml")
  end
end
create_test_file() click to toggle source
# File lib/rails/generators/test_unit/model/model_generator.rb, line 14
def create_test_file
  template 'unit_test.rb', File.join('test/unit', class_path, "#{file_name}_test.rb")
end