testdata 0.2.9 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/testdata.rb +2 -1
  2. 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
- raise "Path error: node not found" unless node
22
+
22
23
 
23
24
  result = nil
24
25
  @success << [nil, path_no.to_i]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testdata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors: []
7
7