Skip to content

Commit

Permalink
add the generated tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
apotonick committed Jun 27, 2024
1 parent 5d364f0 commit e8d450a
Show file tree
Hide file tree
Showing 3 changed files with 715 additions and 7 deletions.
7 changes: 4 additions & 3 deletions test/docs/autogenerated/operation_each_test.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# THIS FILE IS AUTOGENERATED FROM trailblazer-macro/test/docs/each_test.rb
require "test_helper"
module Autogenerated


# step Macro::Each(:report_templates, key: :report_template) {
# step Subprocess(ReportTemplate::Update), input: :input_report_template
Expand Down Expand Up @@ -54,10 +55,11 @@ class Cover < Trailblazer::Operation
def composers_for_each(ctx, model:, **)
model.composers
end

#:iterated-value
def notify_composers(ctx, index:, item:, **)
ctx[:value] = [index, item.full_name]
end
#:iterated-value end

#~meths
def model(ctx, params:, **)
Expand Down Expand Up @@ -584,4 +586,3 @@ def model(ctx, params:, **)
end
end

end
Loading

0 comments on commit e8d450a

Please sign in to comment.