Address code review comments

- clean up comment wording
- fix potentially leaky tests
This commit is contained in:
Evan Huus
2014-09-16 17:23:26 +00:00
parent 67b2c320a1
commit eeb061ef44
3 changed files with 23 additions and 15 deletions
+8
View File
@@ -57,6 +57,14 @@ module Minitest
Liquid::Strainer.class_variable_set(:@@filters, original_filters)
end
def with_taint_mode(mode)
old_mode = Liquid::Template.taint_mode
Liquid::Template.taint_mode = mode
yield
ensure
Liquid::Template.taint_mode = old_mode
end
def with_error_mode(mode)
old_mode = Liquid::Template.error_mode
Liquid::Template.error_mode = mode