spec/info_sqlite3.rb in baza-0.0.15 vs spec/info_sqlite3.rb in baza-0.0.16
- old
+ new
@@ -1,9 +1,9 @@
class Baza::InfoSqlite3
attr_reader :db
def initialize
- require "sqlite3"
+ require "sqlite3" unless RUBY_ENGINE == "jruby"
require "tmpdir"
@path = "#{Dir.tmpdir}/baza_sqlite3_test_#{Time.now.to_f.to_s.hash}.sqlite3"
File.unlink(path) if File.exists?(@path)
@db = Baza::Db.new(