Skip to content

Commit

Permalink
Split tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Oct 29, 2024
1 parent fd1aaea commit 2e2f9a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/kernel/async.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
end
end

it "passes options through to initial task" do
it "passes transient: options through to initial task" do
Async(transient: true) do |task|
expect(task).to be(:transient?)
end

end

it "passes annotation: option through to initial task" do
Async(annotation: "foobar") do |task|
expect(task.annotation).to be == "foobar"
end
Expand Down

0 comments on commit 2e2f9a8

Please sign in to comment.