提交 ce4afa25 编写于 作者: G Guillermo Iguaran

load_generators_from_railties was removed, remove failing test_load_generators_from_railties

上级 52e01fc5
......@@ -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.
先完成此消息的编辑!
想要评论请 注册