Class: RSpecConsole::Runner

Inherits:
Object
  • Object
show all
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, options={})
  RSpecConsole.before_run_callbacks.each(&:call)
  RSpecConsole::RSpecState.reset

  stdout = options[:stdout] || $stdout
  stderr = options[:stderr] || $stderr

  ::RSpec::Core::Runner.run(args, stderr, stdout)
end