diff options
Diffstat (limited to 'railties/lib/generators/test_unit/observer/observer_generator.rb')
-rw-r--r-- | railties/lib/generators/test_unit/observer/observer_generator.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/railties/lib/generators/test_unit/observer/observer_generator.rb b/railties/lib/generators/test_unit/observer/observer_generator.rb new file mode 100644 index 0000000000..1f0613007b --- /dev/null +++ b/railties/lib/generators/test_unit/observer/observer_generator.rb @@ -0,0 +1,14 @@ +module TestUnit + module Generators + class ObserverGenerator < Base + desc <<DESC +Description: + Create TestUnit files for observer generator. +DESC + + def create_test_files + template 'unit_test.rb', File.join('test', 'unit', class_path, "#{file_name}_observer_test.rb") + end + end + end +end |