├── .gitignore ├── .pelusa.yml ├── .rspec ├── .travis.yml ├── Gemfile ├── Guardfile ├── Guardfile.cucumber ├── README.md ├── Rakefile ├── bogus.gemspec ├── features ├── .nav ├── authors.md ├── changelog.md ├── configuration │ ├── fake_ar_attributes.feature │ ├── readme.md │ └── search_modules.feature ├── contract_tests │ ├── contract_tests_mocks.feature │ ├── contract_tests_spies.feature │ ├── contract_tests_stubs.feature │ ├── custom_overwritten_class.feature │ ├── readme.md │ └── return_value_contracts.feature ├── fakes │ ├── anonymous_doubles.feature │ ├── duck_types.feature │ ├── fake_objects.feature │ ├── global_fake_configuration.feature │ ├── readme.md │ └── replacing_classes.feature ├── getting_started.md ├── license.md ├── minitest_support.feature ├── readme.md ├── safe_stubbing │ ├── argument_matchers.feature │ ├── readme.md │ ├── safe_mocking.feature │ ├── safe_stubbing.feature │ └── spies.feature ├── step_definitions │ └── rspec_steps.rb └── support │ └── env.rb ├── lib ├── bogus.rb └── bogus │ ├── configuration.rb │ ├── contracts │ ├── adds_contract_verification.rb │ ├── adds_recording.rb │ ├── contract_not_fulfilled.rb │ ├── interactions_repository.rb │ ├── proxy_class.rb │ ├── recording_proxy.rb │ ├── records_double_interactions.rb │ └── verifies_contracts.rb │ ├── core_ext.rb │ ├── fake_configuration.rb │ ├── fakes │ ├── active_record_accessors.rb │ ├── base_class_identifier.rb │ ├── class_methods.rb │ ├── constructor_methods.rb │ ├── converts_name_to_class.rb │ ├── copies_classes.rb │ ├── copies_methods.rb │ ├── creates_fakes.rb │ ├── creates_fakes_with_stubbed_methods.rb │ ├── fake.rb │ ├── fake_registry.rb │ ├── fakes_classes.rb │ ├── instance_methods.rb │ ├── makes_ducks.rb │ ├── makes_substitute_methods.rb │ ├── makes_subtypes.rb │ ├── method_stringifier.rb │ ├── overwriten_classes.rb │ ├── overwrites_classes.rb │ ├── registers_created_fakes.rb │ ├── resets_overwritten_classes.rb │ └── responds_to_everything.rb │ ├── injector.rb │ ├── minitest.rb │ ├── minitest │ ├── spec.rb │ └── syntax.rb │ ├── mocking_dsl.rb │ ├── proxies_method_calls.rb │ ├── public_methods.rb │ ├── rspec.rb │ ├── rspec │ ├── adapter.rb │ ├── extensions.rb │ └── syntax.rb │ ├── stubbing │ ├── anything.rb │ ├── default_value.rb │ ├── double.rb │ ├── ensures_all_interactions_satisfied.rb │ ├── has_overwritten_methods.rb │ ├── have_received_matcher.rb │ ├── interaction.rb │ ├── interaction_presenter.rb │ ├── matchers │ │ ├── any_args.rb │ │ ├── matches_argument.rb │ │ └── with_arguments.rb │ ├── multi_stubber.rb │ ├── not_all_expectations_satisfied.rb │ ├── overwrites_methods.rb │ ├── record_interactions.rb │ ├── resets_stubbed_methods.rb │ ├── same_class.rb │ ├── shadow.rb │ ├── tracks_existence_of_test_doubles.rb │ ├── undefined_return_value.rb │ └── verifies_stub_definition.rb │ ├── support.rb │ ├── takes.rb │ └── version.rb ├── license.md ├── pelusa.sh ├── rbs.sh └── spec ├── bogus ├── bugs │ ├── rbx_instance_eval_bug_spec.rb │ └── rbx_jruby_stub_on_class_spec.rb ├── clean_ruby_spec.rb ├── configuration_spec.rb ├── contracts │ ├── adds_contract_verification_spec.rb │ ├── adds_recording_spec.rb │ ├── interactions_repository_spec.rb │ ├── proxy_class_spec.rb │ ├── records_double_interactions_spec.rb │ └── verifies_contracts_spec.rb ├── fakes │ ├── base_class_identifier_spec.rb │ ├── class_methods_spec.rb │ ├── converts_name_to_class_spec.rb │ ├── copies_classes_spec.rb │ ├── creates_fakes_spec.rb │ ├── creates_fakes_with_stubbed_methods_spec.rb │ ├── fake_ar_attributes_spec.rb │ ├── fake_configuration_spec.rb │ ├── fake_registry_spec.rb │ ├── fake_spec.rb │ ├── fakes_classes_spec.rb │ ├── faking_factories_spec.rb │ ├── frozen_fakes_spec.rb │ ├── instance_methods_spec.rb │ ├── makes_ducks_spec.rb │ ├── makes_substitute_methods_spec.rb │ ├── method_copiers_spec.rb │ ├── overwriten_classes_spec.rb │ ├── overwrites_classes_spec.rb │ ├── registers_created_fakes_spec.rb │ ├── resets_overwritten_classes_spec.rb │ └── stubbing_new_method_on_fake_class_spec.rb ├── mocking_dsl_spec.rb ├── rspec │ └── syntax_spec.rb ├── ruby_2_1_support_spec.rb ├── ruby_2_support_spec.rb └── stubbing │ ├── anything_spec.rb │ ├── double_spec.rb │ ├── ensures_all_interactions_satisfied_spec.rb │ ├── have_received_matcher_spec.rb │ ├── interaction_spec.rb │ ├── multi_stubber_spec.rb │ ├── overwrites_methods_spec.rb │ ├── record_interactions_spec.rb │ ├── resets_stubbed_methods_spec.rb │ ├── shadow_spec.rb │ ├── stubbing_existing_methods_on_fakes_spec.rb │ ├── tracks_existence_of_test_doubles_spec.rb │ ├── undefined_return_value_spec.rb │ └── verifies_stub_definition_spec.rb ├── spec_helper.rb └── support ├── fake_creator_of_fakes.rb ├── matchers.rb ├── ruby_features.rb ├── sample_fake.rb └── shared_examples_for_keyword_arguments.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/.gitignore -------------------------------------------------------------------------------- /.pelusa.yml: -------------------------------------------------------------------------------- 1 | sources: lib/**/*.rb 2 | -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/.travis.yml -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/Gemfile -------------------------------------------------------------------------------- /Guardfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/Guardfile -------------------------------------------------------------------------------- /Guardfile.cucumber: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/Guardfile.cucumber -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | require "bundler/gem_tasks" 2 | -------------------------------------------------------------------------------- /bogus.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/bogus.gemspec -------------------------------------------------------------------------------- /features/.nav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/.nav -------------------------------------------------------------------------------- /features/authors.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/authors.md -------------------------------------------------------------------------------- /features/changelog.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/changelog.md -------------------------------------------------------------------------------- /features/configuration/fake_ar_attributes.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/configuration/fake_ar_attributes.feature -------------------------------------------------------------------------------- /features/configuration/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/configuration/readme.md -------------------------------------------------------------------------------- /features/configuration/search_modules.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/configuration/search_modules.feature -------------------------------------------------------------------------------- /features/contract_tests/contract_tests_mocks.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/contract_tests/contract_tests_mocks.feature -------------------------------------------------------------------------------- /features/contract_tests/contract_tests_spies.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/contract_tests/contract_tests_spies.feature -------------------------------------------------------------------------------- /features/contract_tests/contract_tests_stubs.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/contract_tests/contract_tests_stubs.feature -------------------------------------------------------------------------------- /features/contract_tests/custom_overwritten_class.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/contract_tests/custom_overwritten_class.feature -------------------------------------------------------------------------------- /features/contract_tests/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/contract_tests/readme.md -------------------------------------------------------------------------------- /features/contract_tests/return_value_contracts.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/contract_tests/return_value_contracts.feature -------------------------------------------------------------------------------- /features/fakes/anonymous_doubles.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/fakes/anonymous_doubles.feature -------------------------------------------------------------------------------- /features/fakes/duck_types.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/fakes/duck_types.feature -------------------------------------------------------------------------------- /features/fakes/fake_objects.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/fakes/fake_objects.feature -------------------------------------------------------------------------------- /features/fakes/global_fake_configuration.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/fakes/global_fake_configuration.feature -------------------------------------------------------------------------------- /features/fakes/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/fakes/readme.md -------------------------------------------------------------------------------- /features/fakes/replacing_classes.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/fakes/replacing_classes.feature -------------------------------------------------------------------------------- /features/getting_started.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/getting_started.md -------------------------------------------------------------------------------- /features/license.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/license.md -------------------------------------------------------------------------------- /features/minitest_support.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/minitest_support.feature -------------------------------------------------------------------------------- /features/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/readme.md -------------------------------------------------------------------------------- /features/safe_stubbing/argument_matchers.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/safe_stubbing/argument_matchers.feature -------------------------------------------------------------------------------- /features/safe_stubbing/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/safe_stubbing/readme.md -------------------------------------------------------------------------------- /features/safe_stubbing/safe_mocking.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/safe_stubbing/safe_mocking.feature -------------------------------------------------------------------------------- /features/safe_stubbing/safe_stubbing.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/safe_stubbing/safe_stubbing.feature -------------------------------------------------------------------------------- /features/safe_stubbing/spies.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/safe_stubbing/spies.feature -------------------------------------------------------------------------------- /features/step_definitions/rspec_steps.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/step_definitions/rspec_steps.rb -------------------------------------------------------------------------------- /features/support/env.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/features/support/env.rb -------------------------------------------------------------------------------- /lib/bogus.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus.rb -------------------------------------------------------------------------------- /lib/bogus/configuration.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/configuration.rb -------------------------------------------------------------------------------- /lib/bogus/contracts/adds_contract_verification.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/contracts/adds_contract_verification.rb -------------------------------------------------------------------------------- /lib/bogus/contracts/adds_recording.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/contracts/adds_recording.rb -------------------------------------------------------------------------------- /lib/bogus/contracts/contract_not_fulfilled.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/contracts/contract_not_fulfilled.rb -------------------------------------------------------------------------------- /lib/bogus/contracts/interactions_repository.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/contracts/interactions_repository.rb -------------------------------------------------------------------------------- /lib/bogus/contracts/proxy_class.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/contracts/proxy_class.rb -------------------------------------------------------------------------------- /lib/bogus/contracts/recording_proxy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/contracts/recording_proxy.rb -------------------------------------------------------------------------------- /lib/bogus/contracts/records_double_interactions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/contracts/records_double_interactions.rb -------------------------------------------------------------------------------- /lib/bogus/contracts/verifies_contracts.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/contracts/verifies_contracts.rb -------------------------------------------------------------------------------- /lib/bogus/core_ext.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/core_ext.rb -------------------------------------------------------------------------------- /lib/bogus/fake_configuration.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fake_configuration.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/active_record_accessors.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/active_record_accessors.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/base_class_identifier.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/base_class_identifier.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/class_methods.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/class_methods.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/constructor_methods.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/constructor_methods.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/converts_name_to_class.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/converts_name_to_class.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/copies_classes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/copies_classes.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/copies_methods.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/copies_methods.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/creates_fakes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/creates_fakes.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/creates_fakes_with_stubbed_methods.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/creates_fakes_with_stubbed_methods.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/fake.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/fake.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/fake_registry.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/fake_registry.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/fakes_classes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/fakes_classes.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/instance_methods.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/instance_methods.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/makes_ducks.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/makes_ducks.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/makes_substitute_methods.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/makes_substitute_methods.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/makes_subtypes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/makes_subtypes.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/method_stringifier.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/method_stringifier.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/overwriten_classes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/overwriten_classes.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/overwrites_classes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/overwrites_classes.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/registers_created_fakes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/registers_created_fakes.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/resets_overwritten_classes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/resets_overwritten_classes.rb -------------------------------------------------------------------------------- /lib/bogus/fakes/responds_to_everything.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/fakes/responds_to_everything.rb -------------------------------------------------------------------------------- /lib/bogus/injector.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/injector.rb -------------------------------------------------------------------------------- /lib/bogus/minitest.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/minitest.rb -------------------------------------------------------------------------------- /lib/bogus/minitest/spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/minitest/spec.rb -------------------------------------------------------------------------------- /lib/bogus/minitest/syntax.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/minitest/syntax.rb -------------------------------------------------------------------------------- /lib/bogus/mocking_dsl.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/mocking_dsl.rb -------------------------------------------------------------------------------- /lib/bogus/proxies_method_calls.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/proxies_method_calls.rb -------------------------------------------------------------------------------- /lib/bogus/public_methods.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/public_methods.rb -------------------------------------------------------------------------------- /lib/bogus/rspec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/rspec.rb -------------------------------------------------------------------------------- /lib/bogus/rspec/adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/rspec/adapter.rb -------------------------------------------------------------------------------- /lib/bogus/rspec/extensions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/rspec/extensions.rb -------------------------------------------------------------------------------- /lib/bogus/rspec/syntax.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/rspec/syntax.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/anything.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/anything.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/default_value.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/default_value.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/double.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/double.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/ensures_all_interactions_satisfied.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/ensures_all_interactions_satisfied.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/has_overwritten_methods.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/has_overwritten_methods.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/have_received_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/have_received_matcher.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/interaction.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/interaction.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/interaction_presenter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/interaction_presenter.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/matchers/any_args.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/matchers/any_args.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/matchers/matches_argument.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/matchers/matches_argument.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/matchers/with_arguments.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/matchers/with_arguments.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/multi_stubber.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/multi_stubber.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/not_all_expectations_satisfied.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/not_all_expectations_satisfied.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/overwrites_methods.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/overwrites_methods.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/record_interactions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/record_interactions.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/resets_stubbed_methods.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/resets_stubbed_methods.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/same_class.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/same_class.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/shadow.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/shadow.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/tracks_existence_of_test_doubles.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/tracks_existence_of_test_doubles.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/undefined_return_value.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/undefined_return_value.rb -------------------------------------------------------------------------------- /lib/bogus/stubbing/verifies_stub_definition.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/stubbing/verifies_stub_definition.rb -------------------------------------------------------------------------------- /lib/bogus/support.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/support.rb -------------------------------------------------------------------------------- /lib/bogus/takes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/lib/bogus/takes.rb -------------------------------------------------------------------------------- /lib/bogus/version.rb: -------------------------------------------------------------------------------- 1 | module Bogus 2 | VERSION = "0.1.7" 3 | end 4 | -------------------------------------------------------------------------------- /license.md: -------------------------------------------------------------------------------- 1 | features/license.md -------------------------------------------------------------------------------- /pelusa.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | rvm rbx exec pelusa 4 | -------------------------------------------------------------------------------- /rbs.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/rbs.sh -------------------------------------------------------------------------------- /spec/bogus/bugs/rbx_instance_eval_bug_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/bugs/rbx_instance_eval_bug_spec.rb -------------------------------------------------------------------------------- /spec/bogus/bugs/rbx_jruby_stub_on_class_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/bugs/rbx_jruby_stub_on_class_spec.rb -------------------------------------------------------------------------------- /spec/bogus/clean_ruby_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/clean_ruby_spec.rb -------------------------------------------------------------------------------- /spec/bogus/configuration_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/configuration_spec.rb -------------------------------------------------------------------------------- /spec/bogus/contracts/adds_contract_verification_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/contracts/adds_contract_verification_spec.rb -------------------------------------------------------------------------------- /spec/bogus/contracts/adds_recording_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/contracts/adds_recording_spec.rb -------------------------------------------------------------------------------- /spec/bogus/contracts/interactions_repository_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/contracts/interactions_repository_spec.rb -------------------------------------------------------------------------------- /spec/bogus/contracts/proxy_class_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/contracts/proxy_class_spec.rb -------------------------------------------------------------------------------- /spec/bogus/contracts/records_double_interactions_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/contracts/records_double_interactions_spec.rb -------------------------------------------------------------------------------- /spec/bogus/contracts/verifies_contracts_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/contracts/verifies_contracts_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/base_class_identifier_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/base_class_identifier_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/class_methods_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/class_methods_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/converts_name_to_class_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/converts_name_to_class_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/copies_classes_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/copies_classes_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/creates_fakes_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/creates_fakes_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/creates_fakes_with_stubbed_methods_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/creates_fakes_with_stubbed_methods_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/fake_ar_attributes_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/fake_ar_attributes_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/fake_configuration_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/fake_configuration_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/fake_registry_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/fake_registry_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/fake_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/fake_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/fakes_classes_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/fakes_classes_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/faking_factories_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/faking_factories_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/frozen_fakes_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/frozen_fakes_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/instance_methods_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/instance_methods_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/makes_ducks_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/makes_ducks_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/makes_substitute_methods_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/makes_substitute_methods_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/method_copiers_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/method_copiers_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/overwriten_classes_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/overwriten_classes_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/overwrites_classes_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/overwrites_classes_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/registers_created_fakes_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/registers_created_fakes_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/resets_overwritten_classes_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/resets_overwritten_classes_spec.rb -------------------------------------------------------------------------------- /spec/bogus/fakes/stubbing_new_method_on_fake_class_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/fakes/stubbing_new_method_on_fake_class_spec.rb -------------------------------------------------------------------------------- /spec/bogus/mocking_dsl_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/mocking_dsl_spec.rb -------------------------------------------------------------------------------- /spec/bogus/rspec/syntax_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/rspec/syntax_spec.rb -------------------------------------------------------------------------------- /spec/bogus/ruby_2_1_support_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/ruby_2_1_support_spec.rb -------------------------------------------------------------------------------- /spec/bogus/ruby_2_support_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/ruby_2_support_spec.rb -------------------------------------------------------------------------------- /spec/bogus/stubbing/anything_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/stubbing/anything_spec.rb -------------------------------------------------------------------------------- /spec/bogus/stubbing/double_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/stubbing/double_spec.rb -------------------------------------------------------------------------------- /spec/bogus/stubbing/ensures_all_interactions_satisfied_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/stubbing/ensures_all_interactions_satisfied_spec.rb -------------------------------------------------------------------------------- /spec/bogus/stubbing/have_received_matcher_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/stubbing/have_received_matcher_spec.rb -------------------------------------------------------------------------------- /spec/bogus/stubbing/interaction_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/stubbing/interaction_spec.rb -------------------------------------------------------------------------------- /spec/bogus/stubbing/multi_stubber_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/stubbing/multi_stubber_spec.rb -------------------------------------------------------------------------------- /spec/bogus/stubbing/overwrites_methods_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/stubbing/overwrites_methods_spec.rb -------------------------------------------------------------------------------- /spec/bogus/stubbing/record_interactions_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/stubbing/record_interactions_spec.rb -------------------------------------------------------------------------------- /spec/bogus/stubbing/resets_stubbed_methods_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/stubbing/resets_stubbed_methods_spec.rb -------------------------------------------------------------------------------- /spec/bogus/stubbing/shadow_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/stubbing/shadow_spec.rb -------------------------------------------------------------------------------- /spec/bogus/stubbing/stubbing_existing_methods_on_fakes_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/stubbing/stubbing_existing_methods_on_fakes_spec.rb -------------------------------------------------------------------------------- /spec/bogus/stubbing/tracks_existence_of_test_doubles_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/stubbing/tracks_existence_of_test_doubles_spec.rb -------------------------------------------------------------------------------- /spec/bogus/stubbing/undefined_return_value_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/stubbing/undefined_return_value_spec.rb -------------------------------------------------------------------------------- /spec/bogus/stubbing/verifies_stub_definition_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/bogus/stubbing/verifies_stub_definition_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/fake_creator_of_fakes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/support/fake_creator_of_fakes.rb -------------------------------------------------------------------------------- /spec/support/matchers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/support/matchers.rb -------------------------------------------------------------------------------- /spec/support/ruby_features.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/support/ruby_features.rb -------------------------------------------------------------------------------- /spec/support/sample_fake.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/support/sample_fake.rb -------------------------------------------------------------------------------- /spec/support/shared_examples_for_keyword_arguments.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psyho/bogus/HEAD/spec/support/shared_examples_for_keyword_arguments.rb --------------------------------------------------------------------------------