Sha256: e233ae5557b80280c0c1f1092b60f61388e955ea4923deb2e4f216136c232de4

Contents?: true

Size: 590 Bytes

Versions: 17

Compression:

Stored size: 590 Bytes

Contents

require 'abstract_db_create'
require 'db/mysql'

class MysqlDbCreateTest < Test::Unit::TestCase
  include AbstractDbCreate

  def db_config
    MYSQL_CONFIG
  end

  if find_executable?("mysql")
    def test_rake_db_create
      Rake::Task["db:create"].invoke
      output = nil
      IO.popen("mysql -u #{MYSQL_CONFIG[:username]} --password=#{MYSQL_CONFIG[:password]}", "r+") do |mysql|
        mysql << "show databases where `Database` = '#{@db_name}';"
        mysql.close_write
        assert mysql.read =~ /#{@db_name}/m
      end
    end
  else
    def test_skipped
    end
  end
end

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
activerecord-jdbc-adapter-1.0.0-java test/mysql_db_create_test.rb
activerecord-jdbc-adapter-1.0.0.beta2-java test/mysql_db_create_test.rb
kb-activerecord-jdbc-adapter-0.9.7.1-java test/mysql_db_create_test.rb
kb-activerecord-jdbc-adapter-1.0.0.beta1-java test/mysql_db_create_test.rb
activerecord-jdbc-adapter-1.0.0.beta1-java test/mysql_db_create_test.rb
activerecord-jdbc-adapter-0.9.7-java test/mysql_db_create_test.rb
activerecord-jdbc-adapter-0.9.6-java test/mysql_db_create_test.rb
activerecord-jdbc-adapter-0.9.5-java test/mysql_db_create_test.rb
activerecord-jdbc-adapter-0.9.4-java test/mysql_db_create_test.rb
activerecord-jdbc-adapter-0.9.3-java test/mysql_db_create_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.6 test/mysql_db_create_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.5 test/mysql_db_create_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.4 test/mysql_db_create_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.3 test/mysql_db_create_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.2 test/mysql_db_create_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.1 test/mysql_db_create_test.rb
activerecord-jdbc-adapter-0.9.2 test/mysql_db_create_test.rb