Parent

Class/Module Index [+]

Quicksearch

RSpec::Core::ConfigurationOptions

@private

Attributes

options[R]

Public Class Methods

new(args) click to toggle source
# 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

Public Instance Methods

configure(config) click to toggle source
# File lib/rspec/core/configuration_options.rb, line 21
def configure(config)
  config.filter_manager = filter_manager

  config.libs = options[:libs] || []
  config.setup_load_path_and_require(options[:requires] || [])

  process_options_into config
  load_formatters_into config
end
drb_argv() click to toggle source
# File lib/rspec/core/configuration_options.rb, line 39
def drb_argv
  DrbOptions.new(options, filter_manager).options
end
filter_manager() click to toggle source
# File lib/rspec/core/configuration_options.rb, line 43
def filter_manager
  @filter_manager ||= RSpec::configuration.filter_manager
end
parse_options() click to toggle source
# File lib/rspec/core/configuration_options.rb, line 31
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

[Validate]

Generated with the Darkfish Rdoc Generator 2.