Skip to content

Commit

Permalink
Kernel#Async: test passing through of annotation: keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
paddor committed Oct 1, 2024
1 parent 9338fc4 commit 5ab35c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/kernel/async.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
Async(transient: true) do |task|
expect(task).to be(:transient?)
end

Async(annotation: 'foobar') do |task|
expect(task.annotation).to be == 'foobar'
end
end
end
end

0 comments on commit 5ab35c5

Please sign in to comment.