提交 a5ee94f6 编写于 作者: J José Valim

Merge pull request #1287 from guilleiguaran/removing-test_load_generators_from_railties

load_generators_from_railties was removed, remove test with error about it
......@@ -185,13 +185,6 @@ class WithOptionsGenerator < Rails::Generators::Base
Rails::Generators.subclasses.delete(WithOptionsGenerator)
end
def test_load_generators_from_railties
Rails::Generators::ModelGenerator.expects(:start).with(["Account"], {})
Rails::Generators.send(:remove_instance_variable, :@generators_from_railties)
Rails.application.expects(:load_generators)
Rails::Generators.invoke("model", ["Account"])
end
def test_rails_root_templates
template = File.join(Rails.root, "lib", "templates", "active_record", "model", "model.rb")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册