Class: Spec::Runner::Heckler
Overview
Supports Heckle 1.2 and prior (earlier versions used Heckle::Base)
Instance Method Summary collapse
-
#initialize(klass_name, method_name, context_runner) ⇒ Heckler
constructor
A new instance of Heckler.
- #tests_pass? ⇒ Boolean
Constructor Details
#initialize(klass_name, method_name, context_runner) ⇒ Heckler
Returns a new instance of Heckler.
60 61 62 63 |
# File 'lib/spec/runner/heckle_runner.rb', line 60 def initialize(klass_name, method_name, context_runner) super(klass_name, method_name) @context_runner = context_runner end |
Instance Method Details
#tests_pass? ⇒ Boolean
65 66 67 68 |
# File 'lib/spec/runner/heckle_runner.rb', line 65 def tests_pass? failure_count = @context_runner.run(false) failure_count == 0 end |