Module: RSpecConsole
- Defined in:
- lib/rspec-console/runner.rb,
lib/rspec-console.rb,
lib/rspec-console/pry.rb,
lib/rspec-console/rspec_state.rb more...
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
-
.before_run_callbacks ⇒ Object
Returns the value of attribute before_run_callbacks.
Class Method Summary collapse
Class Attribute Details
permalink .before_run_callbacks ⇒ Object
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
permalink .before_run(&hook) ⇒ Object
[View source]
14 15 16 |
# File 'lib/rspec-console.rb', line 14 def self.before_run(&hook) self.before_run_callbacks << hook end |
permalink .run(*args) ⇒ Object
[View source]
10 11 12 |
# File 'lib/rspec-console.rb', line 10 def self.run(*args) Runner.run(args) end |