Skip to content

Commit

Permalink
Reverse containment check for empty fields
Browse files Browse the repository at this point in the history
  • Loading branch information
sorentwo committed Sep 12, 2023
1 parent b2ebd71 commit 8834d63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/oban/testing_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ defmodule Oban.TestingTest do

describe "assert_enqueued/1" do
test "checking for jobs with matching properties" do
insert!(%{}, queue: :omega)
insert!(%{id: 1, xd: 1}, worker: Ping, queue: :alpha)
insert!(%{id: 2, xd: 2}, worker: Pong, queue: :gamma)
insert!(%{message: "hello"}, worker: Pong, queue: :gamma)
Expand All @@ -247,6 +248,7 @@ defmodule Oban.TestingTest do
assert_enqueued worker: Pong
assert_enqueued worker: "Pong", queue: "gamma"
assert_enqueued worker: "Pong", queue: "gamma", args: %{message: "hello"}
assert_enqueued args: %{}, queue: :omega
assert_enqueued args: %{id: 1}
assert_enqueued args: %{id: 1, xd: 1}
assert_enqueued args: %{message: "hello"}
Expand Down

0 comments on commit 8834d63

Please sign in to comment.