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-28 16:29:00 -0400
commit52938473e724a16a5a4d2b4ae07cd6ba1ec19911 (patch)
tree9b1e8e86bf5f399e932f1216b787bc6169c76e7f
parent678d696b169d6fbcf5966124f41847bfc3282c13 (diff)
downloadchef-btm/group-should-not-exist.tar.gz
Groups should not exist before managing groups that don't exist in testsbtm/group-should-not-exist
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