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