Skip to content

Commit f018e3c

Browse files
committed
chore: fix ends_with tests
1 parent b557323 commit f018e3c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

test/calculation_test.exs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -275,27 +275,27 @@ defmodule AshSqlite.CalculationTest do
275275
|> Ash.read_one!()
276276
end
277277

278-
test "string_ends_with? matches a suffix" do
278+
test "string_ends_with matches a suffix" do
279279
Post
280280
|> Ash.Changeset.for_create(:create, %{title: "foo-dude-bar"})
281281
|> Ash.create!()
282282

283283
assert Post
284-
|> Ash.Query.filter(string_ends_with?(title, "-bar"))
284+
|> Ash.Query.filter(string_ends_with(title, "-bar"))
285285
|> Ash.read_one!()
286286

287287
refute Post
288-
|> Ash.Query.filter(string_ends_with?(title, "foo"))
288+
|> Ash.Query.filter(string_ends_with(title, "foo"))
289289
|> Ash.read_one!()
290290
end
291291

292-
test "string_ends_with? escapes wildcards" do
292+
test "string_ends_with escapes wildcards" do
293293
Post
294294
|> Ash.Changeset.for_create(:create, %{title: "abc-off-xyz"})
295295
|> Ash.create!()
296296

297297
refute Post
298-
|> Ash.Query.filter(string_ends_with?(title, "%z"))
298+
|> Ash.Query.filter(string_ends_with(title, "%z"))
299299
|> Ash.read_one!()
300300
end
301301

0 commit comments

Comments
 (0)