From 218a5a642c03b612e33fe9f80e8ed4750b9e52a4 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 18 Oct 2024 13:48:08 +0200 Subject: [PATCH] fix more tests --- spec/postgresql_upgrade_hook_context_extension_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/postgresql_upgrade_hook_context_extension_spec.rb b/spec/postgresql_upgrade_hook_context_extension_spec.rb index 469ef05b..e7f068ee 100644 --- a/spec/postgresql_upgrade_hook_context_extension_spec.rb +++ b/spec/postgresql_upgrade_hook_context_extension_spec.rb @@ -70,12 +70,12 @@ it 'runs postgresql-setup --upgrade' do expect(subject).to be_nil - expect(context).to have_received(:'execute!').with("runuser -l postgres -c 'PGSETUP_INITDB_OPTIONS=\"--lc-collate=en_US.UTF-8 --lc-ctype=en_US.UTF-8 --locale=en_US.UTF-8\" postgresql-setup --upgrade'", false, true) + expect(context).to have_received(:'execute!').with("runuser -l postgres -c 'PGSETUP_INITDB_OPTIONS=\"--lc-collate=en_US.UTF-8 --lc-ctype=en_US.UTF-8 --locale=en_US.UTF-8\" postgresql-setup --upgrade'", false, true, {}) end it 'runs vacuumdb --all --analyze-in-stages' do expect(subject).to be_nil - expect(context).to have_received(:'execute!').with("runuser -l postgres -c 'vacuumdb --all --analyze-in-stages'", false, true) + expect(context).to have_received(:'execute!').with("runuser -l postgres -c 'vacuumdb --all --analyze-in-stages'", false, true, {}) end end end