Module: RSpec::Core

Defined in:
lib/rspec/core/drb_options.rb,
lib/rspec/core.rb,
lib/rspec/core/dsl.rb,
lib/rspec/core/hooks.rb,
lib/rspec/core/world.rb,
lib/rspec/core/runner.rb,
lib/rspec/core/pending.rb,
lib/rspec/core/example.rb,
lib/rspec/core/version.rb,
lib/rspec/core/metadata.rb,
lib/rspec/core/reporter.rb,
lib/rspec/core/rake_task.rb,
lib/rspec/core/deprecation.rb,
lib/rspec/core/command_line.rb,
lib/rspec/core/ruby_project.rb,
lib/rspec/core/configuration.rb,
lib/rspec/core/example_group.rb,
lib/rspec/core/option_parser.rb,
lib/rspec/core/shared_context.rb,
lib/rspec/core/filter_manager.rb,
lib/rspec/core/mocking/with_rr.rb,
lib/rspec/core/drb_command_line.rb,
lib/rspec/core/memoized_helpers.rb,
lib/rspec/core/backtrace_cleaner.rb,
lib/rspec/core/mocking/with_rspec.rb,
lib/rspec/core/extensions/ordered.rb,
lib/rspec/core/formatters/helpers.rb,
lib/rspec/core/mocking/with_mocha.rb,
lib/rspec/core/project_initializer.rb,
lib/rspec/core/shared_example_group.rb,
lib/rspec/core/configuration_options.rb,
lib/rspec/core/metadata_hash_builder.rb,
lib/rspec/core/mocking/with_flexmock.rb,
lib/rspec/core/backward_compatibility.rb,
lib/rspec/core/formatters/html_printer.rb,
lib/rspec/core/formatters/console_codes.rb,
lib/rspec/core/formatters/base_formatter.rb,
lib/rspec/core/formatters/html_formatter.rb,
lib/rspec/core/formatters/json_formatter.rb,
lib/rspec/core/minitest_assertions_adapter.rb,
lib/rspec/core/test_unit_assertions_adapter.rb,
lib/rspec/core/formatters/snippet_extractor.rb,
lib/rspec/core/formatters/progress_formatter.rb,
lib/rspec/core/formatters/base_text_formatter.rb,
lib/rspec/core/deprecated_mutable_array_proxy.rb,
lib/rspec/core/formatters/text_mate_formatter.rb,
lib/rspec/core/shared_example_group/collection.rb,
lib/rspec/core/mocking/with_absolutely_nothing.rb,
lib/rspec/core/extensions/module_eval_with_args.rb,
lib/rspec/core/formatters/deprecation_formatter.rb,
lib/rspec/core/formatters/documentation_formatter.rb,
lib/rspec/core/extensions/instance_eval_with_args.rb

Overview

Builds command line arguments to pass to the rspec command over DRb

Defined Under Namespace

Modules: BacktraceFormatter, DSL, Deprecation, Formatters, Hooks, MemoizedHelpers, MockFrameworkAdapter, Pending, RubyProject, SharedContext, SharedExampleGroup, Version Classes: BacktraceCleaner, CommandLine, Configuration, DRbCommandLine, DeprecatedMutableArrayProxy, Example, ExampleGroup, FilterManager, Metadata, Parser, ProjectInitializer, RakeTask, Reporter, Runner, World

Constant Summary

DeprecationError =
Class.new(StandardError)

Class Method Summary (collapse)

Class Method Details

+ (Object) const_missing(name)

Alias the error for compatibility with extension gems (e.g. formatters) that depend on the const name of the error in RSpec <= 2.8.

158
159
160
161
162
163
164
165
# File 'lib/rspec/core/pending.rb', line 158
def self.const_missing(name)
  return super unless name == :PendingExampleFixedError
  RSpec.deprecate("RSpec::Core::PendingExampleFixedError",
    :replacement => "RSpec::Core::Pending::PendingExampleFixedError")
  Pending::PendingExampleFixedError
end