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, behaviour_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, behaviour_runner)
  super(klass_name, method_name)
  @behaviour_runner = behaviour_runner
end

Instance Method Details

#tests_pass?Boolean

Returns:

  • (Boolean)


65
66
67
68
69
# File 'lib/spec/runner/heckle_runner.rb', line 65

def tests_pass?
  paths = [] # We can pass an empty array of paths - our specs are already loaded.
  failure_count = @behaviour_runner.run(paths, false)
  failure_count == 0
end