Parent

Class/Module Index [+]

Quicksearch

Rspec::Generators::ModelGenerator

Public Instance Methods

create_fixture_file() click to toggle source
# File lib/generators/rspec/model/model_generator.rb, line 15
def create_fixture_file
  if options[:fixture] && options[:fixture_replacement].nil?
    template 'fixtures.yml', File.join('spec/fixtures', "#{table_name}.yml")
  end
end
create_model_spec() click to toggle source
# File lib/generators/rspec/model/model_generator.rb, line 9
def create_model_spec
  template 'model_spec.rb', File.join('spec/models', class_path, "#{file_name}_spec.rb")
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.