instance method
create_fixture_file
Ruby on Rails 3.1.12
Since v3.0.20 Last seen in v3.2.22.5Signature
create_fixture_file()
No documentation comment.
Source
# File railties/lib/rails/generators/test_unit/model/model_generator.rb, line 17
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
Defined in railties/lib/rails/generators/test_unit/model/model_generator.rb line 17
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in TestUnit::Generators::ModelGenerator