Skip to content

Commit 028197b

Browse files
committed
fix introspection and compliance tests.
1 parent 9dae43b commit 028197b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/docs/each_test.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ class EachStrategyComplianceTest < Minitest::Spec
605605
#:patch
606606
cover_patched = Trailblazer::Activity::DSL::Linear::Patch.(
607607
Song::Activity::Cover,
608-
["Each/composers_for_each", "Each.iterate.block"],
608+
["Each/composers_for_each", "iterated_block"],
609609
-> { step :log_email }
610610
)
611611
#:patch end
@@ -630,14 +630,14 @@ class EachStrategyComplianceTest < Minitest::Spec
630630

631631
it "find_path" do
632632
assert_equal Trailblazer::Developer::Introspect.find_path(Song::Activity::Cover,
633-
["Each/composers_for_each", "Each.iterate.block", "invoke_block_activity", :notify_composers])[0].task.inspect,
633+
["Each/composers_for_each", "iterated_block", :notify_composers])[0].task.inspect,
634634
%{#<Trailblazer::Activity::TaskBuilder::Task user_proc=notify_composers>}
635635

636636
=begin
637637
#:find_path
638638
node, _ = Trailblazer::Developer::Introspect.find_path(
639639
Song::Activity::Cover,
640-
["Each/composers_for_each", "Each.iterate.block", "invoke_block_activity", :notify_composers])
640+
["Each/composers_for_each", "iterated_block", :notify_composers])
641641
#=> #<Node ...>
642642
#:find_path end
643643
=end
@@ -664,13 +664,13 @@ def composers_for_each(ctx, model:, **)
664664
end
665665

666666
node, _activity = Trailblazer::Developer::Introspect.find_path(activity,
667-
[%{Each/#{id}}, "Each.iterate.#{id}", "invoke_block_activity"])
667+
[%{Each/#{id}}, "iterated_block"])
668668

669-
assert_equal _activity.class.inspect, "Hash" # container_activity
669+
assert_equal _activity.class.inspect, "Trailblazer::Activity"
670670

671671
#@ inside {invoke_block_activity}
672672
node, _activity = Trailblazer::Developer::Introspect.find_path(activity,
673-
[%{Each/#{id}}, "Each.iterate.#{id}", "invoke_block_activity", :notify_composers])
673+
[%{Each/#{id}}, "iterated_block", :notify_composers])
674674

675675
assert_equal node.task.inspect,
676676
%{#<Trailblazer::Activity::TaskBuilder::Task user_proc=notify_composers>}

0 commit comments

Comments
 (0)