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
615 616 617 618 619 620 621 622 623 624 |
# File 'lib/probatio.rb', line 615 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
626 627 628 629 630 |
# File 'lib/probatio.rb', line 626 def skip?(run_opts) opts[:pending] || exclude?(run_opts) end |