diff options
author | Xavier Noria <fxn@hashref.com> | 2011-05-07 00:11:13 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-05-07 00:11:50 +0200 |
commit | fa8623b52ef136d9479fe4f9cc61256228d590e0 (patch) | |
tree | 64ed07d6b9475f36f5e51ce392acc71173fc7c16 /railties/test/generators | |
parent | 8bbf47ad5f7092eb5c0b2f8eb7a60b03047fdfce (diff) | |
download | rails-fa8623b52ef136d9479fe4f9cc61256228d590e0.tar.gz rails-fa8623b52ef136d9479fe4f9cc61256228d590e0.tar.bz2 rails-fa8623b52ef136d9479fe4f9cc61256228d590e0.zip |
adds comments clarifying the role of SharedGeneratorTests
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 2 | ||||
-rw-r--r-- | railties/test/generators/plugin_new_generator_test.rb | 2 | ||||
-rw-r--r-- | railties/test/generators/shared_generator_tests.rb | 3 |
3 files changed, 7 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 8fb31a2429..cc0bd53639 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -39,6 +39,8 @@ DEFAULT_APP_FILES = %w( class AppGeneratorTest < Rails::Generators::TestCase include GeneratorsTestHelper arguments [destination_root] + + # brings setup, teardown, and some tests include SharedGeneratorTests def default_files diff --git a/railties/test/generators/plugin_new_generator_test.rb b/railties/test/generators/plugin_new_generator_test.rb index 33c8d83f9c..f637a6a17e 100644 --- a/railties/test/generators/plugin_new_generator_test.rb +++ b/railties/test/generators/plugin_new_generator_test.rb @@ -22,6 +22,8 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase include GeneratorsTestHelper destination File.join(Rails.root, "tmp/bukkits") arguments [destination_root] + + # brings setup, teardown, and some tests include SharedGeneratorTests def default_files diff --git a/railties/test/generators/shared_generator_tests.rb b/railties/test/generators/shared_generator_tests.rb index c9c5d2fad2..03fd64ca38 100644 --- a/railties/test/generators/shared_generator_tests.rb +++ b/railties/test/generators/shared_generator_tests.rb @@ -1,3 +1,6 @@ +# +# Tests, setup, and teardown common to the application and plugin generator suites. +# module SharedGeneratorTests def setup Rails.application = TestApp::Application |