mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03: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