summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/scanners/coderay_suite.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/scanners/coderay_suite.rb b/test/scanners/coderay_suite.rb
index 9b7da98..aa46f9b 100644
--- a/test/scanners/coderay_suite.rb
+++ b/test/scanners/coderay_suite.rb
@@ -416,8 +416,7 @@ module CodeRay
end
File.open(actual_html, 'w') { |f| f.write highlighted }
if okay
- debug = $DEBUG
- $DEBUG = false
+ debug, $DEBUG = $DEBUG, false
FileUtils.copy(actual_html, name + '.expected.html')
$DEBUG = debug
end