Module: Mocha

Defined in:
lib/mocha/api.rb,
lib/mocha/mock.rb,
lib/mocha/names.rb,
lib/mocha/object.rb,
lib/mocha/logger.rb,
lib/mocha/central.rb,
lib/mocha/inspect.rb,
lib/mocha/mockery.rb,
lib/mocha/thrower.rb,
lib/mocha/version.rb,
lib/mocha/sequence.rb,
lib/mocha/no_yields.rb,
lib/mocha/integration.rb,
lib/mocha/cardinality.rb,
lib/mocha/deprecation.rb,
lib/mocha/expectation.rb,
lib/mocha/class_method.rb,
lib/mocha/single_yield.rb,
lib/mocha/module_method.rb,
lib/mocha/state_machine.rb,
lib/mocha/configuration.rb,
lib/mocha/return_values.rb,
lib/mocha/method_matcher.rb,
lib/mocha/stubbing_error.rb,
lib/mocha/instance_method.rb,
lib/mocha/multiple_yields.rb,
lib/mocha/expectation_list.rb,
lib/mocha/yield_parameters.rb,
lib/mocha/backtrace_filter.rb,
lib/mocha/exception_raiser.rb,
lib/mocha/pretty_parameters.rb,
lib/mocha/expectation_error.rb,
lib/mocha/argument_iterator.rb,
lib/mocha/parameter_matchers.rb,
lib/mocha/parameters_matcher.rb,
lib/mocha/single_return_value.rb,
lib/mocha/any_instance_method.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/object.rb,
lib/mocha/parameter_matchers/any_of.rb,
lib/mocha/parameter_matchers/equals.rb,
lib/mocha/parameter_matchers/has_key.rb,
lib/mocha/parameter_matchers/kind_of.rb,
lib/mocha/parameter_matchers/includes.rb,
lib/mocha/parameter_matchers/anything.rb,
lib/mocha/parameter_matchers/has_value.rb,
lib/mocha/in_state_ordering_constraint.rb,
lib/mocha/parameter_matchers/has_entry.rb,
lib/mocha/parameter_matchers/optionally.rb,
lib/mocha/parameter_matchers/has_entries.rb,
lib/mocha/parameter_matchers/instance_of.rb,
lib/mocha/parameter_matchers/query_string.rb,
lib/mocha/parameter_matchers/responds_with.rb,
lib/mocha/integration/mini_test/version_13.rb,
lib/mocha/integration/mini_test/version_140.rb,
lib/mocha/parameter_matchers/any_parameters.rb,
lib/mocha/integration/mini_test/version_200.rb,
lib/mocha/integration/mini_test/version_141.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/version_230_to_262.rb,
lib/mocha/integration/mini_test/version_201_to_222.rb,
lib/mocha/integration/mini_test/version_142_to_172.rb,
lib/mocha/integration/mini_test/exception_translation.rb,
lib/mocha/integration/test_unit/gem_version_230_to_240.rb,
lib/mocha/integration/test_unit/gem_version_203_to_220.rb,
lib/mocha/integration/test_unit/gem_version_201_to_202.rb,
lib/mocha/integration/test_unit/ruby_version_185_and_below.rb,
lib/mocha/integration/test_unit/ruby_version_186_and_above.rb

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, Logger, MethodMatcher, Mock, Mockery, ModuleMethod, MultipleYields, Name, NoYields, ParametersMatcher, PrettyParameters, ReturnValues, Sequence, SingleReturnValue, SingleYield, StateMachine, StubbingError, Thrower, UnexpectedInvocation, YieldParameters

Constant Summary

VERSION =
"0.11.3"

Class Method Summary (collapse)

Class Method Details

+ (Object) const_missing(name)



180
181
182
183
184
185
# File 'lib/mocha/api.rb', line 180

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