class TestUnit::Generators::ModelGenerator

:nodoc:
:nodoc:
:nodoc:

def create_fixture_file

def create_fixture_file
  if options[:fixture] && options[:fixture_replacement].nil?
    template "fixtures.yml", File.join("test/fixtures", class_path, "#{fixture_file_name}.yml")
  end
end

def create_test_file

def create_test_file
  template "unit_test.rb", File.join("test/models", class_path, "#{file_name}_test.rb")
end

def yaml_key_value(key, value)

def yaml_key_value(key, value)
  if RESERVED_YAML_KEYWORDS.include?(key.downcase)
    "'#{key}': #{value}"
  else
    "#{key}: #{value}"
  end
end