instance method create_fixture_file

Ruby on Rails 3.2.22.5

Since v3.0.20 Last seen in v3.2.22.5

Available in: v3.0.20 v3.1.12 v3.2.22.5

Signature

create_fixture_file()

No documentation comment.

Source
# File railties/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

Defined in railties/lib/rails/generators/test_unit/model/model_generator.rb line 20 · View on GitHub · Improve this page · Find usages on GitHub

Defined in TestUnit::Generators::ModelGenerator

Type at least 2 characters to search.

↑↓ navigate · open · esc close