提交 75ba7425 编写于 作者: C Christian Wesselhoeft

Fix app generator test hanging.

上级 53c87195
......@@ -194,10 +194,6 @@ def create_bin_files
build(:bin)
end
def create_config_files
build(:config)
end
def update_config_files
build(:config_when_updating)
end
......
......@@ -119,7 +119,7 @@ def test_application_name_is_detected_if_it_exists_and_app_folder_renamed
generator = Rails::Generators::AppGenerator.new ["rails"], { with_dispatchers: true },
destination_root: app_moved_root, shell: @shell
generator.send(:app_const)
quietly { generator.send(:create_config_files) }
quietly { generator.send(:update_config_files) }
assert_file "myapp_moved/config/environment.rb", /Rails\.application\.initialize!/
assert_file "myapp_moved/config/initializers/session_store.rb", /_myapp_session/
end
......@@ -134,7 +134,7 @@ def test_rails_update_generates_correct_session_key
generator = Rails::Generators::AppGenerator.new ["rails"], { with_dispatchers: true }, destination_root: app_root, shell: @shell
generator.send(:app_const)
quietly { generator.send(:create_config_files) }
quietly { generator.send(:update_config_files) }
assert_file "myapp/config/initializers/session_store.rb", /_myapp_session/
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册