From 57f409a0d49cb50ae4c7598264a90679ae7b9716 Mon Sep 17 00:00:00 2001 From: Bryan McLellan Date: Wed, 19 Jul 2017 15:26:26 -0400 Subject: Update error messages to indicate user who lacks privilege on Windows In some cases the user running mixlib-shellout needs additional privileges, in other cases the user we're trying to run the process as needs them. Signed-off-by: Bryan McLellan --- spec/mixlib/shellout_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/mixlib/shellout_spec.rb b/spec/mixlib/shellout_spec.rb index 15bfa39..57c1403 100644 --- a/spec/mixlib/shellout_spec.rb +++ b/spec/mixlib/shellout_spec.rb @@ -660,7 +660,7 @@ describe Mixlib::ShellOut do let(:options) { { :user => user, :password => password, :elevated => true } } it "raises error" do - expect { running_user }.to raise_error("Logon failure: the user has not been granted the requested logon type at this computer. - LogonUserW (You must hold `Log on as a service` and `Log on as a batch job` permissions.)") + expect { running_user }.to raise_error(/the user has not been granted the requested logon type at this computer/) end end end -- cgit v1.2.1