Class: Probatio::Test
Instance Attribute Summary
Attributes inherited from Node
#block, #children, #opts, #parent, #path
Instance Method Summary collapse
Methods inherited from Node
#array_name, #depth, #filename, #full_name, #groups, #head, #initialize, #last_line, #line, #location, #map, #name, #path_and_line, #pending?, #root, #test?, #to_s, #trail, #type
Constructor Details
This class inherits a constructor from Probatio::Node
Instance Method Details
#run(run_opts) ⇒ Object
651 652 653 654 655 656 657 658 659 660 |
# File 'lib/probatio.rb', line 651 def run(run_opts) return Probatio.despatch(:test_excluded, self) \ if exclude?(run_opts) return Probatio.despatch(:test_pending, self) \ if opts[:pending] Probatio::Context.new(group, self).run(run_opts) end |
#skip?(run_opts) ⇒ Boolean
662 663 664 665 666 |
# File 'lib/probatio.rb', line 662 def skip?(run_opts) opts[:pending] || exclude?(run_opts) end |