Improve where filter tests (#1472)

This commit is contained in:
Anders Søgaard
2021-09-16 10:02:39 -04:00
committed by GitHub
parent 10e2aa8d5b
commit db3999a008
+12
View File
@@ -770,6 +770,18 @@ class StandardFiltersTest < Minitest::Test
assert_equal(expectation, @filters.where(input, "ok"))
end
def test_where_string_keys
input = [
"alpha", "beta", "gamma", "delta"
]
expectation = [
"beta",
]
assert_equal(expectation, @filters.where(input, "be"))
end
def test_where_no_key_set
input = [
{ "handle" => "alpha", "ok" => true },