Skip to content

Commit 070b19a

Browse files
committed
Unify connection var handling in tests for other adapters
1 parent aecb537 commit 070b19a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/bulk_insert/worker_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ class BulkInsertWorkerTest < ActiveSupport::TestCase
274274
connection = Testing.connection
275275
connection.stub :adapter_name, 'MySQL' do
276276
mysql_worker = BulkInsert::Worker.new(
277-
Testing.connection,
277+
connection,
278278
Testing.table_name,
279279
'id',
280280
%w(greeting age happy created_at updated_at color),
@@ -297,7 +297,7 @@ class BulkInsertWorkerTest < ActiveSupport::TestCase
297297
connection = Testing.connection
298298
connection.stub :adapter_name, 'Mysql2' do
299299
mysql_worker = BulkInsert::Worker.new(
300-
Testing.connection,
300+
connection,
301301
Testing.table_name,
302302
'id',
303303
%w(greeting age happy created_at updated_at color),
@@ -318,7 +318,7 @@ class BulkInsertWorkerTest < ActiveSupport::TestCase
318318
connection = Testing.connection
319319
connection.stub :adapter_name, 'Mysql2Spatial' do
320320
mysql_worker = BulkInsert::Worker.new(
321-
Testing.connection,
321+
connection,
322322
Testing.table_name,
323323
'id',
324324
%w(greeting age happy created_at updated_at color),
@@ -357,7 +357,7 @@ class BulkInsertWorkerTest < ActiveSupport::TestCase
357357
connection = Testing.connection
358358
connection.stub :adapter_name, 'PostgreSQL' do
359359
pgsql_worker = BulkInsert::Worker.new(
360-
Testing.connection,
360+
connection,
361361
Testing.table_name,
362362
'id',
363363
%w(greeting age happy created_at updated_at color),

0 commit comments

Comments
 (0)