aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/test_unit/generator/templates/generator_test.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2013-12-10 18:05:13 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2013-12-10 18:05:13 -0200
commitb5c5121f67c88a2be1c56e810f5c64013351ce79 (patch)
tree9a7588caa0ebfa1cbd8086ff274d280c01dee9b4 /railties/lib/rails/generators/test_unit/generator/templates/generator_test.rb
parent031ce1f58128dc12bfef90e224e90c608fe489b4 (diff)
downloadrails-b5c5121f67c88a2be1c56e810f5c64013351ce79.tar.gz
rails-b5c5121f67c88a2be1c56e810f5c64013351ce79.tar.bz2
rails-b5c5121f67c88a2be1c56e810f5c64013351ce79.zip
Revert "Rename not Ruby files to .tt"
This reverts commit bd360ad3c1d59273bf96ea01b17cf04285816dc2. Reverting this for now until we fix the Thor related issue
Diffstat (limited to 'railties/lib/rails/generators/test_unit/generator/templates/generator_test.rb')
-rw-r--r--railties/lib/rails/generators/test_unit/generator/templates/generator_test.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/test_unit/generator/templates/generator_test.rb b/railties/lib/rails/generators/test_unit/generator/templates/generator_test.rb
new file mode 100644
index 0000000000..a7f1fc4fba
--- /dev/null
+++ b/railties/lib/rails/generators/test_unit/generator/templates/generator_test.rb
@@ -0,0 +1,16 @@
+require 'test_helper'
+require '<%= generator_path %>'
+
+<% module_namespacing do -%>
+class <%= class_name %>GeneratorTest < Rails::Generators::TestCase
+ tests <%= class_name %>Generator
+ destination Rails.root.join('tmp/generators')
+ setup :prepare_destination
+
+ # test "generator runs without errors" do
+ # assert_nothing_raised do
+ # run_generator ["arguments"]
+ # end
+ # end
+end
+<% end -%>