diff options
author | Arun Agrawal <arunagw@gmail.com> | 2013-11-29 17:08:36 +0100 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2013-11-29 17:08:36 +0100 |
commit | 3338f7060839301b24c41bcb6fd7e2894a88e1d6 (patch) | |
tree | c633a8f1bae8cc946448736120445a419d4a401f | |
parent | c85957ec7c247063cdc2f429c59132935ee64350 (diff) | |
download | rails-3338f7060839301b24c41bcb6fd7e2894a88e1d6.tar.gz rails-3338f7060839301b24c41bcb6fd7e2894a88e1d6.tar.bz2 rails-3338f7060839301b24c41bcb6fd7e2894a88e1d6.zip |
Fixes failing test for JRuby
in JRuby FileUtils do not change
current dir when moving files
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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) |