Module: RSpecConsole

Defined in:
lib/rspec-console/runner.rb,
lib/rspec-console.rb,
lib/rspec-console/pry.rb,
lib/rspec-console/rspec_state.rb

Overview

This class wraps the core rspec runner and manages the environment around it.

Defined Under Namespace

Modules: Pry Classes: ConfigCache, RSpecState, Runner

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.before_run_callbacksObject

Returns the value of attribute before_run_callbacks.



7
8
9
# File 'lib/rspec-console.rb', line 7

def before_run_callbacks
  @before_run_callbacks
end

Class Method Details

.before_run(&hook) ⇒ Object



14
15
16
# File 'lib/rspec-console.rb', line 14

def self.before_run(&hook)
  self.before_run_callbacks << hook
end

.run(*args) ⇒ Object



10
11
12
# File 'lib/rspec-console.rb', line 10

def self.run(*args)
  Runner.run(args)
end