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:
commit
a5ee94f6a2
1 changed files with 0 additions and 7 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue