coinbase / temporal-ruby

Ruby SDK for Temporal
Apache License 2.0
225 stars 84 forks source link

Test for executable concerns with dup only for String #219

Closed jeffschoner closed 1 year ago

jeffschoner commented 1 year ago

Summary

This is a more refined fix for being able to invoke a workflow by name (#123, originally fixed in #128) that also allows workflows using Sorbet to be declared final (fixing #178). The object is now only dup'd before calling .singleton_class if it's a String.

Testing

Existing tests for starting workflows continue to pass (as do all other tests):

bundle exec rspec spec/integration/start_workflow_spec.rb

I've also tested that,