diff --git a/spec/jdbc_spec_helper.rb b/spec/jdbc_spec_helper.rb index 9df9914..7a40111 100644 --- a/spec/jdbc_spec_helper.rb +++ b/spec/jdbc_spec_helper.rb @@ -131,7 +131,7 @@ RSpec.shared_context 'when outputting messages' do start_stop_cmd = 'sudo systemctl %s %s' end - cmd = cmd % { action: 'stop', service: systemd_database_service } + cmd = start_stop_cmd % { action: 'stop', service: systemd_database_service } `#{cmd}` # Start a thread to restart the service after the fact.