test/docs/wrap_test.rb in trailblazer-macro-2.1.13 vs test/docs/wrap_test.rb in trailblazer-macro-2.1.14

- old
+ new

@@ -648,13 +648,14 @@ assert_equal Trailblazer::Developer::Introspect.find_path(activity, ["Wrap/WrapUnitTest::HandleUnsafeProcess", :validation, :validate])[0].task.inspect, %{#<Trailblazer::Activity::TaskBuilder::Task user_proc=validate>} #@ Patch interface - patched_activity = Trailblazer::Activity::DSL::Linear.Patch( + patched_activity = Trailblazer::Activity::DSL::Linear::Patch.call( activity, - ["Wrap/WrapUnitTest::HandleUnsafeProcess"] => -> { step mock_validation, replace: :validation, id: :validation } + ["Wrap/WrapUnitTest::HandleUnsafeProcess"], + -> { step mock_validation, replace: :validation, id: :validation } ) #@ the original activity with Wrap is unchanged. assert_invoke activity, seq: %{[:validate]} @@ -666,12 +667,13 @@ class WrapStrategyComplianceTest < Minitest::Spec Song = WrapSimpleHandlerTest::Song it do #:patch - upload_with_upsert = Trailblazer::Activity::DSL::Linear.Patch( + upload_with_upsert = Trailblazer::Activity::DSL::Linear::Patch.call( Song::Activity::Upload, - ["Wrap/MyTransaction"] => -> { step :upsert, replace: :update } + ["Wrap/MyTransaction"], + -> { step :upsert, replace: :update } ) #:patch end upload_with_upsert.include(T.def_steps(:upsert)) #@ Original class isn't changed.