Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes failing test for JRuby

in JRuby FileUtils do not change
current dir when moving files
  • Loading branch information...
commit 3338f7060839301b24c41bcb6fd7e2894a88e1d6 1 parent c85957e
@arunagw arunagw authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  railties/test/generators/app_generator_test.rb
View
3  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)
Please sign in to comment.
Something went wrong with that request. Please try again.