Test boolean setting returns false for nil value

This commit is contained in:
Karl Erik Õunapuu 2020-08-18 11:41:42 +03:00
parent 2330e8eab1
commit 75181f5bea
3 changed files with 7 additions and 9 deletions

View file

@ -103,6 +103,9 @@ class SettingEntryTest < ActiveSupport::TestCase
Setting.boolean_format = 'false'
assert_equal false, Setting.boolean_format
Setting.boolean_format = nil
assert_equal false, Setting.boolean_format
end
def test_parses_hash_format