aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2013-11-29 17:08:36 +0100
committerArun Agrawal <arunagw@gmail.com>2013-11-29 17:08:36 +0100
commit3338f7060839301b24c41bcb6fd7e2894a88e1d6 (patch)
treec633a8f1bae8cc946448736120445a419d4a401f /railties
parentc85957ec7c247063cdc2f429c59132935ee64350 (diff)
downloadrails-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
Diffstat (limited to 'railties')
-rw-r--r--railties/test/generators/app_generator_test.rb3
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)