We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 12d5f6e + 3b619e7 commit 9a382a2Copy full SHA for 9a382a2
lib/smart_answer/node.rb
@@ -53,5 +53,9 @@ def template_directory
53
load_path = FlowRegistry.instance.load_path
54
Pathname.new(load_path).join(String(@flow.name))
55
end
56
+
57
+ def flow_name
58
+ @flow.name
59
+ end
60
61
test/unit/node_test.rb
@@ -18,5 +18,11 @@ class NodeTest < ActiveSupport::TestCase
18
expected_directory = Pathname.new(@load_path).join('flow-name')
19
assert_equal expected_directory, @node.template_directory
20
21
22
+ test '#flow_name returns the name of the flow' do
23
+ @flow.name 'flow-name'
24
25
+ assert_equal @node.flow_name, @flow.name
26
27
28
0 commit comments