Skip to content

Commit

Permalink
convert Activity::FastTrack, too.
Browse files Browse the repository at this point in the history
  • Loading branch information
apotonick committed Nov 20, 2023
1 parent c3c584f commit f6adaae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/trailblazer/core/utils/convert_operation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions test/convert_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def validate(ctx, params:, **) # home-made validation
variable = Trailblazer::Operation
end
class Update < Trailblazer::Operation
end
end
end
)
Expand Down

0 comments on commit f6adaae

Please sign in to comment.