class ActiveRecord::DatabaseTasksDumpSchemaCacheTest
Public Instance Methods
test_dump_schema_cache()
click to toggle source
# File activerecord/test/cases/tasks/database_tasks_test.rb, line 91 def test_dump_schema_cache path = "/tmp/my_schema_cache.yml" ActiveRecord::Tasks::DatabaseTasks.dump_schema_cache(ActiveRecord::Base.connection, path) assert File.file?(path) ensure FileUtils.rm_rf(path) end