Sha256: 0f3d6ee3b8e958422932158733ca4cc4594e27d6f132c95a32e7b73c79d2c674
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 Bytes
Contents
require 'helper' require 'sqlite3' db_path = File.expand_path('../../tmp/test.sqlite3', __FILE__) FileUtils.mkdir_p File.dirname(db_path) FileUtils.rm_f db_path ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => db_path describe "upserting on sqlite" do before do ActiveRecord::Base.connection.drop_table Pet.table_name rescue nil Pet.auto_upgrade! @connection = new_connection end def new_connection db_path = File.expand_path('../../tmp/test.sqlite3', __FILE__) SQLite3::Database.open(db_path) end def connection @connection end it_behaves_like :database end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
upsert-0.0.1 | test/test_sqlite.rb |