Module: Mocha

Defined in:
lib/mocha/api.rb,
lib/mocha/mock.rb,
lib/mocha/names.rb,
lib/mocha/logger.rb,
lib/mocha/object.rb,
lib/mocha/central.rb,
lib/mocha/inspect.rb,
lib/mocha/mockery.rb,
lib/mocha/sequence.rb,
lib/mocha/metaclass.rb,
lib/mocha/no_yields.rb,
lib/mocha/invocation.rb,
lib/mocha/cardinality.rb,
lib/mocha/deprecation.rb,
lib/mocha/expectation.rb,
lib/mocha/integration.rb,
lib/mocha/class_method.rb,
lib/mocha/single_yield.rb,
lib/mocha/configuration.rb,
lib/mocha/module_method.rb,
lib/mocha/return_values.rb,
lib/mocha/state_machine.rb,
lib/mocha/method_matcher.rb,
lib/mocha/stubbing_error.rb,
lib/mocha/instance_method.rb,
lib/mocha/multiple_yields.rb,
lib/mocha/backtrace_filter.rb,
lib/mocha/exception_raiser.rb,
lib/mocha/expectation_list.rb,
lib/mocha/yield_parameters.rb,
lib/mocha/argument_iterator.rb,
lib/mocha/expectation_error.rb,
lib/mocha/pretty_parameters.rb,
lib/mocha/parameter_matchers.rb,
lib/mocha/parameters_matcher.rb,
lib/mocha/any_instance_method.rb,
lib/mocha/single_return_value.rb,
lib/mocha/unexpected_invocation.rb,
lib/mocha/parameter_matchers/not.rb,
lib/mocha/parameter_matchers/base.rb,
lib/mocha/parameter_matchers/is_a.rb,
lib/mocha/change_state_side_effect.rb,
lib/mocha/parameter_matchers/all_of.rb,
lib/mocha/parameter_matchers/any_of.rb,
lib/mocha/parameter_matchers/equals.rb,
lib/mocha/parameter_matchers/object.rb,
lib/mocha/parameter_matchers/has_key.rb,
lib/mocha/parameter_matchers/kind_of.rb,
lib/mocha/parameter_matchers/anything.rb,
lib/mocha/parameter_matchers/includes.rb,
lib/mocha/in_state_ordering_constraint.rb,
lib/mocha/parameter_matchers/has_entry.rb,
lib/mocha/parameter_matchers/has_value.rb,
lib/mocha/parameter_matchers/optionally.rb,
lib/mocha/parameter_matchers/has_entries.rb,
lib/mocha/parameter_matchers/instance_of.rb,
lib/mocha/integration/mini_test/version_13.rb,
lib/mocha/parameter_matchers/responds_with.rb,
lib/mocha/integration/mini_test/version_140.rb,
lib/mocha/integration/mini_test/version_141.rb,
lib/mocha/parameter_matchers/any_parameters.rb,
lib/mocha/parameter_matchers/regexp_matches.rb,
lib/mocha/parameter_matchers/yaml_equivalent.rb,
lib/mocha/integration/test_unit/gem_version_200.rb,
lib/mocha/integration/mini_test/assertion_counter.rb,
lib/mocha/integration/test_unit/assertion_counter.rb,
lib/mocha/integration/mini_test/exception_translation.rb,
lib/mocha/integration/mini_test/version_142_and_above.rb,
lib/mocha/integration/test_unit/gem_version_201_to_202.rb,
lib/mocha/integration/test_unit/gem_version_203_to_207.rb,
lib/mocha/integration/test_unit/ruby_version_185_and_below.rb,
lib/mocha/integration/test_unit/ruby_version_186_and_above.rb

Overview

:nodoc:

Defined Under Namespace

Modules: API, ArrayMethods, ClassMethods, DateMethods, HashMethods, Integration, ModuleMethods, ObjectMethods, ParameterMatchers, StringMethods, TimeMethods Classes: AnyInstanceMethod, ArgumentIterator, BacktraceFilter, Cardinality, Central, ChangeStateSideEffect, ClassMethod, Configuration, DefaultName, Deprecation, ExceptionRaiser, Expectation, ExpectationError, ExpectationList, ImpersonatingAnyInstanceName, ImpersonatingName, InStateOrderingConstraint, InstanceMethod, Invocation, Logger, MethodMatcher, Mock, Mockery, ModuleMethod, MultipleYields, Name, NoYields, ParametersMatcher, PrettyParameters, ReturnValues, Sequence, SingleReturnValue, SingleYield, StateMachine, StubbingError, UnexpectedInvocation, YieldParameters

Class Method Summary collapse

Class Method Details

.const_missing(name) ⇒ Object



242
243
244
245
246
247
# File 'lib/mocha/api.rb', line 242

def self.const_missing(name)
  return super unless name == :Standalone
  require 'mocha/deprecation'
  Deprecation.warning "Mocha::Standalone has been renamed to Mocha::API"
  return API
end