summaryrefslogtreecommitdiff
path: root/spec/support/shared
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/shared')
-rw-r--r--spec/support/shared/functional/file_resource.rb36
1 files changed, 18 insertions, 18 deletions
diff --git a/spec/support/shared/functional/file_resource.rb b/spec/support/shared/functional/file_resource.rb
index 8319dee41e..77e823a682 100644
--- a/spec/support/shared/functional/file_resource.rb
+++ b/spec/support/shared/functional/file_resource.rb
@@ -476,12 +476,12 @@ shared_examples_for "a configured file resource" do
end
it "issues a warning/assumption in whyrun mode" do
- begin
- Chef::Config[:why_run] = true
- resource.run_action(:create) # should not raise
- ensure
- Chef::Config[:why_run] = false
- end
+
+ Chef::Config[:why_run] = true
+ resource.run_action(:create) # should not raise
+ ensure
+ Chef::Config[:why_run] = false
+
end
end
@@ -504,12 +504,12 @@ shared_examples_for "a configured file resource" do
end
it "issues a warning/assumption in whyrun mode" do
- begin
- Chef::Config[:why_run] = true
- resource.run_action(:create) # should not raise
- ensure
- Chef::Config[:why_run] = false
- end
+
+ Chef::Config[:why_run] = true
+ resource.run_action(:create) # should not raise
+ ensure
+ Chef::Config[:why_run] = false
+
end
end
@@ -535,12 +535,12 @@ shared_examples_for "a configured file resource" do
end
it "issues a warning/assumption in whyrun mode" do
- begin
- Chef::Config[:why_run] = true
- resource.run_action(:create) # should not raise
- ensure
- Chef::Config[:why_run] = false
- end
+
+ Chef::Config[:why_run] = true
+ resource.run_action(:create) # should not raise
+ ensure
+ Chef::Config[:why_run] = false
+
end
end