Class: Spec::Runner::Heckler

Inherits:
Object
  • Object
show all
Defined in:
lib/spec/runner/heckle_runner.rb

Overview

Supports Heckle 1.2 and prior (earlier versions used Heckle::Base)

Instance Method Summary collapse

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

Returns:

  • (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