diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-28 11:56:44 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-28 11:56:44 +0200 |
commit | 496dde95fbedddad5d04afbe660ff1544229032c (patch) | |
tree | 4d6bf2643cd217d1d36a3afff26551480af4c6c5 /railties/lib/generators/test_unit/model/model_generator.rb | |
parent | c03585aa8da175888ad0893ef29d887f87fb749b (diff) | |
download | rails-496dde95fbedddad5d04afbe660ff1544229032c.tar.gz rails-496dde95fbedddad5d04afbe660ff1544229032c.tar.bz2 rails-496dde95fbedddad5d04afbe660ff1544229032c.zip |
Added migrations and make base generators be lazy loaded.
Diffstat (limited to 'railties/lib/generators/test_unit/model/model_generator.rb')
-rw-r--r-- | railties/lib/generators/test_unit/model/model_generator.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/generators/test_unit/model/model_generator.rb b/railties/lib/generators/test_unit/model/model_generator.rb index dc53c7cf2f..74440d93d3 100644 --- a/railties/lib/generators/test_unit/model/model_generator.rb +++ b/railties/lib/generators/test_unit/model/model_generator.rb @@ -1,10 +1,12 @@ +require 'generators/test_unit' + module TestUnit module Generators class ModelGenerator < Base argument :attributes, :type => :hash, :default => {}, :banner => "field:type, field:type" check_class_collision :suffix => "Test" - conditional_class_option :fixture + conditional_class_options :fixture def create_test_file template 'unit_test.rb', File.join('test/unit', class_path, "#{file_name}_test.rb") |