We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b64b4f6 commit d7c16b5Copy full SHA for d7c16b5
test/cases/adapter_test_sqlserver.rb
@@ -102,8 +102,7 @@ class AdapterTestSQLServer < ActiveRecord::TestCase
102
assert_raise ActiveRecord::NoDatabaseError do
103
db_config = ActiveRecord::Base.configurations.configs_for(env_name: "arunit", name: "primary")
104
configuration = db_config.configuration_hash.merge(database: "nonexistent_activerecord_unittest")
105
-
106
- connection = ActiveRecord::Base.sqlserver_connection configuration
+ connection = ActiveRecord::ConnectionAdapters::SQLServerAdapter(configuration)
107
connection.exec_query("SELECT 1")
108
end
109
0 commit comments