summaryrefslogtreecommitdiff
path: root/spec/functional/resource/group_spec.rb
diff options
context:
space:
mode:
authorSalim Alam <salam@chef.io>2016-04-07 16:02:03 -0700
committerSalim Alam <salam@chef.io>2016-04-07 16:02:03 -0700
commit42a7bd45202848b19f25e90a4131b967cbf4f675 (patch)
tree6f66e4e20d37ee297b8dcfa28f31373c4879717c /spec/functional/resource/group_spec.rb
parentefc7e38ac32dd362029e65b57ae4825db4d15cb0 (diff)
downloadchef-42a7bd45202848b19f25e90a4131b967cbf4f675.tar.gz
Update specssalam/group-fix
Diffstat (limited to 'spec/functional/resource/group_spec.rb')
-rw-r--r--spec/functional/resource/group_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/functional/resource/group_spec.rb b/spec/functional/resource/group_spec.rb
index 521c8e887d..f7c232b588 100644
--- a/spec/functional/resource/group_spec.rb
+++ b/spec/functional/resource/group_spec.rb
@@ -267,14 +267,14 @@ describe Chef::Resource::Group, :requires_root_or_running_windows, :not_supporte
end
describe "when removing members" do
- it "raises an error for a non well-formed domain name" do
+ it "does not raise an error for a non well-formed domain name" do
group_resource.excluded_members [invalid_domain_user_name]
- expect { group_resource.run_action(tested_action) }.to raise_error Chef::Exceptions::Win32APIError
+ expect { group_resource.run_action(tested_action) }.to_not raise_error Chef::Exceptions::Win32APIError
end
- it "raises an error for a nonexistent domain" do
+ it "does not raise an error for a nonexistent domain" do
group_resource.excluded_members [nonexistent_domain_user_name]
- expect { group_resource.run_action(tested_action) }.to raise_error Chef::Exceptions::Win32APIError
+ expect { group_resource.run_action(tested_action) }.to_not raise_error Chef::Exceptions::Win32APIError
end
end
end