Sha256: 29010da69a3be277d28839b80610d6513348e6bbdfe767a7b843fcdd8111adff

Contents?: true

Size: 777 Bytes

Versions: 1

Compression:

Stored size: 777 Bytes

Contents

$:.unshift File.dirname(__FILE__)


require 'test/unit'
require 'marjoree'
require 'marjoree/fixtures'
require 'marjoree/odbc_connection_wrapper'
require 'test/unit'
#require 'util/majoree_util'

include Marjoree

def run_marjoree_tests_and_exit
  Test::Unit.run=true
  puts Test::Unit.run?

  #OdbcConnectionWrapper.odbc_config_path = '../../../DatabaseTests/credit_manager/odbc_config/connections.yml'
  OdbcConnectionWrapper.odbc_config_path = 'odbc_config/connections.yml'

  odbc_connection = OdbcConnectionWrapper.new()
  establish_connection_to( odbc_connection )
  connect_me_to( 'EMT_TEST' )

#  connect('EMT_TEST', 'sa', '' )
  Kernel.at_exit { disconnect_me }

  yield

  passed = Test::Unit::AutoRunner.run
  exit passed ? 0 : -1
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
marjoree-0.0.9 ./lib/run_marjoree.rb