genkaio 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.bundle/config +2 -0
- data/.gitignore +2 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +34 -0
- data/LICENSE.txt +21 -0
- data/README.md +78 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/genkaio +66 -0
- data/bin/setup +8 -0
- data/demo.gif +0 -0
- data/genkaio.gemspec +28 -0
- data/lib/.genkaio.rb.swp +0 -0
- data/lib/dic/dicdata_2019_1108 +212408 -0
- data/lib/genkaio/version.rb +3 -0
- data/lib/genkaio.rb +73 -0
- data/pkg/genkaio-0.0.1.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/bin/genkaio +27 -0
- data/vendor/bundle/ruby/2.5.0/bin/htmldiff +29 -0
- data/vendor/bundle/ruby/2.5.0/bin/ldiff +29 -0
- data/vendor/bundle/ruby/2.5.0/bin/rake +27 -0
- data/vendor/bundle/ruby/2.5.0/bin/rspec +27 -0
- data/vendor/bundle/ruby/2.5.0/cache/diff-lcs-1.3.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rake-12.3.3.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rspec-3.9.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rspec-core-3.9.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rspec-expectations-3.9.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rspec-mocks-3.9.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rspec-support-3.9.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/.rspec +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/Code-of-Conduct.md +74 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/Contributing.md +83 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/History.md +220 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/License.md +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/Manifest.txt +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/README.rdoc +84 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/Rakefile +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/autotest/discover.rb +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/bin/htmldiff +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/bin/ldiff +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/docs/COPYING.txt +339 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/docs/artistic.txt +127 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/array.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/block.rb +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/callbacks.rb +322 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/change.rb +181 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/htmldiff.rb +149 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/hunk.rb +276 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/internals.rb +307 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/ldiff.rb +167 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/string.rb +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs.rb +725 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff-lcs.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/change_spec.rb +65 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/diff_spec.rb +47 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/fixtures/ds1.csv +50 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/fixtures/ds2.csv +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/hunk_spec.rb +72 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/issues_spec.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/lcs_spec.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/ldiff_spec.rb +47 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/patch_spec.rb +422 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/sdiff_spec.rb +214 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/spec_helper.rb +321 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/traverse_balanced_spec.rb +310 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/traverse_sequences_spec.rb +139 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/CONTRIBUTING.rdoc +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/Gemfile +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/History.rdoc +2344 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/README.rdoc +156 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/Rakefile +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/azure-pipelines.yml +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/bin/bundle +105 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/bin/console +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/bin/rake +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/bin/rdoc +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/bin/rubocop +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/bin/setup +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/doc/command_line_usage.rdoc +158 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/doc/example/Rakefile1 +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/doc/example/Rakefile2 +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/doc/example/a.c +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/doc/example/b.c +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/doc/example/main.c +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/doc/glossary.rdoc +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/doc/jamis.rb +592 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/doc/proto_rake.rdoc +127 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/doc/rake.1 +156 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/doc/rakefile.rdoc +622 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/doc/rational.rdoc +151 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/exe/rake +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb +824 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/backtrace.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/clean.rb +78 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/cloneable.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/cpu_counter.rb +107 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/default_loader.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/dsl_definition.rb +195 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/early_time.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/ext/core.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/ext/string.rb +176 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/file_creation_task.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/file_list.rb +435 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/file_task.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/file_utils.rb +137 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/file_utils_ext.rb +145 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/invocation_chain.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/invocation_exception_mixin.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/late_time.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/linked_list.rb +112 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/loaders/makefile.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/multi_task.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/name_space.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/packagetask.rb +207 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/phony.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/private_reader.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/promise.rb +100 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/pseudo_status.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/rake_module.rb +67 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/rake_test_loader.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/scope.rb +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/task.rb +413 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/task_argument_error.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/task_arguments.rb +109 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/task_manager.rb +324 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/tasklib.rb +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/testtask.rb +224 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/thread_history_display.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/thread_pool.rb +163 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/trace_output.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/version.rb +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/win32.rb +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake.rb +71 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/rake.gemspec +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-3.9.0/LICENSE.md +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-3.9.0/README.md +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-3.9.0/lib/rspec/version.rb +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-3.9.0/lib/rspec.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/.document +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/.yardopts +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/Changelog.md +2265 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/LICENSE.md +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/README.md +384 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/exe/rspec +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/autorun.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/backtrace_formatter.rb +65 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/coordinator.rb +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/example_minimizer.rb +173 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/fork_runner.rb +134 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/server.rb +61 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/shell_command.rb +126 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/shell_runner.rb +73 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/utilities.rb +58 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/configuration.rb +2336 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/configuration_options.rb +233 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/did_you_mean.rb +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/drb.rb +113 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/dsl.rb +98 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/example.rb +656 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/example_group.rb +889 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/example_status_persister.rb +235 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/filter_manager.rb +231 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/flat_map.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/base_bisect_formatter.rb +45 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/base_formatter.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/base_text_formatter.rb +75 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/bisect_drb_formatter.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/bisect_progress_formatter.rb +157 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/console_codes.rb +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/deprecation_formatter.rb +223 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/documentation_formatter.rb +102 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/exception_presenter.rb +508 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/failure_list_formatter.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/fallback_message_formatter.rb +28 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/helpers.rb +110 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/html_formatter.rb +153 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/html_printer.rb +414 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/html_snippet_extractor.rb +120 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/json_formatter.rb +102 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/profile_formatter.rb +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/progress_formatter.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/protocol.rb +182 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/snippet_extractor.rb +134 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/syntax_highlighter.rb +91 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters.rb +272 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/hooks.rb +632 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/invocations.rb +87 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/memoized_helpers.rb +554 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/metadata.rb +498 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/metadata_filter.rb +255 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/minitest_assertions_adapter.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/mocking_adapters/flexmock.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/mocking_adapters/mocha.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/mocking_adapters/null.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/mocking_adapters/rr.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/mocking_adapters/rspec.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/notifications.rb +521 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/option_parser.rb +317 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/ordering.rb +158 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/output_wrapper.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/pending.rb +165 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/profiler.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/project_initializer/.rspec +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/project_initializer/spec/spec_helper.rb +100 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/project_initializer.rb +48 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/rake_task.rb +188 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/reporter.rb +265 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/ruby_project.rb +53 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/runner.rb +204 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/sandbox.rb +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/set.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/shared_context.rb +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/shared_example_group.rb +269 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/shell_escape.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/test_unit_assertions_adapter.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/version.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/warnings.rb +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/world.rb +275 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core.rb +186 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/.document +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/.yardopts +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/Changelog.md +1170 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/LICENSE.md +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/README.md +320 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/block_snippet_extractor.rb +253 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/configuration.rb +215 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/expectation_target.rb +127 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/fail_with.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/failure_aggregator.rb +194 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/handler.rb +170 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/minitest_integration.rb +58 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/syntax.rb +132 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/version.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations.rb +82 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/aliased_matcher.rb +116 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/all.rb +86 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/base_matcher.rb +193 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/be.rb +288 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/be_between.rb +77 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/be_instance_of.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/be_kind_of.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/be_within.rb +72 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/change.rb +428 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/compound.rb +276 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/contain_exactly.rb +302 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/cover.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/eq.rb +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/eql.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/equal.rb +81 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/exist.rb +90 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/has.rb +103 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/have_attributes.rb +114 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/include.rb +149 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/match.rb +106 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/operators.rb +128 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/output.rb +200 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/raise_error.rb +230 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/respond_to.rb +174 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/satisfy.rb +60 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/start_or_end_with.rb +94 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/throw_symbol.rb +132 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/yield.rb +432 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in.rb +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/composable.rb +171 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/dsl.rb +534 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/english_phrasing.rb +58 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +82 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/fail_matchers.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/generated_descriptions.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/matcher_delegator.rb +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/matcher_protocol.rb +99 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers.rb +1038 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/.document +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/.yardopts +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/Changelog.md +1125 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/LICENSE.md +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/README.md +463 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/chain.rb +111 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/error_generator.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/expect_chain_chain.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/expectation_chain.rb +50 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/message_chains.rb +83 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/proxy.rb +116 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/recorder.rb +289 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/stub_chain.rb +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/stub_chain_chain.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/argument_list_matcher.rb +100 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/argument_matchers.rb +322 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/configuration.rb +212 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/error_generator.rb +369 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/example_methods.rb +434 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/instance_method_stasher.rb +146 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/marshal_extension.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/matchers/expectation_customization.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/matchers/have_received.rb +134 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/matchers/receive.rb +132 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/matchers/receive_message_chain.rb +82 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/matchers/receive_messages.rb +77 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/message_chain.rb +87 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/message_expectation.rb +751 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/method_double.rb +287 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/method_reference.rb +202 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/minitest_integration.rb +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/mutate_const.rb +339 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/object_reference.rb +149 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/order_group.rb +81 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/proxy.rb +503 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/space.rb +238 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/standalone.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/syntax.rb +325 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/targets.rb +124 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/test_double.rb +171 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/verifying_double.rb +129 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/verifying_message_expectation.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/verifying_proxy.rb +220 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/version.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks.rb +130 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/Changelog.md +275 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/LICENSE.md +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/README.md +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/caller_filter.rb +83 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/comparable_version.rb +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/differ.rb +215 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/directory_maker.rb +63 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/encoded_string.rb +165 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/fuzzy_matcher.rb +48 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/hunk_generator.rb +47 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/matcher_definition.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/method_signature_verifier.rb +438 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/mutex.rb +73 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/object_formatter.rb +275 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/recursive_const_methods.rb +76 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/reentrant_mutex.rb +53 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/ruby_features.rb +176 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/source/location.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/source/node.rb +110 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/source/token.rb +87 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/source.rb +75 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/deprecation_helpers.rb +64 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/formatting_support.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/in_sub_process.rb +69 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/library_wide_checks.rb +150 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/shell_out.rb +89 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/stderr_splitter.rb +63 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/string_matcher.rb +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/with_isolated_directory.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/with_isolated_stderr.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/spec.rb +81 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/version.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support/warnings.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.0/lib/rspec/support.rb +149 -0
- data/vendor/bundle/ruby/2.5.0/specifications/diff-lcs-1.3.gemspec +61 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rake-12.3.3.gemspec +49 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-3.9.0.gemspec +43 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-core-3.9.0.gemspec +63 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-expectations-3.9.0.gemspec +51 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-mocks-3.9.0.gemspec +51 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-support-3.9.0.gemspec +39 -0
- metadata +411 -0
@@ -0,0 +1,1125 @@
|
|
1
|
+
### 3.9.0 / 2019-10-07
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.8.2...v3.9.0)
|
3
|
+
|
4
|
+
Enhancements:
|
5
|
+
|
6
|
+
* Improve thread safety of message expectations by using Mutex to prevent
|
7
|
+
deadlocking errors. (Ry Biesemeyer, #1236)
|
8
|
+
* Add the ability to use `time` as an alias for `times`. For example:
|
9
|
+
`expect(Class).to receive(:method).exactly(1).time`.
|
10
|
+
(Pistos, Benoit Tigeot, #1271)
|
11
|
+
|
12
|
+
### 3.8.2 / 2019-10-02
|
13
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.8.1...v3.8.2)
|
14
|
+
|
15
|
+
* Allow `array_including` argument matchers to be nested.
|
16
|
+
(Emmanuel Delmas, #1291)
|
17
|
+
|
18
|
+
### 3.8.1 / 2019-06-13
|
19
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.8.0...v3.8.1)
|
20
|
+
|
21
|
+
Bug Fixes:
|
22
|
+
|
23
|
+
* Ensure stubbing methods does not change their visibility.
|
24
|
+
(Kevin Boschert, #1277)
|
25
|
+
|
26
|
+
### 3.8.0 / 2018-08-04
|
27
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.7.0...v3.8.0)
|
28
|
+
|
29
|
+
Bug Fixes:
|
30
|
+
|
31
|
+
* Issue error when encountering invalid "counted" negative message expectations.
|
32
|
+
(Sergiy Yarinovskiy, #1212)
|
33
|
+
* Ensure `allow_any_instance_of` and `expect_any_instance_of` can be temporarily
|
34
|
+
supressed. (Jon Rowe, #1228)
|
35
|
+
* Ensure `expect_any_instance_of(double).to_not have_received(:some_method)`
|
36
|
+
fails gracefully (as its not supported) rather than issuing a `NoMethodError`.
|
37
|
+
(Maxim Krizhanovsky, #1231)
|
38
|
+
|
39
|
+
### 3.7.0 / 2017-10-17
|
40
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.6.0...v3.7.0)
|
41
|
+
|
42
|
+
Enhancements:
|
43
|
+
|
44
|
+
* Improve compatibility with `--enable-frozen-string-literal` option
|
45
|
+
on Ruby 2.3+. (Pat Allan, #1165)
|
46
|
+
|
47
|
+
Bug Fixes:
|
48
|
+
|
49
|
+
* Fix `hash_including` and `hash_excluding` so that they work against
|
50
|
+
subclasses of `Hash`. (Aaron Rosenberg, #1167)
|
51
|
+
|
52
|
+
### 3.6.0 / 2017-05-04
|
53
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.6.0.beta2...v3.6.0)
|
54
|
+
|
55
|
+
Bug Fixes:
|
56
|
+
|
57
|
+
* Fix "instance variable @color not initialized" warning when using
|
58
|
+
rspec-mocks without rspec-core. (Myron Marston, #1142)
|
59
|
+
* Restore aliased module methods properly when stubbing on 1.8.7.
|
60
|
+
(Samuel Giddins, #1144)
|
61
|
+
* Allow a message chain expectation to be constrained by argument(s).
|
62
|
+
(Jon Rowe, #1156)
|
63
|
+
|
64
|
+
### 3.6.0.beta2 / 2016-12-12
|
65
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.6.0.beta1...v3.6.0.beta2)
|
66
|
+
|
67
|
+
Enhancements:
|
68
|
+
|
69
|
+
* Add new `without_partial_double_verification { }` API that lets you
|
70
|
+
temporarily turn off partial double verification for an example.
|
71
|
+
(Jon Rowe, #1104)
|
72
|
+
|
73
|
+
### 3.6.0.beta1 / 2016-10-09
|
74
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0...v3.6.0.beta1)
|
75
|
+
|
76
|
+
Bug Fixes:
|
77
|
+
|
78
|
+
* Return the test double instance form `#freeze` (Alessandro Berardi, #1109)
|
79
|
+
* Allow the special logic for stubbing `new` to work when `<Class>.method` has
|
80
|
+
been redefined. (Proby, #1119)
|
81
|
+
|
82
|
+
### 3.5.0 / 2016-07-01
|
83
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta4...v3.5.0)
|
84
|
+
|
85
|
+
Enhancements:
|
86
|
+
|
87
|
+
* Provides a nice string representation of
|
88
|
+
`RSpec::Mocks::MessageExpectation` (Myron Marston, #1095)
|
89
|
+
|
90
|
+
### 3.5.0.beta4 / 2016-06-05
|
91
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta3...v3.5.0.beta4)
|
92
|
+
|
93
|
+
Enhancements:
|
94
|
+
|
95
|
+
* Add `and_throw` to any instance handling. (Tobias Bühlmann, #1068)
|
96
|
+
|
97
|
+
### 3.5.0.beta3 / 2016-04-02
|
98
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta2...v3.5.0.beta3)
|
99
|
+
|
100
|
+
Enhancements:
|
101
|
+
|
102
|
+
* Issue warning when attempting to use unsupported
|
103
|
+
`allow(...).to receive(...).ordered`. (Jon Rowe, #1000)
|
104
|
+
* Add `rspec/mocks/minitest_integration`, to properly integrate rspec-mocks
|
105
|
+
with minitest. (Myron Marston, #1065)
|
106
|
+
|
107
|
+
### 3.5.0.beta2 / 2016-03-10
|
108
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta1...v3.5.0.beta2)
|
109
|
+
|
110
|
+
Enhancements:
|
111
|
+
|
112
|
+
* Improve error message displayed when using `and_wrap_original` on pure test
|
113
|
+
doubles. (betesh, #1063)
|
114
|
+
|
115
|
+
Bug Fixes:
|
116
|
+
|
117
|
+
* Fix issue that prevented `receive_message_chain(...).with(...)` working
|
118
|
+
correctly on "any instance" mocks. (Jon Rowe, #1061)
|
119
|
+
|
120
|
+
### 3.5.0.beta1 / 2016-02-06
|
121
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.4.1...v3.5.0.beta1)
|
122
|
+
|
123
|
+
Bug Fixes:
|
124
|
+
|
125
|
+
* Allow `any_instance_of(...).to receive(...)` to use `and_yield` multiple
|
126
|
+
times. (Kilian Cirera Sant, #1054)
|
127
|
+
* Allow matchers which inherit from `rspec-mocks` matchers to be used for
|
128
|
+
`allow`. (Andrew Kozin, #1056)
|
129
|
+
* Prevent stubbing `respond_to?` on partial doubles from causing infinite
|
130
|
+
recursion. (Jon Rowe, #1013)
|
131
|
+
* Prevent aliased methods from disapearing after being mocked with
|
132
|
+
`any_instance` (regression from #1043). (Joe Rafaniello, #1060)
|
133
|
+
|
134
|
+
### 3.4.1 / 2016-01-10
|
135
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.4.0...v3.4.1)
|
136
|
+
|
137
|
+
Bug Fixes:
|
138
|
+
|
139
|
+
* Fix `any_instance` to work properly on Ruby 2.3. (Joe Rafaniello, #1043)
|
140
|
+
|
141
|
+
### 3.4.0 / 2015-11-11
|
142
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.3.2...v3.4.0)
|
143
|
+
|
144
|
+
Enhancements:
|
145
|
+
|
146
|
+
* Make `expect(...).to have_received` work without relying upon
|
147
|
+
rspec-expectations. (Myron Marston, #978)
|
148
|
+
* Add option for failing tests when expectations are set on `nil`.
|
149
|
+
(Liz Rush, #983)
|
150
|
+
|
151
|
+
Bug Fixes:
|
152
|
+
|
153
|
+
* Fix `have_received { ... }` so that any block passed when the message
|
154
|
+
was received is forwarded to the `have_received` block. (Myron Marston, #1006)
|
155
|
+
* Fix infinite loop in error generator when stubbing `respond_to?`.
|
156
|
+
(Alex Dowad, #1022)
|
157
|
+
* Fix issue with using `receive` on subclasses (at a class level) with 1.8.7.
|
158
|
+
(Alex Dowad, #1026)
|
159
|
+
|
160
|
+
### 3.3.2 / 2015-07-15
|
161
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.3.1...v3.3.2)
|
162
|
+
|
163
|
+
Bug Fixes:
|
164
|
+
|
165
|
+
* Prevent thread deadlock errors during proxy creation (e.g. when using
|
166
|
+
`before_verifying_doubles` callbacks). (Jon Rowe, #980, #979)
|
167
|
+
|
168
|
+
### 3.3.1 / 2015-06-19
|
169
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.3.0...v3.3.1)
|
170
|
+
|
171
|
+
Bug Fixes:
|
172
|
+
|
173
|
+
* Fix bug in `before_verifying_double` callback logic that caused it to be called
|
174
|
+
once for each class in the ancestor list when mocking or stubbing a class. Now
|
175
|
+
it is only called for the mocked or stubbed class, as you would expect. (Sam
|
176
|
+
Phippen, #974)
|
177
|
+
|
178
|
+
### 3.3.0 / 2015-06-12
|
179
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.2.1...v3.3.0)
|
180
|
+
|
181
|
+
Enhancements:
|
182
|
+
|
183
|
+
* When stubbing `new` on `MyClass` or `class_double(MyClass)`, use the
|
184
|
+
method signature from `MyClass#initialize` to verify arguments.
|
185
|
+
(Myron Marston, #886)
|
186
|
+
* Use matcher descriptions when generating description of received arguments
|
187
|
+
for mock expectation failures. (Tim Wade, #891)
|
188
|
+
* Avoid loading `stringio` unnecessarily. (Myron Marston, #894)
|
189
|
+
* Verifying doubles failure messages now distinguish between class and instance
|
190
|
+
level methods. (Tim Wade, #896, #908)
|
191
|
+
* Improve mock expectation failure messages so that it combines both
|
192
|
+
number of times and the received arguments in the output. (John Ceh, #918)
|
193
|
+
* Improve how test doubles are represented in failure messages.
|
194
|
+
(Siva Gollapalli, Myron Marston, #932)
|
195
|
+
* Rename `RSpec::Mocks::Configuration#when_declaring_verifying_double` to
|
196
|
+
`RSpec::Mocks::Configuration#before_verifying_doubles` and utilise when
|
197
|
+
verifying partial doubles. (Jon Rowe, #940)
|
198
|
+
* Use rspec-support's `ObjectFormatter` for improved formatting of
|
199
|
+
arguments in failure messages so that, for example, full time
|
200
|
+
precisions is displayed for time objects. (Gavin Miller, Myron Marston, #955)
|
201
|
+
|
202
|
+
Bug Fixes:
|
203
|
+
|
204
|
+
* Ensure expectations that raise eagerly also raise during RSpec verification.
|
205
|
+
This means that if exceptions are caught inside test execution the test will
|
206
|
+
still fail. (Sam Phippen, #884)
|
207
|
+
* Fix `have_received(msg).with(args).exactly(n).times` and
|
208
|
+
`receive(msg).with(args).exactly(n).times` failure messages
|
209
|
+
for when the message was received the wrong number of times with
|
210
|
+
the specified args, and also received additional times with other
|
211
|
+
arguments. Previously it confusingly listed the arguments as being
|
212
|
+
mis-matched (even when the double was allowed to receive with any
|
213
|
+
args) rather than listing the count. (John Ceh, #918)
|
214
|
+
* Fix `any_args`/`anything` support so that we avoid calling `obj == anything`
|
215
|
+
on user objects that may have improperly implemented `==` in a way that
|
216
|
+
raises errors. (Myron Marston, #924)
|
217
|
+
* Fix edge case involving stubbing the same method on a class and a subclass
|
218
|
+
which previously hit a `NoMethodError` internally in RSpec. (Myron Marston #954)
|
219
|
+
* Fix edge case where the message received count would be incremented multiple
|
220
|
+
times for one failure. (Myron Marston, #957)
|
221
|
+
* Fix failure messages for when spies received the expected message with
|
222
|
+
different arguments and also received another message. (Maurício Linhares, #960)
|
223
|
+
* Silence whitespace-only diffs. (Myron Marston, #969)
|
224
|
+
|
225
|
+
### 3.2.1 / 2015-02-23
|
226
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.2.0...v3.2.1)
|
227
|
+
|
228
|
+
Bug Fixes:
|
229
|
+
|
230
|
+
* Add missing `rspec/support/differ` require so that rspec-mocks can be
|
231
|
+
used w/o rspec-expectations (which also loads the differ and hided the
|
232
|
+
fact we forgot to require it). (Myron Marston, #893)
|
233
|
+
* Revert tracking of received arg mutation (added in 3.2.0 to provide an
|
234
|
+
error in a situation we can't support) as our implementation has side
|
235
|
+
effects on non-standard objects and there's no solution we could come
|
236
|
+
up with that always works. (Myron Marston, #900)
|
237
|
+
|
238
|
+
### 3.2.0 / 2015-02-03
|
239
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.3...v3.2.0)
|
240
|
+
|
241
|
+
Enhancements:
|
242
|
+
|
243
|
+
* Treat `any_args` as an arg splat, allowing it to match an arbitrary
|
244
|
+
number of args at any point in an arg list. (Myron Marston, #786)
|
245
|
+
* Print diffs when arguments in mock expectations are mismatched.
|
246
|
+
(Sam Phippen, #751)
|
247
|
+
* Support names for verified doubles (`instance_double`, `instance_spy`,
|
248
|
+
`class_double`, `class_spy`, `object_double`, `object_spy`). (Cezary
|
249
|
+
Baginski, #826)
|
250
|
+
* Make `array_including` and `hash_including` argument matchers composable.
|
251
|
+
(Sam Phippen, #819)
|
252
|
+
* Make `allow_any_instance_of(...).to receive(...).and_wrap_original`
|
253
|
+
work. (Ryan Fitzgerald, #869)
|
254
|
+
|
255
|
+
Bug Fixes:
|
256
|
+
|
257
|
+
* Provide a clear error when users wrongly combine `no_args` with
|
258
|
+
additional arguments (e.g. `expect().to receive().with(no_args, 1)`).
|
259
|
+
(Myron Marston, #786)
|
260
|
+
* Provide a clear error when users wrongly use `any_args` multiple times in the
|
261
|
+
same argument list (e.g. `expect().to receive().with(any_args, 1, any_args)`.
|
262
|
+
(Myron Marston, #786)
|
263
|
+
* Prevent the error generator from using user object #description methods.
|
264
|
+
See [#685](https://github.com/rspec/rspec-mocks/issues/685).
|
265
|
+
(Sam Phippen, #751)
|
266
|
+
* Make verified doubles declared as `(instance|class)_double(SomeConst)`
|
267
|
+
work properly when `SomeConst` has previously been stubbed.
|
268
|
+
`(instance|class)_double("SomeClass")` already worked properly.
|
269
|
+
(Myron Marston, #824)
|
270
|
+
* Add a matcher description for `receive`, `receive_messages` and
|
271
|
+
`receive_message_chain`. (Myron Marston, #828)
|
272
|
+
* Validate invocation args for null object verified doubles.
|
273
|
+
(Myron Marston, #829)
|
274
|
+
* Fix `RSpec::Mocks::Constant.original` when called with an invalid
|
275
|
+
constant to return an object indicating the constant name is invalid,
|
276
|
+
rather than blowing up. (Myron Marston, #833)
|
277
|
+
* Make `extend RSpec::Mocks::ExampleMethods` on any object work properly
|
278
|
+
to add the rspec-mocks API to that object. Previously, `expect` would
|
279
|
+
be undefined. (Myron Marston, #846)
|
280
|
+
* Fix `require 'rspec/mocks/standalone'` so that it only affects `main`
|
281
|
+
and not every object. It's really only intended to be used in a REPL
|
282
|
+
like IRB, but some gems have loaded it, thinking it needs to be loaded
|
283
|
+
when using rspec-mocks outside the context of rspec-core.
|
284
|
+
(Myron Marston, #846)
|
285
|
+
* Prevent message expectations from being modified by customization methods
|
286
|
+
(e.g. `with`) after they have been invoked. (Sam Phippen and Melanie Gilman, #837)
|
287
|
+
* Handle cases where a method stub cannot be removed due to something
|
288
|
+
external to RSpec monkeying with the method definition. This can
|
289
|
+
happen, for example, when you `file.reopen(io)` after previously
|
290
|
+
stubbing a method on the `file` object. (Myron Marston, #853)
|
291
|
+
* Provide a clear error when received message args are mutated before
|
292
|
+
a `have_received(...).with(...)` expectation. (Myron Marston, #868)
|
293
|
+
|
294
|
+
### 3.1.3 / 2014-10-08
|
295
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.2...v3.1.3)
|
296
|
+
|
297
|
+
Bug Fixes:
|
298
|
+
|
299
|
+
* Correct received messages count when used with `have_received` matcher.
|
300
|
+
(Jon Rowe, #793)
|
301
|
+
* Provide a clear error message when you use `allow_any_instance_of(...)` or
|
302
|
+
`expect_any_instance_of(...)` with the `have_received` matcher (they are
|
303
|
+
not intended to be used together and previously caused an odd internal
|
304
|
+
failure in rspec-mocks). (Jon Rowe, #799).
|
305
|
+
* Fix verified double `with` verification so that it applies to method
|
306
|
+
stubs. (Myron Marston, #790)
|
307
|
+
|
308
|
+
### 3.1.2 / 2014-09-26
|
309
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.1...v3.1.2)
|
310
|
+
|
311
|
+
Bug Fixes:
|
312
|
+
|
313
|
+
* Provide a clear error message when you use `allow(...)` with the
|
314
|
+
`have_received` matcher (they are not intended to be used together
|
315
|
+
and previously caused an odd internal failure in rspec-mocks). (Jon Rowe, #788).
|
316
|
+
|
317
|
+
### 3.1.1 / 2014-09-18
|
318
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.0...v3.1.1)
|
319
|
+
|
320
|
+
Bug Fixes:
|
321
|
+
|
322
|
+
* Prevent included modules being detected as prepended modules on Ruby 2.0
|
323
|
+
when using `any_instance_of(...)`. (Tony Novak, #781)
|
324
|
+
|
325
|
+
### 3.1.0 / 2014-09-04
|
326
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.4...v3.1.0)
|
327
|
+
|
328
|
+
Enhancements:
|
329
|
+
|
330
|
+
* Add spying methods (`spy`, `ìnstance_spy`, `class_spy` and `object_spy`)
|
331
|
+
which create doubles as null objects for use with spying in testing. (Sam
|
332
|
+
Phippen, #671)
|
333
|
+
* `have_received` matcher will raise "does not implement" errors correctly when
|
334
|
+
used with verifying doubles and partial doubles. (Xavier Shay, #722)
|
335
|
+
* Allow matchers to be used in place of keyword arguments in `with`
|
336
|
+
expectations. (Xavier Shay, #726)
|
337
|
+
* Add `thrice` modifier to message expectation interface as a synonym
|
338
|
+
for `exactly(3).times`. (Dennis Taylor, #753)
|
339
|
+
* Add more `thrice` synonyms e.g. `.at_least(:thrice)`, `.at_most(:thrice)`,
|
340
|
+
`receive(...).thrice` and `have_received(...).thrice`. (Jon Rowe, #754)
|
341
|
+
* Add `and_wrap_original` modifier for partial doubles to mutate the
|
342
|
+
response from a method. (Jon Rowe, #762)
|
343
|
+
|
344
|
+
Bug Fixes:
|
345
|
+
|
346
|
+
* Remove `any_number_of_times` from `any_instance` recorders that were
|
347
|
+
erroneously causing mention of the method in documentation. (Jon Rowe, #760)
|
348
|
+
* Prevent included modules being detected as prepended modules on Ruby 2.0.
|
349
|
+
(Eugene Kenny, #771)
|
350
|
+
|
351
|
+
### 3.0.4 / 2014-08-14
|
352
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.3...v3.0.4)
|
353
|
+
|
354
|
+
Bug Fixes:
|
355
|
+
|
356
|
+
* Restore `kind_of(x)` to match using `arg.kind_of?(x)` (like RSpec 2)
|
357
|
+
rather than `x === arg`. (Jon Rowe, #750)
|
358
|
+
|
359
|
+
### 3.0.3 / 2014-07-21
|
360
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.2...v3.0.3)
|
361
|
+
|
362
|
+
Bug Fixes:
|
363
|
+
|
364
|
+
* `have_received` matcher will raise "does not implement" errors correctly when
|
365
|
+
used with verifying doubles and partial doubles. (Xavier Shay, #722)
|
366
|
+
* Make `double.as_null_object.dup` and `double.as_null_object.clone`
|
367
|
+
make the copies be null objects. (Myron Marston, #732)
|
368
|
+
* Don't inadvertently define `BasicObject` in 1.8.7. (Chris Griego, #739)
|
369
|
+
|
370
|
+
### 3.0.2 / 2014-06-19
|
371
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.1...v3.0.2)
|
372
|
+
|
373
|
+
Bug Fixes:
|
374
|
+
|
375
|
+
* Fix edge case that triggered "can't add a new key into hash during
|
376
|
+
iteration" during mock verification. (Sam Phippen, Myron Marston, #711)
|
377
|
+
* Fix verifying doubles so that when they accidentally leak into another
|
378
|
+
example, they provide the same clear error message that normal doubles
|
379
|
+
do. (Myron Marston, #718)
|
380
|
+
* Make `ordered` work with exact receive counts. (Sam Phippen, #713)
|
381
|
+
|
382
|
+
### 3.0.1 / 2014-06-07
|
383
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.0...v3.0.1)
|
384
|
+
|
385
|
+
Bug Fixes:
|
386
|
+
|
387
|
+
* Fix `receive_message_chain(...)` so that it supports `with` just like
|
388
|
+
`stub_chain` did. (Jon Rowe, #697)
|
389
|
+
* Fix regression in `expect_any_instance_of` so that it expects the
|
390
|
+
message on _any_ instance rather than on _every_ instance.
|
391
|
+
(Myron Marston, #699)
|
392
|
+
|
393
|
+
### 3.0.0 / 2014-06-01
|
394
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.0.rc1...v3.0.0)
|
395
|
+
|
396
|
+
Bug Fixes:
|
397
|
+
|
398
|
+
* Fix module prepend detection to work properly on ruby 2.0 for a case
|
399
|
+
where a module is extended onto itself. (Myron Marston)
|
400
|
+
* Fix `transfer_nested_constants` option so that transferred constants
|
401
|
+
get properly reset at the end of the example. (Myron Marston)
|
402
|
+
* Fix `config.transfer_nested_constants = true` so that you don't
|
403
|
+
erroneously get errors when stubbing a constant that is not a module
|
404
|
+
or a class. (Myron Marston)
|
405
|
+
* Fix regression that caused `double(:class => SomeClass)` to later
|
406
|
+
trigger infinite recursion. (Myron Marston)
|
407
|
+
* Fix bug in `have_received(...).with(...).ordered` where it was not
|
408
|
+
taking the args into account when checking the order. (Myron Marston)
|
409
|
+
* Fix bug in `have_received(...).ordered` where it was wrongly
|
410
|
+
considering stubs when checking the order. (Myron Marston)
|
411
|
+
* Message expectation matchers now show descriptions from argument
|
412
|
+
matchers when their expectations aren't met. (Jon Rowe)
|
413
|
+
* Display warning when encountering `TypeError` during instance method
|
414
|
+
staging on 2.0.0-p195, suffers from https://bugs.ruby-lang.org/issues/8686
|
415
|
+
too. (Cezar Halmagean).
|
416
|
+
|
417
|
+
### 3.0.0.rc1 / 2014-05-18
|
418
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.0.beta2...v3.0.0.rc1)
|
419
|
+
|
420
|
+
Breaking Changes for 3.0.0:
|
421
|
+
|
422
|
+
* Remove `RSpec::Mocks::TestDouble.extend_onto`. (Myron Marston)
|
423
|
+
* Remove `RSpec::Mocks::ConstantStubber`. (Jon Rowe)
|
424
|
+
* Make monkey-patch of Marshal to support dumping of stubbed objects opt-in.
|
425
|
+
(Xavier Shay)
|
426
|
+
|
427
|
+
Enhancements:
|
428
|
+
|
429
|
+
* Instead of crashing when cleaning up stub methods on a frozen object, it now
|
430
|
+
issues a warning explaining that it's impossible to clean up the stubs.
|
431
|
+
(Justin Coyne and Sam Phippen)
|
432
|
+
* Add meaningful descriptions to `anything`, `duck_type` and `instance_of` argument
|
433
|
+
matchers. (Jon Rowe)
|
434
|
+
|
435
|
+
Bug Fixes:
|
436
|
+
|
437
|
+
* Fix regression introduced in 3.0.0.beta2 that caused
|
438
|
+
`double.as_null_object.to_str` to return the double rather
|
439
|
+
than a string. (Myron Marston)
|
440
|
+
* Fix bug in `expect(dbl).to receive_message_chain(:foo, :bar)` where it was
|
441
|
+
not setting an expectation for the last message in the chain.
|
442
|
+
(Jonathan del Strother)
|
443
|
+
* Allow verifying partial doubles to have private methods stubbed. (Xavier Shay)
|
444
|
+
* Fix bug with allowing/expecting messages on Class objects which have had
|
445
|
+
their singleton class prepended to. (Jon Rowe)
|
446
|
+
* Fix an issue with 1.8.7 not running implementation blocks on partial doubles.
|
447
|
+
(Maurício Linhares)
|
448
|
+
* Prevent `StackLevelTooDeep` errors when stubbing an `any_instance` method that's
|
449
|
+
accessed in `inspect` by providing our own inspect output. (Jon Rowe)
|
450
|
+
* Fix bug in `any_instance` logic that did not allow you to mock or stub
|
451
|
+
private methods if `verify_partial_doubles` was configured. (Oren Dobzinski)
|
452
|
+
* Include useful error message when trying to observe an unimplemented method
|
453
|
+
on an any instance. (Xavier Shay)
|
454
|
+
* Fix `and_call_original` to work properly when multiple classes in an
|
455
|
+
inheritance hierarchy have been stubbed with the same method. (Myron Marston)
|
456
|
+
* Fix `any_instance` so that it updates existing instances that have
|
457
|
+
already been stubbed. (Myron Marston)
|
458
|
+
* Fix verified doubles so that their class name is included in failure
|
459
|
+
messages. (Myron Marston)
|
460
|
+
* Fix `expect_any_instance_of` so that when the message is received
|
461
|
+
on an individual instance that has been directly stubbed, it still
|
462
|
+
satisfies the expectation. (Sam Phippen, Myron Marston)
|
463
|
+
* Explicitly disallow using `any_instance` to mock or stub a method
|
464
|
+
that is defined on a module prepended onto the class. This triggered
|
465
|
+
`SystemStackError` before and is very hard to support so we are not
|
466
|
+
supporting it at this time. (Myron Marston)
|
467
|
+
|
468
|
+
### 3.0.0.beta2 / 2014-02-17
|
469
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.0.beta1...v3.0.0.beta2)
|
470
|
+
|
471
|
+
Breaking Changes for 3.0.0:
|
472
|
+
|
473
|
+
* Rename `RSpec::Mocks::Mock` to `RSpec::Mocks::Double`. (Myron Marston)
|
474
|
+
* Change how to integrate rspec-mocks in other test frameworks. You now
|
475
|
+
need to include `RSpec::Mocks::ExampleMethods` in your test context.
|
476
|
+
(Myron Marston)
|
477
|
+
* Prevent RSpec mocks' doubles and partial doubles from being used outside of
|
478
|
+
the per-test lifecycle (e.g. from a `before(:all)` hook). (Sam Phippen)
|
479
|
+
* Remove the `host` argument of `RSpec::Mocks.setup`. Instead
|
480
|
+
`RSpec::Mocks::ExampleMethods` should be included directly in the scope where
|
481
|
+
RSpec's mocking capabilities are used. (Sam Phippen)
|
482
|
+
* Make test doubles raise errors if you attempt to use them after they
|
483
|
+
get reset, to help surface issues when you accidentally retain
|
484
|
+
references to test doubles and attempt to reuse them in another
|
485
|
+
example. (Myron Marston)
|
486
|
+
* Remove support for `and_return { value }` and `and_return` without arguments. (Yuji Nakayama)
|
487
|
+
|
488
|
+
Enhancements:
|
489
|
+
|
490
|
+
* Add `receive_message_chain` which provides the functionality of the old
|
491
|
+
`stub_chain` for the new allow/expect syntax. Use it like so: `allow(...).to
|
492
|
+
receive_message_chain(:foo, :bar, :bazz)`. (Sam Phippen).
|
493
|
+
* Change argument matchers to use `===` as their primary matching
|
494
|
+
protocol, since their semantics mirror that of a case or rescue statement
|
495
|
+
(which uses `===` for matching). (Myron Marston)
|
496
|
+
* Add `RSpec::Mocks.with_temporary_scope`, which allows you to create
|
497
|
+
temporary rspec-mocks scopes in arbitrary places (such as a
|
498
|
+
`before(:all)` hook). (Myron Marston)
|
499
|
+
* Support keyword arguments when checking arity with verifying doubles.
|
500
|
+
(Xavier Shay)
|
501
|
+
|
502
|
+
Bug Fixes:
|
503
|
+
|
504
|
+
* Fix regression in 3.0.0.beta1 that caused `double("string_name" => :value)`
|
505
|
+
to stop working. (Xavier Shay)
|
506
|
+
* Fix the way rspec-mocks and rspec-core interact so that if users
|
507
|
+
define a `let` with the same name as one of the methods
|
508
|
+
from `RSpec::Mocks::ArgumentMatchers`, the user's `let` takes
|
509
|
+
precedence. (Michi Huber, Myron Marston)
|
510
|
+
* Fix verified doubles so that their methods match the visibility
|
511
|
+
(public, protected or private) of the interface they verify
|
512
|
+
against. (Myron Marston)
|
513
|
+
* Fix verified null object doubles so that they do not wrongly
|
514
|
+
report that they respond to anything. They only respond to methods
|
515
|
+
available on the interface they verify against. (Myron Marston)
|
516
|
+
* Fix deprecation warning for use of old `:should` syntax w/o explicit
|
517
|
+
config so that it no longer is silenced by an extension gem such
|
518
|
+
as rspec-rails when it calls `config.add_stub_and_should_receive_to`.
|
519
|
+
(Sam Phippen)
|
520
|
+
* Fix `expect` syntax so that it does not wrongly emit a "You're
|
521
|
+
overriding a previous implementation for this stub" warning when
|
522
|
+
you are not actually doing that. (Myron Marston)
|
523
|
+
* Fix `any_instance.unstub` when used on sub classes for whom the super
|
524
|
+
class has had `any_instance.stub` invoked on. (Jon Rowe)
|
525
|
+
* Fix regression in `stub_chain`/`receive_message_chain` that caused
|
526
|
+
it to raise an `ArgumentError` when passing args to the stubbed
|
527
|
+
methods. (Sam Phippen)
|
528
|
+
* Correct stub of undefined parent modules all the way down when stubbing a
|
529
|
+
nested constant. (Xavier Shay)
|
530
|
+
* Raise `VerifyingDoubleNotDefinedError` when a constant is not defined for
|
531
|
+
a verifying class double. (Maurício Linhares)
|
532
|
+
* Remove `Double#to_str`, which caused confusing `raise some_double`
|
533
|
+
behavior. (Maurício Linhares)
|
534
|
+
|
535
|
+
### 3.0.0.beta1 / 2013-11-07
|
536
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.4...v3.0.0.beta1)
|
537
|
+
|
538
|
+
Breaking Changes for 3.0.0:
|
539
|
+
|
540
|
+
* Raise an explicit error if `should_not_receive(...).and_return` is used. (Sam
|
541
|
+
Phippen)
|
542
|
+
* Remove 1.8.6 workarounds. (Jon Rowe)
|
543
|
+
* Remove `stub!` and `unstub!`. (Sam Phippen)
|
544
|
+
* Remove `mock(name, methods)` and `stub(name, methods)`, leaving
|
545
|
+
`double(name, methods)` for creating test doubles. (Sam Phippen, Michi Huber)
|
546
|
+
* Remove `any_number_of_times` since `should_receive(:msg).any_number_of_times`
|
547
|
+
is really a stub in a mock's clothing. (Sam Phippen)
|
548
|
+
* Remove support for re-using the same null-object test double in multiple
|
549
|
+
examples. Test doubles are designed to only live for one example.
|
550
|
+
(Myron Marston)
|
551
|
+
* Make `at_least(0)` raise an error. (Sam Phippen)
|
552
|
+
* Remove support for `require 'spec/mocks'` which had been kept
|
553
|
+
in place for backwards compatibility with RSpec 1. (Myron Marston)
|
554
|
+
* Blocks provided to `with` are always used as implementation. (Xavier Shay)
|
555
|
+
* The config option (added in 2.99) to yield the receiver to
|
556
|
+
`any_instance` implementation blocks now defaults to "on". (Sam Phippen)
|
557
|
+
|
558
|
+
Enhancements:
|
559
|
+
|
560
|
+
* Allow the `have_received` matcher to use a block to set further expectations
|
561
|
+
on arguments. (Tim Cowlishaw)
|
562
|
+
* Provide `instance_double` and `class_double` to create verifying doubles,
|
563
|
+
ported from `rspec-fire`. (Xavier Shay)
|
564
|
+
* `as_null_object` on a verifying double only responds to defined methods.
|
565
|
+
(Xavier Shay)
|
566
|
+
* Provide `object_double` to create verified doubles of specific object
|
567
|
+
instances. (Xavier Shay)
|
568
|
+
* Provide `verify_partial_doubles` configuration that provides `object_double`
|
569
|
+
like verification behaviour on partial doubles. (Xavier Shay)
|
570
|
+
* Improved performance of double creation, particularly those with many
|
571
|
+
attributes. (Xavier Shay)
|
572
|
+
* Default value of `transfer_nested_constants` option for constant stubbing can
|
573
|
+
be configured. (Xavier Shay)
|
574
|
+
* Messages can be allowed or expected on in bulk via
|
575
|
+
`receive_messages(:message => :value)`. (Jon Rowe)
|
576
|
+
* `allow(Klass.any_instance)` and `expect(Klass.any_instance)` now print a
|
577
|
+
warning. This is usually a mistake, and users usually want
|
578
|
+
`allow_any_instance_of` or `expect_any_instance_of` instead. (Sam Phippen)
|
579
|
+
* `instance_double` and `class_double` raise `ArgumentError` if the underlying
|
580
|
+
module is loaded and the arity of the method being invoked does not match the
|
581
|
+
arity of the method as it is actually implemented. (Andy Lindeman)
|
582
|
+
* Spies can now check their invocation ordering is correct. (Jon Rowe)
|
583
|
+
|
584
|
+
Deprecations:
|
585
|
+
|
586
|
+
* Using the old `:should` syntax without explicitly configuring it
|
587
|
+
is deprecated. It will continue to work but will emit a deprecation
|
588
|
+
warning in RSpec 3 if you do not explicitly enable it. (Sam Phippen)
|
589
|
+
|
590
|
+
Bug Fixes:
|
591
|
+
|
592
|
+
* Fix `and_call_original` to handle a complex edge case involving
|
593
|
+
singleton class ancestors. (Marc-André Lafortune, Myron Marston)
|
594
|
+
* When generating an error message for unexpected arguments,
|
595
|
+
use `#inspect` rather than `#description` if `#description`
|
596
|
+
returns `nil` or `''` so that you still get a useful message.
|
597
|
+
(Nick DeLuca)
|
598
|
+
|
599
|
+
### 2.99.4 / 2015-06-19
|
600
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.3...v2.99.4)
|
601
|
+
|
602
|
+
Bug Fixes:
|
603
|
+
|
604
|
+
* Add missing deprecation for using `with` with no arguments e.g. `with()`. (Yousuke, #970)
|
605
|
+
|
606
|
+
### 2.99.3 / 2015-01-09
|
607
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.2...v2.99.3)
|
608
|
+
|
609
|
+
Bug Fixes:
|
610
|
+
|
611
|
+
* Fix regression that caused an error when a test double was deserialized from YAML. (Yuji Nakayama, #777)
|
612
|
+
|
613
|
+
### 2.99.2 / 2014-07-21
|
614
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.1...v2.99.2)
|
615
|
+
|
616
|
+
Enhancements:
|
617
|
+
|
618
|
+
* Warn about upcoming change to `#===` matching and `DateTime#===` behaviour.
|
619
|
+
(Jon Rowe, #735)
|
620
|
+
|
621
|
+
### 2.99.1 / 2014-06-12
|
622
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.0...v2.99.1)
|
623
|
+
|
624
|
+
Bug Fixes:
|
625
|
+
|
626
|
+
* Fix bug that caused errors at the end of each example
|
627
|
+
when a `double.as_null_object` had been frozen. (Yuji Nakayama, #698)
|
628
|
+
|
629
|
+
Deprecations:
|
630
|
+
|
631
|
+
* Deprecate freezing a test double. (Yuji Nakayama, #698)
|
632
|
+
|
633
|
+
### 2.99.0 / 2014-06-01
|
634
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.0.rc1...v2.99.0)
|
635
|
+
|
636
|
+
No changes. Just taking it out of pre-release.
|
637
|
+
|
638
|
+
### 2.99.0.rc1 / 2014-05-18
|
639
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.0.beta2...v2.99.0.rc1)
|
640
|
+
|
641
|
+
Deprecations:
|
642
|
+
|
643
|
+
* Deprecate `RSpec::Mocks::TestDouble.extend_onto`. (Myron Marston)
|
644
|
+
* Deprecate `RSpec::Mocks::ConstantStubber`. (Jon Rowe)
|
645
|
+
* Deprecate `Marshal.dump` monkey-patch without opt-in. (Xavier Shay)
|
646
|
+
|
647
|
+
### 2.99.0.beta2 / 2014-02-17
|
648
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.0.beta1...v2.99.0.beta2)
|
649
|
+
|
650
|
+
Deprecations:
|
651
|
+
|
652
|
+
* Deprecate `RSpec::Mocks::Mock` in favor of `RSpec::Mocks::Double`.
|
653
|
+
(Myron Marston)
|
654
|
+
* Deprecate the `host` argument of `RSpec::Mocks.setup`. Instead
|
655
|
+
`RSpec::Mocks::ExampleMethods` should be included directly in the scope where
|
656
|
+
RSpec's mocking capabilities are used. (Sam Phippen)
|
657
|
+
* Deprecate using any of rspec-mocks' features outside the per-test
|
658
|
+
lifecycle (e.g. from a `before(:all)` hook). (Myron Marston)
|
659
|
+
* Deprecate re-using a test double in another example. (Myron Marston)
|
660
|
+
* Deprecate `and_return { value }` and `and_return` without arguments. (Yuji Nakayama)
|
661
|
+
|
662
|
+
### 2.99.0.beta1 / 2013-11-07
|
663
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.4...v2.99.0.beta1)
|
664
|
+
|
665
|
+
Deprecations
|
666
|
+
|
667
|
+
* Expecting to use lambdas or other strong arity implementations for stub
|
668
|
+
methods with mis-matched arity is deprecated and support for them will be
|
669
|
+
removed in 3.0. Either provide the right amount of arguments or use a weak
|
670
|
+
arity implementation (methods with splats or procs). (Jon Rowe)
|
671
|
+
* Using the same test double instance in multiple examples is deprecated. Test
|
672
|
+
doubles are only meant to live for one example. The mocks and stubs have
|
673
|
+
always been reset between examples; however, in 2.x the `as_null_object`
|
674
|
+
state was not reset and some users relied on this to have a null object
|
675
|
+
double that is used for many examples. This behavior will be removed in 3.0.
|
676
|
+
(Myron Marston)
|
677
|
+
* Print a detailed warning when an `any_instance` implementation block is used
|
678
|
+
when the new `yield_receiver_to_any_instance_implementation_blocks` config
|
679
|
+
option is not explicitly set, as RSpec 3.0 will default to enabling this new
|
680
|
+
feature. (Sam Phippen)
|
681
|
+
|
682
|
+
Enhancements:
|
683
|
+
|
684
|
+
* Add a config option to yield the receiver to `any_instance` implementation
|
685
|
+
blocks. (Sam Phippen)
|
686
|
+
|
687
|
+
### 2.14.6 / 2014-02-20
|
688
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.5...v2.14.6)
|
689
|
+
|
690
|
+
Bug Fixes:
|
691
|
+
|
692
|
+
* Ensure `any_instance` method stubs and expectations are torn down regardless of
|
693
|
+
expectation failures. (Sam Phippen)
|
694
|
+
|
695
|
+
### 2.14.5 / 2014-02-01
|
696
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.4...v2.14.5)
|
697
|
+
|
698
|
+
Bug Fixes:
|
699
|
+
|
700
|
+
* Fix regression that caused block implementations to not receive all
|
701
|
+
args on 1.8.7 if the block also receives a block, due to Proc#arity
|
702
|
+
reporting `1` no matter how many args the block receives if it
|
703
|
+
receives a block, too. (Myron Marston)
|
704
|
+
|
705
|
+
### 2.14.4 / 2013-10-15
|
706
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.3...v2.14.4)
|
707
|
+
|
708
|
+
Bug Fixes:
|
709
|
+
|
710
|
+
* Fix issue where unstubing methods on "any instances" would not
|
711
|
+
remove stubs on existing instances (Jon Rowe)
|
712
|
+
* Fix issue with receive(:message) do ... end precedence preventing
|
713
|
+
the usage of modifications (`and_return` etc) (Jon Rowe)
|
714
|
+
|
715
|
+
### 2.14.3 / 2013-08-08
|
716
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.2...v2.14.3)
|
717
|
+
|
718
|
+
Bug Fixes:
|
719
|
+
|
720
|
+
* Fix stubbing some instance methods for classes whose hierarchy includes
|
721
|
+
a prepended Module (Bradley Schaefer)
|
722
|
+
|
723
|
+
### 2.14.2 / 2013-07-30
|
724
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.1...v2.14.2)
|
725
|
+
|
726
|
+
Bug Fixes:
|
727
|
+
|
728
|
+
* Fix `as_null_object` doubles so that they return `nil` from `to_ary`
|
729
|
+
(Jon Rowe).
|
730
|
+
* Fix regression in 2.14 that made `stub!` (with an implicit receiver)
|
731
|
+
return a test double rather than stub a method (Myron Marston).
|
732
|
+
|
733
|
+
### 2.14.1 / 2013-07-07
|
734
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.0...v2.14.1)
|
735
|
+
|
736
|
+
Bug Fixes:
|
737
|
+
|
738
|
+
* Restore `double.as_null_object` behavior from 2.13 and earlier: a
|
739
|
+
double's nullness persisted between examples in earlier examples.
|
740
|
+
While this is not an intended use case (test doubles are meant to live
|
741
|
+
for only one example), we don't want to break behavior users rely
|
742
|
+
on in a minor relase. This will be deprecated in 2.99 and removed
|
743
|
+
in 3.0. (Myron Marston)
|
744
|
+
|
745
|
+
### 2.14.0 / 2013-07-06
|
746
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.0.rc1...v2.14.0)
|
747
|
+
|
748
|
+
Enhancements:
|
749
|
+
|
750
|
+
* Document test spies in the readme. (Adarsh Pandit)
|
751
|
+
* Add an `array_including` matcher. (Sam Phippen)
|
752
|
+
* Add a syntax-agnostic API for mocking or stubbing a method. This is
|
753
|
+
intended for use by libraries such as rspec-rails that need to mock
|
754
|
+
or stub a method, and work regardless of the syntax the user has
|
755
|
+
configured (Paul Annesley, Myron Marston and Sam Phippen).
|
756
|
+
|
757
|
+
Bug Fixes:
|
758
|
+
|
759
|
+
* Fix `double` so that it sets up passed stubs correctly regardless of
|
760
|
+
the configured syntax (Paul Annesley).
|
761
|
+
* Allow a block implementation to be used in combination with
|
762
|
+
`and_yield`, `and_raise`, `and_return` or `and_throw`. This got fixed
|
763
|
+
in 2.13.1 but failed to get merged into master for the 2.14.0.rc1
|
764
|
+
release (Myron Marston).
|
765
|
+
* `Marshal.dump` does not unnecessarily duplicate objects when rspec-mocks has
|
766
|
+
not been fully initialized. This could cause errors when using `spork` or
|
767
|
+
similar preloading gems (Andy Lindeman).
|
768
|
+
|
769
|
+
### 2.14.0.rc1 / 2013-05-27
|
770
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.13.0...v2.14.0.rc1)
|
771
|
+
|
772
|
+
Enhancements:
|
773
|
+
|
774
|
+
* Refactor internals so that the mock proxy methods and state are held
|
775
|
+
outside of the mocked object rather than inside it. This paves the way
|
776
|
+
for future syntax enhancements and removes the need for some hacky
|
777
|
+
work arounds for `any_instance` dup'ing and `YAML` serialization,
|
778
|
+
among other things. Note that the code now relies upon `__id__`
|
779
|
+
returning a unique, consistent value for any object you want to
|
780
|
+
mock or stub (Myron Marston).
|
781
|
+
* Add support for test spies. This allows you to verify a message
|
782
|
+
was received afterwards using the `have_received` matcher.
|
783
|
+
Note that you must first stub the method or use a null double.
|
784
|
+
(Joe Ferris and Joël Quenneville)
|
785
|
+
* Make `at_least` and `at_most` style receive expectations print that they were
|
786
|
+
expecting at least or at most some number of calls, rather than just the
|
787
|
+
number of calls given in the expectation (Sam Phippen)
|
788
|
+
* Make `with` style receive expectations print the args they were expecting, and
|
789
|
+
the args that they got (Sam Phippen)
|
790
|
+
* Fix some warnings seen under ruby 2.0.0p0 (Sam Phippen).
|
791
|
+
* Add a new `:expect` syntax for message expectations
|
792
|
+
(Myron Marston and Sam Phippen).
|
793
|
+
|
794
|
+
Bug fixes
|
795
|
+
|
796
|
+
* Fix `any_instance` so that a frozen object can be `dup`'d when methods
|
797
|
+
have been stubbed on that type using `any_instance` (Jon Rowe).
|
798
|
+
* Fix `and_call_original` so that it properly raises an `ArgumentError`
|
799
|
+
when the wrong number of args are passed (Jon Rowe).
|
800
|
+
* Fix `double` on 1.9.2 so you can wrap them in an Array
|
801
|
+
using `Array(my_double)` (Jon Rowe).
|
802
|
+
* Fix `stub_const` and `hide_const` to handle constants that redefine `send`
|
803
|
+
(Sam Phippen).
|
804
|
+
* Fix `Marshal.dump` extension so that it correctly handles nil.
|
805
|
+
(Luke Imhoff, Jon Rowe)
|
806
|
+
* Fix isolation of `allow_message_expectations_on_nil` (Jon Rowe)
|
807
|
+
* Use inspect to format actual arguments on expectations in failure messages (#280, Ben Langfeld)
|
808
|
+
* Protect against improperly initialised test doubles (#293) (Joseph Shraibman and Jon Rowe)
|
809
|
+
|
810
|
+
Deprecations
|
811
|
+
|
812
|
+
* Deprecate `stub` and `mock` as aliases for `double`. `double` is the
|
813
|
+
best term for creating a test double, and it reduces confusion to
|
814
|
+
have only one term (Michi Huber).
|
815
|
+
* Deprecate `stub!` and `unstub!` in favor of `stub` and `unstub`
|
816
|
+
(Jon Rowe).
|
817
|
+
* Deprecate `at_least(0).times` and `any_number_of_times` (Michi Huber).
|
818
|
+
|
819
|
+
### 2.13.1 / 2013-04-06
|
820
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.13.0...v2.13.1)
|
821
|
+
|
822
|
+
Bug fixes
|
823
|
+
|
824
|
+
* Allow a block implementation to be used in combination with
|
825
|
+
`and_yield`, `and_raise`, `and_return` or `and_throw` (Myron Marston).
|
826
|
+
|
827
|
+
### 2.13.0 / 2013-02-23
|
828
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.12.2...v2.13.0)
|
829
|
+
|
830
|
+
Bug fixes
|
831
|
+
|
832
|
+
* Fix bug that caused weird behavior when a method that had
|
833
|
+
previously been stubbed with multiple return values (e.g.
|
834
|
+
`obj.stub(:foo).and_return(1, 2)`) was later mocked with a
|
835
|
+
single return value (e.g. `obj.should_receive(:foo).once.and_return(1)`).
|
836
|
+
(Myron Marston)
|
837
|
+
* Fix bug related to a mock expectation for a method that already had
|
838
|
+
multiple stubs with different `with` constraints. Previously, the
|
839
|
+
first stub was used, even though it may not have matched the passed
|
840
|
+
args. The fix defers this decision until the message is received so
|
841
|
+
that the proper stub response can be chosen based on the passed
|
842
|
+
arguments (Myron Marston).
|
843
|
+
* Do not call `nil?` extra times on a mocked object, in case `nil?`
|
844
|
+
itself is expected a set number of times (Myron Marston).
|
845
|
+
* Fix `missing_default_stub_error` message so array args are handled
|
846
|
+
properly (Myron Marston).
|
847
|
+
* Explicitly disallow `any_instance.unstub!` (Ryan Jones).
|
848
|
+
* Fix `any_instance` stubbing so that it works with `Delegator`
|
849
|
+
subclasses (Myron Marston).
|
850
|
+
* Fix `and_call_original` so that it works with `Delegator` subclasses
|
851
|
+
(Myron Marston).
|
852
|
+
* Fix `any_instance.should_not_receive` when `any_instance.should_receive`
|
853
|
+
is used on the same class in the same example. Previously it would
|
854
|
+
wrongly report a failure even when the message was not received
|
855
|
+
(Myron Marston).
|
856
|
+
|
857
|
+
### 2.12.2 / 2013-01-27
|
858
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.12.1...v.2.12.2)
|
859
|
+
|
860
|
+
Bug fixes
|
861
|
+
|
862
|
+
* Fix `and_call_original` to work properly for methods defined
|
863
|
+
on a module extended onto an object instance (Myron Marston).
|
864
|
+
* Fix `stub_const` with an undefined constnat name to work properly
|
865
|
+
with constant strings that are prefixed with `::` -- and edge case
|
866
|
+
I missed in the bug fix in the 2.12.1 release (Myron Marston).
|
867
|
+
* Ensure method visibility on a partial mock is restored after reseting
|
868
|
+
method stubs, even on a singleton module (created via `extend self`)
|
869
|
+
when the method visibility differs between the instance and singleton
|
870
|
+
versions (Andy Lindeman).
|
871
|
+
|
872
|
+
### 2.12.1 / 2012-12-21
|
873
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.12.0...v2.12.1)
|
874
|
+
|
875
|
+
Bug fixes
|
876
|
+
|
877
|
+
* Fix `any_instance` to support `and_call_original`.
|
878
|
+
(Myron Marston)
|
879
|
+
* Properly restore stubbed aliased methods on rubies
|
880
|
+
that report the incorrect owner (Myron Marston and Andy Lindeman).
|
881
|
+
* Fix `hide_const` and `stub_const` with a defined constnat name to
|
882
|
+
work properly with constant strings that are prefixed with `::` (Myron Marston).
|
883
|
+
|
884
|
+
### 2.12.0 / 2012-11-12
|
885
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.11.3...v2.12.0)
|
886
|
+
|
887
|
+
Enhancements
|
888
|
+
|
889
|
+
* `and_raise` can accept an exception class and message, more closely
|
890
|
+
matching `Kernel#raise` (e.g., `foo.stub(:bar).and_raise(RuntimeError, "message")`)
|
891
|
+
(Bas Vodde)
|
892
|
+
* Add `and_call_original`, which will delegate the message to the
|
893
|
+
original method (Myron Marston).
|
894
|
+
|
895
|
+
Deprecations:
|
896
|
+
|
897
|
+
* Add deprecation warning when using `and_return` with `should_not_receive`
|
898
|
+
(Neha Kumari)
|
899
|
+
|
900
|
+
### 2.11.3 / 2012-09-19
|
901
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.11.2...v2.11.3)
|
902
|
+
|
903
|
+
Bug fixes
|
904
|
+
|
905
|
+
* Fix `:transfer_nested_constants` option of `stub_const` so that it
|
906
|
+
doesn't blow up when there are inherited constants. (Myron Marston)
|
907
|
+
* `any_instance` stubs can be used on classes that override `Object#method`.
|
908
|
+
(Andy Lindeman)
|
909
|
+
* Methods stubbed with `any_instance` are unstubbed after the test finishes.
|
910
|
+
(Andy Lindeman)
|
911
|
+
* Fix confusing error message when calling a mocked class method an
|
912
|
+
extra time with the wrong arguments (Myron Marston).
|
913
|
+
|
914
|
+
### 2.11.2 / 2012-08-11
|
915
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.11.1...v2.11.2)
|
916
|
+
|
917
|
+
Bug fixes
|
918
|
+
|
919
|
+
* Don't modify `dup` on classes that don't support `dup` (David Chelimsky)
|
920
|
+
* Fix `any_instance` so that it works properly with methods defined on
|
921
|
+
a superclass. (Daniel Eguzkiza)
|
922
|
+
* Fix `stub_const` so that it works properly for nested constants that
|
923
|
+
share a name with a top-level constant (e.g. "MyGem::Hash"). (Myron
|
924
|
+
Marston)
|
925
|
+
|
926
|
+
### 2.11.1 / 2012-07-09
|
927
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.11.0...v2.11.1)
|
928
|
+
|
929
|
+
Bug fixes
|
930
|
+
|
931
|
+
* Fix `should_receive` so that when it is called on an `as_null_object`
|
932
|
+
double with no implementation, and there is a previous explicit stub
|
933
|
+
for the same method, the explicit stub remains (rather than being
|
934
|
+
overridden with the null object implementation--`return self`). (Myron
|
935
|
+
Marston)
|
936
|
+
|
937
|
+
### 2.11.0 / 2012-07-07
|
938
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.10.1...v2.11.0)
|
939
|
+
|
940
|
+
Enhancements
|
941
|
+
|
942
|
+
* Expose ArgumentListMatcher as a formal API
|
943
|
+
* supports use by 3rd party mock frameworks like Surrogate
|
944
|
+
* Add `stub_const` API to stub constants for the duration of an
|
945
|
+
example (Myron Marston).
|
946
|
+
|
947
|
+
Bug fixes
|
948
|
+
|
949
|
+
* Fix regression of edge case behavior. `double.should_receive(:foo) { a }`
|
950
|
+
was causing a NoMethodError when `double.stub(:foo).and_return(a, b)`
|
951
|
+
had been setup before (Myron Marston).
|
952
|
+
* Infinite loop generated by using `any_instance` and `dup`. (Sidu Ponnappa @kaiwren)
|
953
|
+
* `double.should_receive(:foo).at_least(:once).and_return(a)` always returns a
|
954
|
+
even if `:foo` is already stubbed.
|
955
|
+
* Prevent infinite loop when interpolating a null double into a string
|
956
|
+
as an integer (`"%i" % double.as_null_object`). (Myron Marston)
|
957
|
+
* Fix `should_receive` so that null object behavior (e.g. returning
|
958
|
+
self) is preserved if no implementation is given (Myron Marston).
|
959
|
+
* Fix `and_raise` so that it raises `RuntimeError` rather than
|
960
|
+
`Exception` by default, just like ruby does. (Andrew Marshall)
|
961
|
+
|
962
|
+
### 2.10.1 / 2012-05-05
|
963
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.10.0...v2.10.1)
|
964
|
+
|
965
|
+
Bug fixes
|
966
|
+
|
967
|
+
* fix regression of edge case behavior
|
968
|
+
(https://github.com/rspec/rspec-mocks/issues/132)
|
969
|
+
* fixed failure of `object.should_receive(:message).at_least(0).times.and_return value`
|
970
|
+
* fixed failure of `object.should_not_receive(:message).and_return value`
|
971
|
+
|
972
|
+
### 2.10.0 / 2012-05-03
|
973
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.9.0...v2.10.0)
|
974
|
+
|
975
|
+
Bug fixes
|
976
|
+
|
977
|
+
* fail fast when an `exactly` or `at_most` expectation is exceeded
|
978
|
+
|
979
|
+
### 2.9.0 / 2012-03-17
|
980
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.8.0...v2.9.0)
|
981
|
+
|
982
|
+
Enhancements
|
983
|
+
|
984
|
+
* Support order constraints across objects (preethiramdev)
|
985
|
+
|
986
|
+
Bug fixes
|
987
|
+
|
988
|
+
* Allow a `as_null_object` to be passed to `with`
|
989
|
+
* Pass proc to block passed to stub (Aubrey Rhodes)
|
990
|
+
* Initialize child message expectation args to match any args (#109 -
|
991
|
+
preethiramdev)
|
992
|
+
|
993
|
+
### 2.8.0 / 2012-01-04
|
994
|
+
|
995
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.8.0.rc2...v2.8.0)
|
996
|
+
|
997
|
+
No changes for this release. Just releasing with the other rspec gems.
|
998
|
+
|
999
|
+
### 2.8.0.rc2 / 2011-12-19
|
1000
|
+
|
1001
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.8.0.rc1...v2.8.0.rc2)
|
1002
|
+
|
1003
|
+
No changes for this release. Just releasing with the other rspec gems.
|
1004
|
+
|
1005
|
+
### 2.8.0.rc1 / 2011-11-06
|
1006
|
+
|
1007
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.7.0...v2.8.0.rc1)
|
1008
|
+
|
1009
|
+
Enhancements
|
1010
|
+
|
1011
|
+
* Eliminate Ruby warnings (Matijs van Zuijlen)
|
1012
|
+
|
1013
|
+
### 2.7.0 / 2011-10-16
|
1014
|
+
|
1015
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.6.0...v2.7.0)
|
1016
|
+
|
1017
|
+
Enhancements
|
1018
|
+
|
1019
|
+
* Use `__send__` rather than `send` (alextk)
|
1020
|
+
* Add support for `any_instance.stub_chain` (Sidu Ponnappa)
|
1021
|
+
* Add support for `any_instance` argument matching based on `with` (Sidu
|
1022
|
+
Ponnappa and Andy Lindeman)
|
1023
|
+
|
1024
|
+
Changes
|
1025
|
+
|
1026
|
+
* Check for `failure_message_for_should` or `failure_message` instead of
|
1027
|
+
`description` to detect a matcher (Tibor Claassen)
|
1028
|
+
|
1029
|
+
Bug fixes
|
1030
|
+
|
1031
|
+
* pass a hash to `any_instance.stub`. (Justin Ko)
|
1032
|
+
* allow `to_ary` to be called without raising `NoMethodError` (Mikhail
|
1033
|
+
Dieterle)
|
1034
|
+
* `any_instance` properly restores private methods (Sidu Ponnappa)
|
1035
|
+
|
1036
|
+
### 2.6.0 / 2011-05-12
|
1037
|
+
|
1038
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.5.0...v2.6.0)
|
1039
|
+
|
1040
|
+
Enhancements
|
1041
|
+
|
1042
|
+
* Add support for `any_instance.stub` and `any_instance.should_receive` (Sidu
|
1043
|
+
Ponnappa and Andy Lindeman)
|
1044
|
+
|
1045
|
+
Bug fixes
|
1046
|
+
|
1047
|
+
* fix bug in which multiple chains with shared messages ending in hashes failed
|
1048
|
+
to return the correct value
|
1049
|
+
|
1050
|
+
### 2.5.0 / 2011-02-05
|
1051
|
+
|
1052
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.4.0...v2.5.0)
|
1053
|
+
|
1054
|
+
Bug fixes
|
1055
|
+
|
1056
|
+
* message expectation counts now work in combination with a stub (Damian
|
1057
|
+
Nurzynski)
|
1058
|
+
* fix failure message when message received with incorrect args (Josep M.
|
1059
|
+
Bach)
|
1060
|
+
|
1061
|
+
### 2.4.0 / 2011-01-02
|
1062
|
+
|
1063
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.3.0...v2.4.0)
|
1064
|
+
|
1065
|
+
No functional changes in this release, which was made to align with the
|
1066
|
+
rspec-core-2.4.0 release.
|
1067
|
+
|
1068
|
+
### 2.3.0 / 2010-12-12
|
1069
|
+
|
1070
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.2.0...v2.3.0)
|
1071
|
+
|
1072
|
+
Bug fixes
|
1073
|
+
|
1074
|
+
* Fix our Marshal extension so that it does not interfere with objects that
|
1075
|
+
have their own `@mock_proxy` instance variable. (Myron Marston)
|
1076
|
+
|
1077
|
+
### 2.2.0 / 2010-11-28
|
1078
|
+
|
1079
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.1.0...v2.2.0)
|
1080
|
+
|
1081
|
+
Enhancements
|
1082
|
+
|
1083
|
+
* Added "rspec/mocks/standalone" for exploring the rspec-mocks in irb.
|
1084
|
+
|
1085
|
+
Bug fix
|
1086
|
+
|
1087
|
+
* Eliminate warning on splat args without parens (Gioele Barabucci)
|
1088
|
+
* Fix bug where `obj.should_receive(:foo).with(stub.as_null_object)` would pass
|
1089
|
+
with a false positive.
|
1090
|
+
|
1091
|
+
### 2.1.0 / 2010-11-07
|
1092
|
+
|
1093
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.0.1...v2.1.0)
|
1094
|
+
|
1095
|
+
Bug fixes
|
1096
|
+
|
1097
|
+
* Fix serialization of stubbed object (Josep M Bach)
|
1098
|
+
|
1099
|
+
### 2.0.0 / 2010-10-10
|
1100
|
+
|
1101
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.0.0.beta.22...v2.0.0)
|
1102
|
+
|
1103
|
+
### 2.0.0.rc / 2010-10-05
|
1104
|
+
|
1105
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.0.0.beta.22...v2.0.0.rc)
|
1106
|
+
|
1107
|
+
Enhancements
|
1108
|
+
|
1109
|
+
* support passing a block to an expectation block (Nicolas Braem)
|
1110
|
+
* `obj.should_receive(:msg) {|&block| ... }`
|
1111
|
+
|
1112
|
+
Bug fixes
|
1113
|
+
|
1114
|
+
* Fix YAML serialization of stub (Myron Marston)
|
1115
|
+
* Fix rdoc rake task (Hans de Graaff)
|
1116
|
+
|
1117
|
+
### 2.0.0.beta.22 / 2010-09-12
|
1118
|
+
|
1119
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.0.0.beta.20...v2.0.0.beta.22)
|
1120
|
+
|
1121
|
+
Bug fixes
|
1122
|
+
|
1123
|
+
* fixed regression that broke `obj.stub_chain(:a, :b => :c)`
|
1124
|
+
* fixed regression that broke `obj.stub_chain(:a, :b) { :c }`
|
1125
|
+
* `respond_to?` always returns true when using `as_null_object`
|