summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2015-05-28 16:29:00 -0400
committerBryan McLellan <btm@loftninjas.org>2015-05-29 10:58:56 -0400
commitc58162b9ce165bde444ff396a95668666884c052 (patch)
treeb36993e6c41a18079063835bc554b160d7246eda
parenta8725192286927dd6a9c275dd205b81db5e2ee90 (diff)
downloadchef-c58162b9ce165bde444ff396a95668666884c052.tar.gz
Groups should not exist before managing groups that don't exist in tests
Attempting to solve an intermittent issue, or at least help identify it.
-rw-r--r--spec/functional/resource/group_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/functional/resource/group_spec.rb b/spec/functional/resource/group_spec.rb
index 6676aa32e9..529af52d4e 100644
--- a/spec/functional/resource/group_spec.rb
+++ b/spec/functional/resource/group_spec.rb
@@ -372,6 +372,11 @@ downthestreetalwayshadagoodsmileonhisfacetheoldmanwalkingdownthestreeQQQQQQ" }
let(:tested_action) { :manage }
describe "when there is no group" do
+ before(:each) do
+ group_resource.run_action(:remove)
+ group_should_not_exist(group_name)
+ end
+
it "raises an error on modify" do
expect { group_resource.run_action(:modify) }.to raise_error
end