Top Level Namespace

Includes:
Marjoree

Defined Under Namespace

Modules: Marjoree, ODBC, SybaseDefinitions Classes: ExpectedResultSet, Fixnum, Hash, OdbcConnectionWrapper, ResultSet

Instance Method Summary collapse

Methods included from Marjoree

#assert_contains, #assert_db_error, #assert_does_not_contain, #assert_empty, #assert_error_thrown, #assert_not_equal_results, #assert_results, #connect_me_to, #contains?, #count, #delete, #disconnect_me, #drop_user_sprocs, #drop_user_tables, #drop_user_views, #establish_connection_to, #execute, #get_user_sprocs, #get_user_tables, #get_user_views, #has_column_headers?, #has_correct_data?, #insert, #num_rows, #run_sproc, #select, #truncate, #update

Instance Method Details

#run_marjoree_tests_and_exitObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/run_marjoree.rb', line 13

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