tracks/vendor/plugins/rspec/lib/spec/runner/command_line.rb

18 lines
372 B
Ruby
Raw Normal View History

require 'spec/runner/option_parser'
module Spec
module Runner
class CommandLine
class << self
def 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
end
end
end
end