Removed tests for rescue branch for Rails 2.x compatibility

This commit is contained in:
Alexey Gaziev 2011-06-20 22:29:30 +04:00
parent 78cd3f9ec2
commit 91bbb8e956
2 changed files with 0 additions and 9 deletions

View File

@ -1,3 +0,0 @@
# Old generator version
class WrongGenerator < Rails::Generator::NamedBase
end

View File

@ -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"], {})