testdata 0.1.9 → 0.2.0

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 +3 -0
  2. metadata +1 -1
data/lib/testdata.rb CHANGED
@@ -63,4 +63,7 @@ class Testdata
63
63
 
64
64
  def passed?() @success.all? end
65
65
  def score() [@success.grep(true), @success].map(&:length).join('/') end
66
+ def find_by(s)
67
+ XPath.match(@doc.root, "records/test/summary[type='#{s}']/description/text()").map(&:to_s)
68
+ end
66
69
  end
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.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors: []
7
7