class Rspec::Generators::ModelGenerator

@private

def create_fixture_file

def create_fixture_file
  return unless missing_fixture_replacement?
  template 'fixtures.yml', File.join('spec/fixtures', class_path, "#{(pluralize_table_names? ? plural_file_name : file_name)}.yml")
end

def create_model_spec

def create_model_spec
  template_file = File.join(
    'spec/models',
    class_path,
    "#{file_name}_spec.rb"
  )
  template 'model_spec.rb', template_file
end

def missing_fixture_replacement?

def missing_fixture_replacement?
  options[:fixture] && options[:fixture_replacement].nil?
end