Sha256: 38f6fb118062a45eb4d0c10a67a56ae21b1ae077c3313d9b7247a25a14ac062e
Contents?: true
Size: 707 Bytes
Versions: 6
Compression:
Stored size: 707 Bytes
Contents
require "cases/helper" require 'models/owner' module ActiveRecord module ConnectionAdapters class SQLite3CreateFolder < ActiveRecord::SQLite3TestCase def test_sqlite_creates_directory Dir.mktmpdir do |dir| begin 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 end
Version data entries
6 entries across 6 versions & 1 rubygems