Module: Bogus

Extended by:
PublicMethods
Defined in:
lib/bogus.rb,
lib/bogus/takes.rb,
lib/bogus/support.rb,
lib/bogus/version.rb,
lib/bogus/injector.rb,
lib/bogus/fakes/fake.rb,
lib/bogus/mocking_dsl.rb,
lib/bogus/rspec/syntax.rb,
lib/bogus/configuration.rb,
lib/bogus/rspec/adapter.rb,
lib/bogus/public_methods.rb,
lib/bogus/minitest/syntax.rb,
lib/bogus/stubbing/double.rb,
lib/bogus/stubbing/shadow.rb,
lib/bogus/rspec/extensions.rb,
lib/bogus/fakes/makes_ducks.rb,
lib/bogus/stubbing/anything.rb,
lib/bogus/fake_configuration.rb,
lib/bogus/fakes/class_methods.rb,
lib/bogus/fakes/creates_fakes.rb,
lib/bogus/fakes/fakes_classes.rb,
lib/bogus/stubbing/same_class.rb,
lib/bogus/fakes/copies_classes.rb,
lib/bogus/fakes/copies_methods.rb,
lib/bogus/fakes/makes_subtypes.rb,
lib/bogus/proxies_method_calls.rb,
lib/bogus/stubbing/interaction.rb,
lib/bogus/contracts/proxy_class.rb,
lib/bogus/fakes/instance_methods.rb,
lib/bogus/stubbing/default_value.rb,
lib/bogus/stubbing/multi_stubber.rb,
lib/bogus/contracts/adds_recording.rb,
lib/bogus/fakes/method_stringifier.rb,
lib/bogus/fakes/overwriten_classes.rb,
lib/bogus/fakes/constructor_methods.rb,
lib/bogus/stubbing/matchers/any_args.rb,
lib/bogus/fakes/base_class_identifier.rb,
lib/bogus/stubbing/overwrites_methods.rb,
lib/bogus/contracts/verifies_contracts.rb,
lib/bogus/fakes/converts_name_to_class.rb,
lib/bogus/fakes/responds_to_everything.rb,
lib/bogus/stubbing/record_interactions.rb,
lib/bogus/fakes/active_record_accessors.rb,
lib/bogus/fakes/registers_created_fakes.rb,
lib/bogus/fakes/makes_substitute_methods.rb,
lib/bogus/stubbing/have_received_matcher.rb,
lib/bogus/stubbing/interaction_presenter.rb,
lib/bogus/stubbing/resets_stubbed_methods.rb,
lib/bogus/stubbing/undefined_return_value.rb,
lib/bogus/contracts/contract_not_fulfilled.rb,
lib/bogus/fakes/resets_overwritten_classes.rb,
lib/bogus/stubbing/has_overwritten_methods.rb,
lib/bogus/stubbing/matchers/with_arguments.rb,
lib/bogus/contracts/interactions_repository.rb,
lib/bogus/stubbing/verifies_stub_definition.rb,
lib/bogus/stubbing/matchers/matches_argument.rb,
lib/bogus/contracts/adds_contract_verification.rb,
lib/bogus/contracts/records_double_interactions.rb,
lib/bogus/stubbing/not_all_expectations_satisfied.rb,
lib/bogus/fakes/creates_fakes_with_stubbed_methods.rb,
lib/bogus/stubbing/tracks_existence_of_test_doubles.rb,
lib/bogus/stubbing/ensures_all_interactions_satisfied.rb

Defined Under Namespace

Modules: Anything, DefaultValue, FakeObject, HasOverwritenMethods, Minitest, MockingDSL, ProxiesMethodCalls, PublicMethods, RSpecAdapter, RSpecExtensions, RecordInteractions, Support, Takes Classes: ActiveRecordAccessors, AddsContractVerification, AddsRecording, BaseClassIdentifier, ClassMethods, Configuration, ContractNotFulfilled, ConvertsNameToClass, CopiesClasses, CopiesConstructor, CopiesMethods, CreatesFakes, CreatesFakesWithStubbedMethods, Double, EnsuresAllInteractionsSatisfied, Fake, FakeConfiguration, FakeDefinition, FakeRegistry, FakesClasses, HaveReceivedMatcher, Injector, InstanceMethods, Interaction, InteractionPresenter, InteractionsRepository, MakesDucks, MakesSubstituteMethods, MakesSubtypes, MatchesArgument, MethodCallProxy, MethodStringifier, MiniTestSyntax, MultiStubber, NotAllExpectationsSatisfied, OverwritesClasses, OverwritesMethods, OverwrittenClasses, ProxyClass, RSpecSyntax, RecordingProxy, RecordsDoubleInteractions, RegistersCreatedFakes, ResetsOverwrittenClasses, ResetsStubbedMethods, RespondsToEverything, SameClass, Shadow, StubsConfiguration, TracksExistenceOfTestDoubles, UndefinedReturnValue, VerifiesContracts, VerifiesStubDefinition, WithArguments

Constant Summary collapse

VERSION =
"0.1.6"
AnyArgs =
WithArguments.new{ true }

Method Summary

Methods included from PublicMethods

add_contract_verification, after_each_test, clear, clear_expectations, config, configure, create_mock, create_stub, ensure_all_expectations_satisfied!, fake_class, fake_for, fakes, have_received, inject, make_duck, record_calls_for, reset!, reset_overwritten_classes, reset_stubbed_methods, verify_contract!