require File.join(File.dirname(__FILE__), "../_lib") module MoSQL class Test::Functional < MoSQL::Test attr_reader :sequel, :mongo def sql_test_uri ENV['MONGOSQL_TEST_SQL'] || 'postgres:///test' end def mongo_test_uri ENV['MONGOSQL_TEST_MONGO'] || 'mongodb://localhost' end def mongo_test_dbname ENV['MONGOSQL_TEST_MONGO_DB'] || 'test' end def connect_sql begin conn = Sequel.connect(sql_test_uri) conn.extension :pg_array conn.test_connection conn rescue Sequel::DatabaseConnectionError $stderr.puts <