mirror of https://github.com/rails/rails
Removed tests for rescue branch for Rails 2.x compatibility
This commit is contained in:
parent
78cd3f9ec2
commit
91bbb8e956
|
@ -1,3 +0,0 @@
|
|||
# Old generator version
|
||||
class WrongGenerator < Rails::Generator::NamedBase
|
||||
end
|
|
@ -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"], {})
|
||||
|
|
Loading…
Reference in New Issue