From 3338f7060839301b24c41bcb6fd7e2894a88e1d6 Mon Sep 17 00:00:00 2001 From: Arun Agrawal Date: Fri, 29 Nov 2013 17:08:36 +0100 Subject: [PATCH] Fixes failing test for JRuby in JRuby FileUtils do not change current dir when moving files --- railties/test/generators/app_generator_test.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 73b54c2cb6..f89ff66e3e 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -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)