summaryrefslogtreecommitdiff
path: root/spec/functional/resource/group_spec.rb
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-07-29 13:49:58 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2015-07-29 13:49:58 -0700
commit66146d5352fd59b8e1f81370e40004f423a55699 (patch)
tree5c1798cb16415f57226281cb665e174208665678 /spec/functional/resource/group_spec.rb
parented8410999f190de51e082c4c4f5a8a8e2704f7e2 (diff)
downloadchef-66146d5352fd59b8e1f81370e40004f423a55699.tar.gz
Don't leak groups
Diffstat (limited to 'spec/functional/resource/group_spec.rb')
-rw-r--r--spec/functional/resource/group_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/functional/resource/group_spec.rb b/spec/functional/resource/group_spec.rb
index e5da0c4c7b..19a4d25404 100644
--- a/spec/functional/resource/group_spec.rb
+++ b/spec/functional/resource/group_spec.rb
@@ -234,6 +234,10 @@ describe Chef::Resource::Group, :requires_root_or_running_windows, :not_supporte
group_should_exist(group_name)
end
+ after(:each) do
+ group_resource.run_action(:remove)
+ end
+
describe "when updating membership" do
it "raises an error for a non well-formed domain name" do
group_resource.members [invalid_domain_user_name]