Class: Spec::Runner::CommandLine

Inherits:
Object
  • Object
show all
Defined in:
lib/vendor/plugins/rspec/lib/spec/runner/command_line.rb

Class Method Summary collapse

Class Method Details

.run(tmp_options = Spec::Runner.options) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/vendor/plugins/rspec/lib/spec/runner/command_line.rb', line 6

def self.run(tmp_options=Spec::Runner.options)
  orig_options = Spec::Runner.options
  Spec::Runner.use tmp_options
  tmp_options.run_examples
ensure
  Spec::Runner.use orig_options
end