@@ -517,7 +517,7 @@ def test_structure_load
517
517
518
518
def test_structure_load_with_extra_flags
519
519
filename = "awesome-file.sql"
520
- expected_command = [ { } , "psql" , "--set" , "ON_ERROR_STOP=1" , "--quiet" , "--no-psqlrc" , "--output" , File ::NULL , "--file " , filename , "--noop" , @configuration [ "database" ] ]
520
+ expected_command = [ { } , "psql" , "--set" , "ON_ERROR_STOP=1" , "--quiet" , "--no-psqlrc" , "--output" , File ::NULL , "--noop " , "--file" , filename , @configuration [ "database" ] ]
521
521
522
522
assert_called_with ( Kernel , :system , expected_command , returns : true ) do
523
523
with_structure_load_flags ( [ "--noop" ] ) do
@@ -529,7 +529,7 @@ def test_structure_load_with_extra_flags
529
529
def test_structure_load_with_env
530
530
filename = "awesome-file.sql"
531
531
expected_env = { "PGHOST" => "my.server.tld" , "PGPORT" => "2345" , "PGUSER" => "jane" , "PGPASSWORD" => "s3cr3t" }
532
- expected_command = [ expected_env , "psql" , "--set" , "ON_ERROR_STOP=1" , "--quiet" , "--no-psqlrc" , "--output" , File ::NULL , "--file " , filename , "--noop" , @configuration [ "database" ] ]
532
+ expected_command = [ expected_env , "psql" , "--set" , "ON_ERROR_STOP=1" , "--quiet" , "--no-psqlrc" , "--output" , File ::NULL , "--noop " , "--file" , filename , @configuration [ "database" ] ]
533
533
534
534
assert_called_with ( Kernel , :system , expected_command , returns : true ) do
535
535
with_structure_load_flags ( [ "--noop" ] ) do
@@ -544,7 +544,7 @@ def test_structure_load_with_env
544
544
def test_structure_load_with_ssl_env
545
545
filename = "awesome-file.sql"
546
546
expected_env = { "PGSSLMODE" => "verify-full" , "PGSSLCERT" => "client.crt" , "PGSSLKEY" => "client.key" , "PGSSLROOTCERT" => "root.crt" }
547
- expected_command = [ expected_env , "psql" , "--set" , "ON_ERROR_STOP=1" , "--quiet" , "--no-psqlrc" , "--output" , File ::NULL , "--file " , filename , "--noop" , @configuration [ "database" ] ]
547
+ expected_command = [ expected_env , "psql" , "--set" , "ON_ERROR_STOP=1" , "--quiet" , "--no-psqlrc" , "--output" , File ::NULL , "--noop " , "--file" , filename , @configuration [ "database" ] ]
548
548
549
549
assert_called_with ( Kernel , :system , expected_command , returns : true ) do
550
550
with_structure_load_flags ( [ "--noop" ] ) do
@@ -569,7 +569,7 @@ def test_structure_load_with_hash_extra_flags_for_a_different_driver
569
569
570
570
def test_structure_load_with_hash_extra_flags_for_the_correct_driver
571
571
filename = "awesome-file.sql"
572
- expected_command = [ { } , "psql" , "--set" , "ON_ERROR_STOP=1" , "--quiet" , "--no-psqlrc" , "--output" , File ::NULL , "--file " , filename , "--noop" , @configuration [ "database" ] ]
572
+ expected_command = [ { } , "psql" , "--set" , "ON_ERROR_STOP=1" , "--quiet" , "--no-psqlrc" , "--output" , File ::NULL , "--noop " , "--file" , filename , @configuration [ "database" ] ]
573
573
574
574
assert_called_with ( Kernel , :system , expected_command , returns : true ) do
575
575
with_structure_load_flags ( { postgresql : [ "--noop" ] } ) do
0 commit comments