From 80cc667e7be4f9746ba1b7c02fa68ea8a83f6aa5 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..c9803c6c 100644 --- a/spec/postgresql_upgrade_hook_context_extension_spec.rb +++ b/spec/postgresql_upgrade_hook_context_extension_spec.rb @@ -65,7 +65,7 @@ it 'removes data_directory from postgresql.conf' do expect(subject).to be_nil - expect(context).to have_received(:'execute!').with("sed -i '/^data_directory/d' /var/lib/pgsql/data/postgresql.conf", false, true) + expect(context).to have_received(:'execute!').with("sed -i '/^data_directory/d' /var/lib/pgsql/data/postgresql.conf", false, true, {}) end it 'runs postgresql-setup --upgrade' do @@ -75,7 +75,7 @@ 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