Object
@private
# File lib/rspec/core/configuration_options.rb, line 10 def initialize(args) @args = args.dup if @args.include?("--default_path") @args[@args.index("--default_path")] = "--default-path" end if @args.include?("--line_number") @args[@args.index("--line_number")] = "--line-number" end end
# File lib/rspec/core/configuration_options.rb, line 21 def configure(config) formatters = options.delete(:formatters) config.filter_manager = filter_manager order(options.keys, :libs, :requires, :default_path, :pattern).each do |key| force?(key) ? config.force(key => options[key]) : config.send("#{key}=", options[key]) end formatters.each {|pair| config.add_formatter(*pair) } if formatters end
# File lib/rspec/core/configuration_options.rb, line 41 def drb_argv DrbOptions.new(options, filter_manager).options end
# File lib/rspec/core/configuration_options.rb, line 45 def filter_manager @filter_manager ||= RSpec::configuration.filter_manager end
# File lib/rspec/core/configuration_options.rb, line 33 def parse_options @options ||= extract_filters_from(*all_configs).inject do |merged, pending| merged.merge(pending) { |key, oldval, newval| MERGED_OPTIONS.include?(key) ? oldval + newval : newval } end end
Generated with the Darkfish Rdoc Generator 2.