From f6adaaee326980fc1415eff22f517c3f175e07ea Mon Sep 17 00:00:00 2001 From: Nick Sutterer Date: Mon, 20 Nov 2023 12:35:58 +0100 Subject: [PATCH] convert Activity::FastTrack, too. --- lib/trailblazer/core/utils/convert_operation_test.rb | 1 + test/convert_test.rb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/lib/trailblazer/core/utils/convert_operation_test.rb b/lib/trailblazer/core/utils/convert_operation_test.rb index a8585d1..11f0873 100644 --- a/lib/trailblazer/core/utils/convert_operation_test.rb +++ b/lib/trailblazer/core/utils/convert_operation_test.rb @@ -46,6 +46,7 @@ def self.call(filepath, target:, source_gem:) line = (" " * ws[1].size) + match[1] + "\n" else line = line.sub("< Trailblazer::Activity::Railway", "< Trailblazer::Operation") + line = line.sub("< Trailblazer::Activity::FastTrack", "< Trailblazer::Operation") line = line.gsub("::Activity", "::Operation") # if within_marker diff --git a/test/convert_test.rb b/test/convert_test.rb index 2315560..ca79531 100644 --- a/test/convert_test.rb +++ b/test/convert_test.rb @@ -83,6 +83,9 @@ def validate(ctx, params:, **) # home-made validation variable = Trailblazer::Operation end + + class Update < Trailblazer::Operation + end end end )