summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMatt Wrock <matt@mattwrock.com>2016-02-03 11:55:20 -0800
committerMatt Wrock <matt@mattwrock.com>2016-02-03 11:55:20 -0800
commit0f4a623172676d010782d880a3bc7a9da084d25d (patch)
treefbb761dce55d6b130a93e409379ce302b3064e47 /spec
parent09227432c7a8afeac633023abbeec2e9c14cbd1b (diff)
parentb74d0028914b03bce785b940f0cad5390444ae3a (diff)
downloadchef-0f4a623172676d010782d880a3bc7a9da084d25d.tar.gz
Merge pull request #4516 from chef/invalid
fixes #4515 and use FormatMessage to get correct error messages from native API instead of retyping them with our fingers
Diffstat (limited to 'spec')
-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