aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-18 12:28:52 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-18 16:21:10 +0100
commite75ea474346e74e36d92febd47985c3571b1472b (patch)
treeaa6813658ffc7492f0b781765e730950f224096f /railties/test/generators
parenta2e2e73c5ef7c9082810d77c831c50c91011e6d9 (diff)
downloadrails-e75ea474346e74e36d92febd47985c3571b1472b.tar.gz
rails-e75ea474346e74e36d92febd47985c3571b1472b.tar.bz2
rails-e75ea474346e74e36d92febd47985c3571b1472b.zip
Automatically remove :generators: from namespaces.
Diffstat (limited to 'railties/test/generators')
-rw-r--r--railties/test/generators/actions_test.rb2
-rw-r--r--railties/test/generators/app_generator_test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/generators/actions_test.rb b/railties/test/generators/actions_test.rb
index 196cec3ce7..b59ec524e8 100644
--- a/railties/test/generators/actions_test.rb
+++ b/railties/test/generators/actions_test.rb
@@ -20,7 +20,7 @@ class ActionsTest < GeneratorsTestCase
end
def test_invoke_other_generator_with_full_namespace
- action :invoke, 'rails:generators:model', ['my_model']
+ action :invoke, 'rails:model', ['my_model']
assert_file 'app/models/my_model.rb', /MyModel/
end
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb
index 5fab233c8d..83de50bbb4 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -158,7 +158,7 @@ class AppGeneratorTest < GeneratorsTestCase
end
def test_default_namespace
- assert_match "rails:generators:app", Rails::Generators::AppGenerator.namespace
+ assert_match "rails:app", Rails::Generators::AppGenerator.namespace
end
def test_file_is_added_for_backwards_compatibility