Skip to content

Commit

Permalink
Improve where filter tests (#1472)
Browse files Browse the repository at this point in the history
  • Loading branch information
andershagbard committed Sep 16, 2021
1 parent 10e2aa8 commit db3999a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/integration/standard_filter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,18 @@ def test_where
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 },
Expand Down

0 comments on commit db3999a

Please sign in to comment.