spec/info_sqlite3.rb in baza-0.0.35 vs spec/info_sqlite3.rb in baza-0.0.36

- old
+ new

@@ -1,28 +1,19 @@ class Baza::InfoSqlite3 attr_reader :db def initialize(args = {}) require "sqlite3" unless RUBY_ENGINE == "jruby" - require "tmpdir" - @path = "#{Dir.tmpdir}/baza_sqlite3_test_#{Time.now.to_f.to_s.hash}_#{Random.rand}.sqlite3" - File.unlink(path) if File.exist?(@path) - @db = Baza::Db.new({ type: :sqlite3, - path: @path, + path: ":memory:", index_append_table_name: true, sql_to_error: true, debug: false }.merge(args)) end - def before - @db.tables.list(&:drop) - end + def before; end - def after - @db.close - File.unlink(@path) - end + def after; end end