Class: TestIngresConnection

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
ext/tests/tc_connect.rb,
ext/tests/tc_connect_with_login_only.rb,
ext/tests/tc_connect_with_login_password.rb

Instance Method Summary collapse

Instance Method Details

#test_connectObject



7
8
9
10
# File 'ext/tests/tc_connect.rb', line 7

def test_connect
  ing = Ingres.new()
  assert_kind_of(Ingres, ing.connect(@@database), "conn is not an Ingres object")
end

#test_connect_with_login_onlyObject



7
8
9
10
11
12
# File 'ext/tests/tc_connect_with_login_only.rb', line 7

def 
  ing = Ingres.new()
  assert_raise ArgumentError do
      ing.connect_with_credentials(@@database,@@username)
  end
end

#test_connect_with_login_passwordObject



7
8
9
10
# File 'ext/tests/tc_connect_with_login_password.rb', line 7

def 
  ing = Ingres.new()
  assert_kind_of(Ingres, ing.connect_with_credentials(@@database,@@username,@@password), "conn is not an Ingres object")
end