Class: RSpecConsole::Runner
- Inherits:
-
Object
- Object
- RSpecConsole::Runner
- Defined in:
- lib/rspec-console/runner.rb
Class Method Summary collapse
Class Method Details
.run(args, options = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/rspec-console/runner.rb', line 5 def run(args, ={}) RSpecConsole.before_run_callbacks.each(&:call) RSpecConsole::RSpecState.reset stdout = [:stdout] || $stdout stderr = [:stderr] || $stderr ::RSpec::Core::Runner.run(args, stderr, stdout) end |