Switch to aliasing methods

This commit is contained in:
Mike Angell
2019-08-31 20:32:07 +10:00
parent 0521d78b30
commit cbea19b59f
6 changed files with 37 additions and 37 deletions
@@ -0,0 +1,14 @@
require 'test_helper'
class TryVariablesUsageTest < Minitest::Test
include Liquid
def test_test_usages
Usage.enable
template = Template.parse(%({{test}}))
assert_equal 'worked', template.render!('test' => 'worked')
assert_equal 'worked wonderfully', template.render!('test' => 'worked wonderfully')
assert_equal true, Usage.results["Using try_variable_find_in_environment"]
Usage.disable
end
end