Skip to content

Commit 5259b9f

Browse files
committed
it's now Graph#termini.
1 parent f5fb02f commit 5259b9f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/trailblazer/developer/introspect/graph.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def collect(strategy: :circuit)
2929
@map.keys.each_with_index.collect { |task, i| yield find_with_block { |node| node.task == task }, i }
3030
end
3131

32-
def stop_events
33-
@circuit.to_h[:end_events]
32+
def termini
33+
@circuit.to_h[:termini]
3434
end
3535

3636
private

test/docs/graph_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Memo::Update < Trailblazer::Activity::Railway
5555
node = graph.find { |node| node.task.class == Trailblazer::Activity::Circuit::TaskAdapter }
5656
#:find-block end
5757

58-
pp graph.stop_events
58+
pp graph.termini
5959
end
6060

6161
end

test/graph_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ class IntrospectGraphTest < Minitest::Spec
5858
end
5959
end
6060

61-
describe "#stop_events" do
62-
it { expect(graph.stop_events.inspect).must_equal %{[#<Trailblazer::Activity::End semantic=:success>]} }
61+
describe "#termini" do
62+
it { expect(graph.termini.inspect).must_equal %{[#<Trailblazer::Activity::End semantic=:success>]} }
6363
end
6464

6565
def assert_outputs(node, map)

0 commit comments

Comments
 (0)