Sha256: ab8f637d7ee57b1ae754d74f457ed6ff771cd4bc6f1e7cb621be58f4c3ae17f3

Contents?: true

Size: 763 Bytes

Versions: 2

Compression:

Stored size: 763 Bytes

Contents

require "assert"
require "ardb/adapter/mysql"

class Ardb::Adapter::Mysql
  class UnitTests < Assert::Context
    desc "Ardb::Adapter::Mysql"
    setup do
      @config  = Factory.ardb_config
      @adapter = Ardb::Adapter::Mysql.new(@config)
    end
    subject{ @adapter }

    # not currently implemented, see: https://github.com/redding/ardb/issues/13
    should "not implement the create and drop db methods" do
      assert_raises(NotImplementedError){ subject.create_db }
      assert_raises(NotImplementedError){ subject.drop_db }
    end

    # not currently implemented, see: https://github.com/redding/ardb/issues/28
    should "not implement the drop tables method" do
      assert_raises(NotImplementedError){ subject.drop_tables }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ardb-0.29.1 test/unit/adapter/mysql_tests.rb
ardb-0.29.0 test/unit/adapter/mysql_tests.rb