class Object
Constants
- JRUBY
- WINDOWS
Public Instance Methods
connecting_with(uri)
click to toggle source
FIXME JRuby (and MRI): Should these be ArgumentError or DataObjects::SQLError?
# File lib/data_objects/spec/shared/connection_spec.rb, line 112 def connecting_with(uri) lambda { DataObjects::Connection.new(uri) } end
test_connection(conn)
click to toggle source
# File lib/data_objects/spec/shared/connection_spec.rb, line 1 def test_connection(conn) reader = conn.create_command(CONFIG.testsql || "SELECT 1").execute_reader reader.next! result = reader.values[0] result ensure reader.close conn.close end