lib/spec/runner/context_runner.rb in rspec-0.5.0 vs lib/spec/runner/context_runner.rb in rspec-0.5.1

- old
+ new

@@ -3,16 +3,16 @@ module Spec module Runner class ContextRunner def self.standalone context - context_runner = ContextRunner.new(ARGV) + context_runner = ContextRunner.new(ARGV, true) context_runner.add_context context context_runner.run end - def initialize(args) - options = OptionParser.parse(args) + def initialize(args, standalone=false, err=$stderr) + options = OptionParser.parse(args, standalone, err) @contexts = [] @out = options.out @out = File.open(@out, 'w') if @out.is_a? String @doc = options.doc @listener = RDocFormatter.new(@out) if @doc