Skip to content

Commit b6257ad

Browse files
authored
Fix test bad connection test (#1170)
1 parent e7880d0 commit b6257ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/cases/adapter_test_sqlserver.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ class AdapterTestSQLServer < ActiveRecord::TestCase
102102
assert_raise ActiveRecord::NoDatabaseError do
103103
db_config = ActiveRecord::Base.configurations.configs_for(env_name: "arunit", name: "primary")
104104
configuration = db_config.configuration_hash.merge(database: "nonexistent_activerecord_unittest")
105-
106-
connection = ActiveRecord::Base.sqlserver_connection configuration
105+
connection = ActiveRecord::ConnectionAdapters::SQLServerAdapter.new(configuration)
107106
connection.exec_query("SELECT 1")
108107
end
109108
end

0 commit comments

Comments
 (0)