summaryrefslogtreecommitdiff
path: root/spec/functional/resource/group_spec.rb
diff options
context:
space:
mode:
authorMatt Wrock <matt@mattwrock.com>2016-02-03 09:58:18 -0800
committerMatt Wrock <matt@mattwrock.com>2016-02-03 09:58:18 -0800
commitb74d0028914b03bce785b940f0cad5390444ae3a (patch)
treebf1e75773bae697cd469f5e560440e2fd0b5e1c5 /spec/functional/resource/group_spec.rb
parentab63cd4be967b5d01f6ec856244e4b9af4e896d9 (diff)
downloadchef-b74d0028914b03bce785b940f0cad5390444ae3a.tar.gz
fixes #4515 and use FormatMessage to get correct error messages from native API instead of retyping them with our fingersinvalid
Diffstat (limited to 'spec/functional/resource/group_spec.rb')
-rw-r--r--spec/functional/resource/group_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/functional/resource/group_spec.rb b/spec/functional/resource/group_spec.rb
index 8d52975bad..cb460fe7b4 100644
--- a/spec/functional/resource/group_spec.rb
+++ b/spec/functional/resource/group_spec.rb
@@ -58,7 +58,7 @@ describe Chef::Resource::Group, :requires_root_or_running_windows, :not_supporte
when "debian", "fedora", "rhel", "suse", "gentoo", "slackware", "arch"
expect { Etc::getgrnam(group) }.to raise_error(ArgumentError, "can't find group for #{group}")
when "windows"
- expect { Chef::Util::Windows::NetGroup.new(group).local_get_members }.to raise_error(ArgumentError, "The group name could not be found.")
+ expect { Chef::Util::Windows::NetGroup.new(group).local_get_members }.to raise_error(ArgumentError, /The group name could not be found./)
end
end