Sha256: f7dbdf555af06b065b9a6b24ee24543ac16b569e92058f8db969434a913dab08
Contents?: true
Size: 659 Bytes
Versions: 5
Compression:
Stored size: 659 Bytes
Contents
# frozen_string_literal: true require "cases/helper" require "models/owner" module ActiveRecord module ConnectionAdapters class SQLite3CreateFolder < ActiveRecord::SQLite3TestCase def test_sqlite_creates_directory Dir.mktmpdir do |dir| dir = Pathname.new(dir) @conn = Base.sqlite3_connection database: dir.join("db/foo.sqlite3"), adapter: "sqlite3", timeout: 100 assert Dir.exist? dir.join("db") assert File.exist? dir.join("db/foo.sqlite3") ensure @conn.disconnect! if @conn end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems