Class: Spec::Runner::Heckler

Inherits:
Object
  • Object
show all
Defined in:
lib/gems/rspec-1.1.12/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, rspec_options) ⇒ Heckler

Returns a new instance of Heckler.



61
62
63
64
# File 'lib/gems/rspec-1.1.12/lib/spec/runner/heckle_runner.rb', line 61

def initialize(klass_name, method_name, rspec_options)
  super(klass_name, method_name)
  @rspec_options = rspec_options
end

Instance Method Details

#tests_pass?Boolean

Returns:

  • (Boolean)


66
67
68
69
# File 'lib/gems/rspec-1.1.12/lib/spec/runner/heckle_runner.rb', line 66

def tests_pass?
  success = @rspec_options.run_examples
  success
end