Merge pull request #7287 from rwhogg/system_command_spec-more-specific-error-message

system_command_spec: Make part of bash error regex optional
This commit is contained in:
Mike McQuaid 2020-04-05 16:39:44 +01:00 committed by GitHub
commit 6f50801b37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ describe SystemCommand do
it "unsets them" do
expect {
command.run!
}.to raise_error(/C: parameter null or not set/)
}.to raise_error(/C: parameter (null or )?not set/)
end
end