Sha256: 396c46d76761d303f41af489d6a7ebbafe728dc60bf76dcd3420ec48de05dc57
Contents?: true
Size: 360 Bytes
Versions: 2
Compression:
Stored size: 360 Bytes
Contents
class Baza::InfoMysql attr_reader :db def initialize(args = {}) @db = Baza::Db.new({ type: :mysql2, host: "localhost", user: "baza-test", pass: "password", db: "baza-test" }.merge(args)) end def before @db.tables.list.each do |name, table| table.drop end end def after @db.close end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
baza-0.0.19 | spec/info_mysql2_example.rb |
baza-0.0.18 | spec/info_mysql2_example.rb |