summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-07-24 16:16:43 -0700
committerPete Higgins <pete@peterhiggins.org>2020-07-24 16:16:43 -0700
commit06e34d0d9cf2d0ad0e1dcae57c564ff8f623beb0 (patch)
treea95e19d5984448c9aafb82025bd9100e9a7746f5
parent051998e10d4188594ec8ce924c6a02584c60508a (diff)
downloadchef-06e34d0d9cf2d0ad0e1dcae57c564ff8f623beb0.tar.gz
Remove some unnecessary test cleanup.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
-rw-r--r--spec/unit/util/diff_spec.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/unit/util/diff_spec.rb b/spec/unit/util/diff_spec.rb
index 4d112a7884..6ff2c0c6da 100644
--- a/spec/unit/util/diff_spec.rb
+++ b/spec/unit/util/diff_spec.rb
@@ -61,10 +61,6 @@ shared_examples_for "a diff util" do
Chef::Config[:diff_disabled] = true
end
- after do
- Chef::Config[:diff_disabled] = false
- end
-
it "calling for_output should return the error message" do
expect(differ.for_output).to eql( [ "(diff output suppressed by config)" ] )
end
@@ -300,14 +296,9 @@ shared_examples_for "a diff util" do
describe "when testing the diff_filesize_threshold" do
before do
- @diff_filesize_threshold_saved = Chef::Config[:diff_filesize_threshold]
Chef::Config[:diff_filesize_threshold] = 10
end
- after do
- Chef::Config[:diff_filesize_threshold] = @diff_filesize_threshold_saved
- end
-
describe "when the old_file goes over the threshold" do
before do
old_tempfile.write("But thats what you get when Wu-Tang raised you")
@@ -359,14 +350,9 @@ shared_examples_for "a diff util" do
describe "when the diff output is too long" do
before do
- @diff_output_threshold_saved = Chef::Config[:diff_output_threshold]
Chef::Config[:diff_output_threshold] = 10
end
- after do
- Chef::Config[:diff_output_threshold] = @diff_output_threshold_saved
- end
-
it "calling for_output should return the error message" do
expect(differ.for_output).to eql(["(long diff of over 10 characters, diff output suppressed)"])
end