1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #1287 from guilleiguaran/removing-test_load_generators_from_railties

load_generators_from_railties was removed, remove test with error about it
This commit is contained in:
José Valim 2011-05-25 00:05:32 -07:00
commit a5ee94f6a2

View file

@ -185,13 +185,6 @@ class GeneratorsTest < Rails::Generators::TestCase
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")