Class: Spec::Runner::Heckler

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

Instance Method Summary collapse

Constructor Details

#initialize(klass_name, method_name, rspec_options) ⇒ Heckler

Returns a new instance of Heckler.



59
60
61
62
# File 'lib/spec/runner/heckle_runner.rb', line 59

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)


64
65
66
# File 'lib/spec/runner/heckle_runner.rb', line 64

def tests_pass?
  @rspec_options.run_examples
end