Sha256: 078f28fba47fc155050ba4a03257525c7957bdaa80123690fbf64a00af383090

Contents?: true

Size: 683 Bytes

Versions: 8

Compression:

Stored size: 683 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

8 entries across 8 versions & 1 rubygems

Version Path
ibm_db-5.2.0 test/cases/adapters/sqlite3/sqlite3_create_folder_test.rb
ibm_db-5.1.0 test/cases/adapters/sqlite3/sqlite3_create_folder_test.rb
ibm_db-5.0.5 test/cases/adapters/sqlite3/sqlite3_create_folder_test.rb
ibm_db-5.0.4 test/cases/adapters/sqlite3/sqlite3_create_folder_test.rb
ibm_db-5.0.3 test/cases/adapters/sqlite3/sqlite3_create_folder_test.rb
ibm_db-5.0.2 test/cases/adapters/sqlite3/sqlite3_create_folder_test.rb
ibm_db-4.0.0-x86-mingw32 test/cases/adapters/sqlite3/sqlite3_create_folder_test.rb
ibm_db-4.0.0 test/cases/adapters/sqlite3/sqlite3_create_folder_test.rb