# File lib/adaptation/test/test_help.rb, line 143
  def assert_database_present db_settings_hash
    update_activerecord_test_configuration db_settings_hash

    ActiveRecord::Base.remove_connection
    
    ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations[ADAPTOR_ENV])

    database_exists = true
    begin
      connection = ActiveRecord::Base.connection
    rescue Exception => e
      database_exists = false
    end

    error = build_message error,
            "? database not found",
            ActiveRecord::Base.configurations[ADAPTOR_ENV][:database]
    assert_block error do
      database_exists
    end

  end