mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
[StaticRegisters] Add test coverage
This commit is contained in:
@@ -52,6 +52,12 @@ class StaticRegistersUnitTest < Minitest::Test
|
||||
static_register.fetch(:d)
|
||||
end
|
||||
assert_equal("default", static_register.fetch(:d, "default"))
|
||||
|
||||
result = static_register.fetch(:d) { "default" }
|
||||
assert_equal("default", result)
|
||||
|
||||
result = static_register.fetch(:d, "default 1") { "default 2" }
|
||||
assert_equal("default 2", result)
|
||||
end
|
||||
|
||||
def test_key
|
||||
|
||||
Reference in New Issue
Block a user