1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fixes failing test for JRuby

in JRuby FileUtils do not change
current dir when moving files
This commit is contained in:
Arun Agrawal 2013-11-29 17:08:36 +01:00
parent c85957ec7c
commit 3338f70608

View file

@ -113,6 +113,9 @@ class AppGeneratorTest < Rails::Generators::TestCase
FileUtils.mv(app_root, app_moved_root)
# make sure we are in correct dir
FileUtils.cd(app_moved_root)
generator = Rails::Generators::AppGenerator.new ["rails"], { with_dispatchers: true },
destination_root: app_moved_root, shell: @shell
generator.send(:app_const)