aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/app_generator_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-10-28 18:32:53 -0200
committerYehuda Katz <wycats@gmail.com>2009-10-28 16:54:38 -0400
commita288b74f1c75c6f100de7611a5093a421f1ad6d1 (patch)
treec8947be8dd25b00db3d260aef20b6c8a53ed9c19 /railties/test/generators/app_generator_test.rb
parent8dcf91ca113579646e95b0fd7a864dfb6512a53b (diff)
downloadrails-a288b74f1c75c6f100de7611a5093a421f1ad6d1.tar.gz
rails-a288b74f1c75c6f100de7611a5093a421f1ad6d1.tar.bz2
rails-a288b74f1c75c6f100de7611a5093a421f1ad6d1.zip
Generators should use Rails.root instead of Dir.pwd [#3408 status:resolved]
Signed-off-by: Yehuda Katz <wycats@gmail.com>
Diffstat (limited to 'railties/test/generators/app_generator_test.rb')
-rw-r--r--railties/test/generators/app_generator_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb
index 20f2a24e6d..c44d25b72c 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -126,7 +126,7 @@ class AppGeneratorTest < GeneratorsTestCase
def test_template_from_dir_pwd
FileUtils.cd(Rails.root)
- assert_match /It works from file!/, run_generator(["-m", "lib/template.rb"])
+ assert_match /It works from file!/, run_generator(["-m", "../lib/template.rb"])
end
def test_template_raises_an_error_with_invalid_path
@@ -170,7 +170,7 @@ class AppGeneratorTest < GeneratorsTestCase
end
def generator(options={})
- @generator ||= Rails::Generators::AppGenerator.new([destination_root], options, :destination_root => destination_root)
+ @generator ||= Rails::Generators::AppGenerator.new([destination_root], options)
end
def action(*args, &block)