testdata 0.2.9 → 0.2.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/testdata.rb +2 -1
- metadata +1 -1
data/lib/testdata.rb
CHANGED
@@ -14,11 +14,12 @@ class Path
|
|
14
14
|
stringify = Proc.new {|x| x.text.to_s.gsub(/[\n\s]/,'').length > 0 ? x.text : x.cdatas.join.strip}
|
15
15
|
|
16
16
|
node = XPath.first(@doc.root, "records/test[summary/description='#{description}']")
|
17
|
+
raise "Path error: node title not found" unless node
|
17
18
|
input_values = XPath.match(node, "records/io/summary[type='input']/*").map(&stringify)
|
18
19
|
output_values = XPath.match(node, "records/io/summary[type='output']/*").map(&stringify)
|
19
20
|
|
20
21
|
path_no = node.text('summary/path')
|
21
|
-
|
22
|
+
|
22
23
|
|
23
24
|
result = nil
|
24
25
|
@success << [nil, path_no.to_i]
|