class RSpec::Core::ConfigurationOptions
def drb_argv
def drb_argv argv = [] argv << "--color" if options[:color_enabled] argv << "--profile" if options[:profile_examples] argv << "--backtrace" if options[:full_backtrace] argv << "--tty" if options[:tty] argv << "--fail-fast" if options[:fail_fast] argv << "--line_number" << options[:line_number] if options[:line_number] argv << "--options" << options[:custom_options_file] if options[:custom_options_file] if options[:full_description] # The argument to --example is regexp-escaped before being stuffed # into a regexp when received for the first time (see OptionParser). # Hence, merely grabbing the source of this regexp will retain the # backslashes, so we must remove them. argv << "--example" << options[:full_description].source.delete('\\') end if options[:filter] options[:filter].each_pair do |k, v| argv << "--tag" << k.to_s end end if options[:exclusion_filter] options[:exclusion_filter].each_pair do |k, v| argv << "--tag" << "~#{k.to_s}" end end if options[:formatters] options[:formatters].each do |pair| argv << "--format" << pair[0] argv << "--out" << pair[1] if pair[1] end end (options[:libs] || []).each do |path| argv << "-I" << path end (options[:requires] || []).each do |path| argv << "--require" << path end argv + options[:files_or_directories_to_run] end