Skip to content

Commit d7c16b5

Browse files
committed
Updated test
1 parent b64b4f6 commit d7c16b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/cases/adapter_test_sqlserver.rb

+1-2
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(configuration)
107106
connection.exec_query("SELECT 1")
108107
end
109108
end

0 commit comments

Comments
 (0)