diff options
author | Alexey Gaziev <alex.gaziev@gmail.com> | 2011-06-20 22:29:30 +0400 |
---|---|---|
committer | Alexey Gaziev <alex.gaziev@gmail.com> | 2011-06-20 22:29:30 +0400 |
commit | 91bbb8e9567a4c15a5812f32d603827045277e93 (patch) | |
tree | 0c6a1a5ea9344e997bcaab7b20519be0defee26e /railties/test | |
parent | 78cd3f9ec262a6da8283a6ec95751a0bcd776051 (diff) | |
download | rails-91bbb8e9567a4c15a5812f32d603827045277e93.tar.gz rails-91bbb8e9567a4c15a5812f32d603827045277e93.tar.bz2 rails-91bbb8e9567a4c15a5812f32d603827045277e93.zip |
Removed tests for rescue branch for Rails 2.x compatibility
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/fixtures/lib/generators/wrong_generator.rb | 3 | ||||
-rw-r--r-- | railties/test/generators_test.rb | 6 |
2 files changed, 0 insertions, 9 deletions
diff --git a/railties/test/fixtures/lib/generators/wrong_generator.rb b/railties/test/fixtures/lib/generators/wrong_generator.rb deleted file mode 100644 index 6aa7cb052e..0000000000 --- a/railties/test/fixtures/lib/generators/wrong_generator.rb +++ /dev/null @@ -1,3 +0,0 @@ -# Old generator version -class WrongGenerator < Rails::Generator::NamedBase -end 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"], {}) |