Permalink
Browse files

Merge pull request #13105 from arunagw/jruby-gen-test-fix

Fixes failing test for JRuby
  • Loading branch information...
2 parents d4294fe + 3338f70 commit 31c20a244b7e9a284d45d7aaa56f6e5277810418 @rafaelfranca rafaelfranca committed Nov 29, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 railties/test/generators/app_generator_test.rb
@@ -113,6 +113,9 @@ def test_application_name_is_detected_if_it_exists_and_app_folder_renamed
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)

0 comments on commit 31c20a2

Please sign in to comment.