Class: TestIngresQueryUsername
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- TestIngresQueryUsername
- Defined in:
- ext/tests/tc_query_username.rb
Instance Method Summary collapse
Instance Method Details
#setup ⇒ Object
7 8 9 10 |
# File 'ext/tests/tc_query_username.rb', line 7 def setup @ing = Ingres.new() @ing.connect(@@database, @@username, @@password) end |
#test_query_username ⇒ Object
12 13 14 15 |
# File 'ext/tests/tc_query_username.rb', line 12 def test_query_username # ing.execute returns and array so we want the first and only element assert_equal @@username, @ing.execute("select dbmsinfo('username')")[0][0] end |
#test_tables ⇒ Object
17 18 19 20 |
# File 'ext/tests/tc_query_username.rb', line 17 def test_tables # ing.execute returns and array so we want the first and only element assert_not_nil @ing.tables.include? "airport" end |