提交 fa8623b5 编写于 作者: X Xavier Noria

adds comments clarifying the role of SharedGeneratorTests

上级 8bbf47ad
...@@ -39,6 +39,8 @@ ...@@ -39,6 +39,8 @@
class AppGeneratorTest < Rails::Generators::TestCase class AppGeneratorTest < Rails::Generators::TestCase
include GeneratorsTestHelper include GeneratorsTestHelper
arguments [destination_root] arguments [destination_root]
# brings setup, teardown, and some tests
include SharedGeneratorTests include SharedGeneratorTests
def default_files def default_files
......
...@@ -22,6 +22,8 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase ...@@ -22,6 +22,8 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase
include GeneratorsTestHelper include GeneratorsTestHelper
destination File.join(Rails.root, "tmp/bukkits") destination File.join(Rails.root, "tmp/bukkits")
arguments [destination_root] arguments [destination_root]
# brings setup, teardown, and some tests
include SharedGeneratorTests include SharedGeneratorTests
def default_files def default_files
......
#
# Tests, setup, and teardown common to the application and plugin generator suites.
#
module SharedGeneratorTests module SharedGeneratorTests
def setup def setup
Rails.application = TestApp::Application Rails.application = TestApp::Application
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册