From 833a145f0b9db9951126e55f2321ec1ced52f022 Mon Sep 17 00:00:00 2001 From: Rui Baltazar Date: Mon, 25 May 2020 12:13:27 +0800 Subject: [PATCH] [#52] fixed failing specs --- spec/adapters/jdbc_mysql_adapter_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/adapters/jdbc_mysql_adapter_spec.rb b/spec/adapters/jdbc_mysql_adapter_spec.rb index 62219e23..6785b83b 100644 --- a/spec/adapters/jdbc_mysql_adapter_spec.rb +++ b/spec/adapters/jdbc_mysql_adapter_spec.rb @@ -9,7 +9,7 @@ subject { Apartment::Tenant.jdbc_mysql_adapter config.symbolize_keys } def tenant_names - ActiveRecord::Base.connection.execute('SELECT schema_name FROM information_schema.schemata').collect { |row| row[0] } + ActiveRecord::Base.connection.execute('SELECT schema_name FROM information_schema.schemata').collect { |row| row["SCHEMA_NAME"] } end let(:default_tenant) { subject.switch { ActiveRecord::Base.connection.current_database } }