order!(argv, &blk) public

No documentation

This method has no description. You can help the RSpec community by adding new notes.

Hide source
# File lib/spec/runner/option_parser.rb, line 123
      def order!(argv, &blk)
        @argv = argv.dup
        @argv = (@argv.empty? & self.class.spec_command?) ? ['--help'] : @argv

        # Parse options file first
        parse_file_options(:options_file, :parse_options_file)

        @options.argv = @argv.dup
        return if parse_file_options(:generate_options, :write_options_file)
        return if parse_drb

        super(@argv) do |file|
          if file =~ /^(.+):(\d+)$/
            file = $1
            @options.line_number = $2.to_i

          @options.files << file
          blk.call(file) if blk

Register or log in to add new notes.