diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-30 11:13:33 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-02 10:27:39 +0200 |
commit | d5d0b8ea8e632b25bb51fc5848f915008fd27665 (patch) | |
tree | 16bcf1ba7d455c0434139afbf6fe8436fd52ec26 /railties/lib/generators/test_unit | |
parent | 35c4df4aa5812abcd5928c31c1e673e32434b751 (diff) | |
download | rails-d5d0b8ea8e632b25bb51fc5848f915008fd27665.tar.gz rails-d5d0b8ea8e632b25bb51fc5848f915008fd27665.tar.bz2 rails-d5d0b8ea8e632b25bb51fc5848f915008fd27665.zip |
Removing unecessary class methods.
Diffstat (limited to 'railties/lib/generators/test_unit')
-rw-r--r-- | railties/lib/generators/test_unit/model/model_generator.rb | 2 |
1 files changed, 1 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 96883f592f..92fd75a2d5 100644 --- a/railties/lib/generators/test_unit/model/model_generator.rb +++ b/railties/lib/generators/test_unit/model/model_generator.rb @@ -4,9 +4,9 @@ module TestUnit module Generators class ModelGenerator < Base argument :attributes, :type => :hash, :default => {}, :banner => "field:type field:type" + class_option :fixture, :type => :boolean check_class_collision :suffix => "Test" - conditional_class_options :fixture def create_test_file template 'unit_test.rb', File.join('test/unit', class_path, "#{file_name}_test.rb") |