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:
parent
c85957ec7c
commit
3338f70608
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue