diff options
author | Bryan McLellan <btm@loftninjas.org> | 2015-05-28 16:29:00 -0400 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2015-05-28 16:29:00 -0400 |
commit | 52938473e724a16a5a4d2b4ae07cd6ba1ec19911 (patch) | |
tree | 9b1e8e86bf5f399e932f1216b787bc6169c76e7f | |
parent | 678d696b169d6fbcf5966124f41847bfc3282c13 (diff) | |
download | chef-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.rb | 5 |
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 |