From 52938473e724a16a5a4d2b4ae07cd6ba1ec19911 Mon Sep 17 00:00:00 2001 From: Bryan McLellan Date: Thu, 28 May 2015 16:29:00 -0400 Subject: 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. --- spec/functional/resource/group_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.1