From 91bbb8e9567a4c15a5812f32d603827045277e93 Mon Sep 17 00:00:00 2001 From: Alexey Gaziev Date: Mon, 20 Jun 2011 22:29:30 +0400 Subject: Removed tests for rescue branch for Rails 2.x compatibility --- railties/test/generators_test.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'railties/test/generators_test.rb') diff --git a/railties/test/generators_test.rb b/railties/test/generators_test.rb index 301ae80bcf..56329f3183 100644 --- a/railties/test/generators_test.rb +++ b/railties/test/generators_test.rb @@ -88,12 +88,6 @@ class GeneratorsTest < Rails::Generators::TestCase assert Rails::Generators.find_by_namespace(:model) end - def test_find_by_namespace_show_warning_if_generator_cant_be_loaded - output = capture(:stderr) { Rails::Generators.find_by_namespace(:wrong) } - assert_match(/\[WARNING\] Could not load generator/, output) - assert_match(/Rails 2\.x generator/, output) - end - def test_invoke_with_nested_namespaces model_generator = mock('ModelGenerator') do expects(:start).with(["Account"], {}) -- cgit v1.2.3