Diff of the two buildlogs: -- --- b1/build.log 2024-10-31 03:55:11.015861912 +0000 +++ b2/build.log 2024-10-31 03:56:33.604918790 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed Oct 30 15:53:48 -12 2024 -I: pbuilder-time-stamp: 1730346828 +I: Current time: Thu Dec 4 00:18:13 +14 2025 +I: pbuilder-time-stamp: 1764757093 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -44,52 +44,84 @@ dpkg-source: info: applying 0001-gemspecs-Drop-git-usage.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/2740164/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1158064/tmp/hooks/D01_modify_environment starting +debug: Running on codethink03-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Dec 3 10:18 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/1158064/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1158064/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="32" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.32(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='cd2531f4940c41caa51db35b7bac5f60' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='2740164' - PS1='# ' - PS2='> ' + INVOCATION_ID=364c3a5e20e04c5381bc524edf277a92 + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=1158064 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.oppVGwLn/pbuilderrc_Odmx --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.oppVGwLn/b1 --logfile b1/build.log ruby-rspec_3.13.0c0e0m0s1-2.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.oppVGwLn/pbuilderrc_DyKB --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.oppVGwLn/b2 --logfile b2/build.log ruby-rspec_3.13.0c0e0m0s1-2.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink02-arm64 6.1.0-26-cloud-arm64 #1 SMP Debian 6.1.112-1 (2024-09-30) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-26-cloud-arm64 #1 SMP Debian 6.1.112-1 (2024-09-30) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 4 21:30 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/2740164/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 4 2024 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1158064/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -323,7 +355,7 @@ Get: 168 http://deb.debian.org/debian trixie/main arm64 ruby-nokogiri arm64 1.16.4+dfsg-1 [256 kB] Get: 169 http://deb.debian.org/debian trixie/main arm64 ruby-rr all 3.1.0-1 [40.2 kB] Get: 170 http://deb.debian.org/debian trixie/main arm64 ruby-thread-order all 1.1.0-1.1 [5336 B] -Fetched 56.4 MB in 0s (160 MB/s) +Fetched 56.4 MB in 0s (164 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.12-minimal:arm64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 20067 files and directories currently installed.) @@ -889,8 +921,8 @@ Setting up tzdata (2024a-4) ... Current default time zone: 'Etc/UTC' -Local time is now: Thu Oct 31 03:54:19 UTC 2024. -Universal Time is now: Thu Oct 31 03:54:19 UTC 2024. +Local time is now: Wed Dec 3 10:18:40 UTC 2025. +Universal Time is now: Wed Dec 3 10:18:40 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up liberror-perl (0.17029-2) ... @@ -1039,7 +1071,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../ruby-rspec_3.13.0c0e0m0s1-2_source.changes +I: user script /srv/workspace/pbuilder/1158064/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/1158064/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../ruby-rspec_3.13.0c0e0m0s1-2_source.changes dpkg-buildpackage: info: source package ruby-rspec dpkg-buildpackage: info: source version 3.13.0c0e0m0s1-2 dpkg-buildpackage: info: source distribution unstable @@ -1078,13 +1114,13 @@ dh_prep -O--buildsystem=ruby dh_auto_install -O--buildsystem=ruby dh_ruby --install /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/tmp -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241030-2755687-4tt678/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20251204-1175147-1y5apd/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash Successfully built RubyGem Name: rspec Version: 3.13.0 File: rspec-3.13.0.gem -/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-rspec/usr/share/rubygems-integration/all /tmp/d20241030-2755687-4tt678/rspec-3.13.0.gem +/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-rspec/usr/share/rubygems-integration/all /tmp/d20251204-1175147-1y5apd/rspec-3.13.0.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec/usr/share/rubygems-integration/all/gems/rspec-3.13.0/lib/rspec.rb /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec/usr/share/rubygems-integration/all/gems/rspec-3.13.0/lib/rspec/version.rb @@ -1103,7 +1139,7 @@ find lib/ -type d -empty -delete cd - cd - -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241030-2755687-7p2xil/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20251204-1175147-e5cdiy/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash WARNING: open-ended dependency on cucumber (>= 1.3, development) is not recommended if cucumber is semantically versioned, use: @@ -1113,7 +1149,7 @@ Name: rspec-core Version: 3.13.0 File: rspec-core-3.13.0.gem -/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-rspec-core/usr/share/rubygems-integration/all /tmp/d20241030-2755687-7p2xil/rspec-core-3.13.0.gem +/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-rspec-core/usr/share/rubygems-integration/all /tmp/d20251204-1175147-e5cdiy/rspec-core-3.13.0.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-core/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-core/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib/rspec/autorun.rb @@ -1210,7 +1246,7 @@ cd - cd - Rewriting shebang line of /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-core/usr/bin/rspec -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241030-2755687-olnwt6/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20251204-1175147-xq94hh/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash WARNING: open-ended dependency on cucumber (>= 1.3, development) is not recommended if cucumber is semantically versioned, use: @@ -1223,7 +1259,7 @@ Name: rspec-expectations Version: 3.13.0 File: rspec-expectations-3.13.0.gem -/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-rspec-expectations/usr/share/rubygems-integration/all /tmp/d20241030-2755687-olnwt6/rspec-expectations-3.13.0.gem +/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-rspec-expectations/usr/share/rubygems-integration/all /tmp/d20251204-1175147-xq94hh/rspec-expectations-3.13.0.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-expectations/usr/share/rubygems-integration/all/gems/rspec-expectations-3.13.0/lib/rspec/expectations.rb /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-expectations/usr/share/rubygems-integration/all/gems/rspec-expectations-3.13.0/lib/rspec/expectations/block_snippet_extractor.rb @@ -1289,7 +1325,7 @@ find lib/ -type d -empty -delete cd - cd - -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241030-2755687-8389gc/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20251204-1175147-oh9lvr/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash WARNING: open-ended dependency on rake (> 10.0.0, development) is not recommended if rake is semantically versioned, use: @@ -1302,7 +1338,7 @@ Name: rspec-mocks Version: 3.13.0 File: rspec-mocks-3.13.0.gem -/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-rspec-mocks/usr/share/rubygems-integration/all /tmp/d20241030-2755687-8389gc/rspec-mocks-3.13.0.gem +/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-rspec-mocks/usr/share/rubygems-integration/all /tmp/d20251204-1175147-oh9lvr/rspec-mocks-3.13.0.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-mocks/usr/share/rubygems-integration/all/gems/rspec-mocks-3.13.0/lib/rspec/mocks.rb /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-mocks/usr/share/rubygems-integration/all/gems/rspec-mocks-3.13.0/lib/rspec/mocks/any_instance.rb @@ -1360,7 +1396,7 @@ find lib/ -type d -empty -delete cd - cd - -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241030-2755687-x9ebs7/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20251204-1175147-7gx426/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash WARNING: open-ended dependency on rake (> 10.0.0, development) is not recommended if rake is semantically versioned, use: @@ -1370,7 +1406,7 @@ Name: rspec-support Version: 3.13.1 File: rspec-support-3.13.1.gem -/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-rspec-support/usr/share/rubygems-integration/all /tmp/d20241030-2755687-x9ebs7/rspec-support-3.13.1.gem +/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-rspec-support/usr/share/rubygems-integration/all /tmp/d20251204-1175147-7gx426/rspec-support-3.13.1.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-support/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib/rspec/support.rb /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-support/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib/rspec/support/caller_filter.rb @@ -1437,7 +1473,7 @@ └──────────────────────────────────────────────────────────────────────────────┘ RUBYLIB=. GEM_PATH=/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-core/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-expectations/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-mocks/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-support/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/aarch64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/aarch64-linux-gnu/rubygems-integration/3.1.0 ruby3.1 debian/ruby-tests.rb -PATH=/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/rspec-core/exe:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games +PATH=/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/rspec-core/exe:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path RUBYLIB=.:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/rspec-core/lib:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/rspec-expectations/lib:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/rspec-mocks/lib:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/rspec-support/lib ∙∙∙∙∙∙∙∙∙∙∙∙∙∙ @@ -1448,8 +1484,8 @@ /usr/bin/ruby3.1 -S rspec spec/integration/bisect_runners_spec.rb spec/integration/bisect_spec.rb spec/integration/fail_if_no_examples_spec.rb spec/integration/failed_line_detection_spec.rb spec/integration/filtering_spec.rb spec/integration/order_spec.rb spec/integration/output_stream_spec.rb spec/integration/persistence_failures_spec.rb spec/integration/suite_hooks_errors_spec.rb spec/rspec/core/aggregate_failures_spec.rb spec/rspec/core/backtrace_formatter_spec.rb spec/rspec/core/bisect/coordinator_spec.rb spec/rspec/core/bisect/example_minimizer_spec.rb spec/rspec/core/bisect/server_spec.rb spec/rspec/core/bisect/shell_command_spec.rb spec/rspec/core/bisect/shell_runner_spec.rb spec/rspec/core/bisect/utilities_spec.rb spec/rspec/core/configuration/only_failures_support_spec.rb spec/rspec/core/configuration_options_spec.rb spec/rspec/core/configuration_spec.rb spec/rspec/core/did_you_mean_spec.rb spec/rspec/core/drb_spec.rb spec/rspec/core/dsl_spec.rb spec/rspec/core/example_execution_result_spec.rb spec/rspec/core/example_group_constants_spec.rb spec/rspec/core/example_group_spec.rb spec/rspec/core/example_spec.rb spec/rspec/core/example_status_persister_spec.rb spec/rspec/core/failed_example_notification_spec.rb spec/rspec/core/filter_manager_spec.rb spec/rspec/core/filterable_item_repository_spec.rb spec/rspec/core/formatters/base_text_formatter_spec.rb spec/rspec/core/formatters/console_codes_spec.rb spec/rspec/core/formatters/deprecation_formatter_spec.rb spec/rspec/core/formatters/documentation_formatter_spec.rb spec/rspec/core/formatters/exception_presenter_spec.rb spec/rspec/core/formatters/failure_list_formatter_spec.rb spec/rspec/core/formatters/fallback_message_formatter_spec.rb spec/rspec/core/formatters/helpers_spec.rb spec/rspec/core/formatters/html_formatter_spec.rb spec/rspec/core/formatters/html_snippet_extractor_spec.rb spec/rspec/core/formatters/json_formatter_spec.rb spec/rspec/core/formatters/profile_formatter_spec.rb spec/rspec/core/formatters/progress_formatter_spec.rb spec/rspec/core/formatters/snippet_extractor_spec.rb spec/rspec/core/formatters/syntax_highlighter_spec.rb spec/rspec/core/formatters_spec.rb spec/rspec/core/hooks_filtering_spec.rb spec/rspec/core/hooks_spec.rb spec/rspec/core/invocations_spec.rb spec/rspec/core/memoized_helpers_spec.rb spec/rspec/core/metadata_filter_spec.rb spec/rspec/core/metadata_spec.rb spec/rspec/core/notifications_spec.rb spec/rspec/core/option_parser_spec.rb spec/rspec/core/ordering_spec.rb spec/rspec/core/output_wrapper_spec.rb spec/rspec/core/pending_example_spec.rb spec/rspec/core/pending_spec.rb spec/rspec/core/profiler_spec.rb spec/rspec/core/project_initializer_spec.rb spec/rspec/core/rake_task_spec.rb spec/rspec/core/reporter_spec.rb spec/rspec/core/resources/a_spec.rb spec/rspec/core/resources/acceptance/foo_spec.rb spec/rspec/core/rspec_matchers_spec.rb spec/rspec/core/ruby_project_spec.rb spec/rspec/core/runner_spec.rb spec/rspec/core/set_spec.rb spec/rspec/core/shared_context_spec.rb spec/rspec/core/shared_example_group_spec.rb spec/rspec/core/suite_hooks_spec.rb spec/rspec/core/warnings_spec.rb spec/rspec/core/world_spec.rb Run options: exclude {:ruby=>#} -Randomized with seed 28484 -..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*..................................*................................................................................................................................................................*....................................... +Randomized with seed 33353 +................................................................................................................................................................................................................................................................................................................................................................................................*.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*............................................................................................................................................................................................................................................................................*...................................................................... Pending: (Failures listed here are expected and do not affect your suite's status) @@ -1457,11 +1493,7 @@ # lib/mathn.rb is deprecated in Ruby 2.2 # ./spec/rspec/core/formatters/html_formatter_spec.rb:68 - 2) RSpec::Core::Formatters::Helpers format duration with mathn loaded returns 'x minutes xx.x seconds' formatted string - # lib/mathn.rb is deprecated in Ruby 2.2 - # ./spec/rspec/core/formatters/helpers_spec.rb:64 - - 3) RSpec::Core::Metadata for an example points :example_group to the same hash object as other examples in the same group + 2) RSpec::Core::Metadata for an example points :example_group to the same hash object as other examples in the same group # Cannot maintain this and provide full `:example_group` backwards compatibility (see GH #1490):( Failure/Error: expect(b[:description]).to eq("new description") @@ -1470,10 +1502,14 @@ (compared using ==) -Finished in 12.81 seconds (files took 0.83429 seconds to load) + 3) RSpec::Core::Formatters::Helpers format duration with mathn loaded returns 'x minutes xx.x seconds' formatted string + # lib/mathn.rb is deprecated in Ruby 2.2 + # ./spec/rspec/core/formatters/helpers_spec.rb:64 + +Finished in 12.36 seconds (files took 0.83979 seconds to load) 2198 examples, 0 failures, 3 pending -Randomized with seed 28484 +Randomized with seed 33353 cd - @@ -1484,50 +1520,49 @@ cd rspec-expectations /usr/bin/ruby3.1 -S rspec spec/rspec/expectations/block_snippet_extractor_spec.rb spec/rspec/expectations/configuration_spec.rb spec/rspec/expectations/expectation_target_spec.rb spec/rspec/expectations/extensions/kernel_spec.rb spec/rspec/expectations/fail_with_spec.rb spec/rspec/expectations/failure_aggregator_spec.rb spec/rspec/expectations/handler_spec.rb spec/rspec/expectations/minitest_integration_spec.rb spec/rspec/expectations/syntax_spec.rb spec/rspec/expectations_spec.rb spec/rspec/matchers/aliased_matcher_spec.rb spec/rspec/matchers/aliases_spec.rb spec/rspec/matchers/built_in/all_spec.rb spec/rspec/matchers/built_in/base_matcher_spec.rb spec/rspec/matchers/built_in/be_between_spec.rb spec/rspec/matchers/built_in/be_instance_of_spec.rb spec/rspec/matchers/built_in/be_kind_of_spec.rb spec/rspec/matchers/built_in/be_spec.rb spec/rspec/matchers/built_in/be_within_spec.rb spec/rspec/matchers/built_in/captures_spec.rb spec/rspec/matchers/built_in/change_spec.rb spec/rspec/matchers/built_in/compound_spec.rb spec/rspec/matchers/built_in/contain_exactly_spec.rb spec/rspec/matchers/built_in/cover_spec.rb spec/rspec/matchers/built_in/eq_spec.rb spec/rspec/matchers/built_in/eql_spec.rb spec/rspec/matchers/built_in/equal_spec.rb spec/rspec/matchers/built_in/exist_spec.rb spec/rspec/matchers/built_in/has_spec.rb spec/rspec/matchers/built_in/have_attributes_spec.rb spec/rspec/matchers/built_in/include_spec.rb spec/rspec/matchers/built_in/match_spec.rb spec/rspec/matchers/built_in/operators_spec.rb spec/rspec/matchers/built_in/output_spec.rb spec/rspec/matchers/built_in/raise_error_spec.rb spec/rspec/matchers/built_in/respond_to_spec.rb spec/rspec/matchers/built_in/satisfy_spec.rb spec/rspec/matchers/built_in/start_and_end_with_spec.rb spec/rspec/matchers/built_in/throw_symbol_spec.rb spec/rspec/matchers/built_in/yield_spec.rb spec/rspec/matchers/composable_spec.rb spec/rspec/matchers/define_negated_matcher_spec.rb spec/rspec/matchers/description_generation_spec.rb spec/rspec/matchers/dsl_spec.rb spec/rspec/matchers/english_phrasing_spec.rb spec/rspec/matchers/legacy_spec.rb spec/rspec/matchers/multi_matcher_diff_spec.rb spec/rspec/matchers_spec.rb -Randomized with seed 38062 -........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................********................................................................................................................................................................................................................................................................................................................................................................................................................................................................fatal: not a git repository (or any of the parent directories): .git -................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ +Randomized with seed 64739 +............................................................................................................................................................................................................................................................................********............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ Pending: (Failures listed here are expected and do not affect your suite's status) - 1) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target passes if target has the expected as a key + 1) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target provides a valid diff for fuzzy matchers # around hook at ./spec/rspec/matchers/built_in/include_spec.rb:376 did not execute the example - # ./spec/rspec/matchers/built_in/include_spec.rb:74 + # ./spec/rspec/matchers/built_in/include_spec.rb:129 - 2) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target fails if target does not include expected + 2) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target provides a valid diff # around hook at ./spec/rspec/matchers/built_in/include_spec.rb:376 did not execute the example - # ./spec/rspec/matchers/built_in/include_spec.rb:82 + # ./spec/rspec/matchers/built_in/include_spec.rb:101 - 3) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target does not support count constraint + 3) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target passes if target has the expected as a key fuzzily matched # around hook at ./spec/rspec/matchers/built_in/include_spec.rb:376 did not execute the example - # ./spec/rspec/matchers/built_in/include_spec.rb:157 + # ./spec/rspec/matchers/built_in/include_spec.rb:78 - 4) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target passes if target has the expected as a key fuzzily matched + 4) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target does not support count constraint # around hook at ./spec/rspec/matchers/built_in/include_spec.rb:376 did not execute the example - # ./spec/rspec/matchers/built_in/include_spec.rb:78 + # ./spec/rspec/matchers/built_in/include_spec.rb:157 - 5) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target provides a valid diff + 5) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target fails if target does not include expected # around hook at ./spec/rspec/matchers/built_in/include_spec.rb:376 did not execute the example - # ./spec/rspec/matchers/built_in/include_spec.rb:101 + # ./spec/rspec/matchers/built_in/include_spec.rb:82 - 6) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target fails if target doesn't have a key and we expect nil + 6) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target passes if target has the expected as a key # around hook at ./spec/rspec/matchers/built_in/include_spec.rb:376 did not execute the example - # ./spec/rspec/matchers/built_in/include_spec.rb:89 + # ./spec/rspec/matchers/built_in/include_spec.rb:74 7) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target works even when an entry in the hash overrides #send # around hook at ./spec/rspec/matchers/built_in/include_spec.rb:376 did not execute the example # ./spec/rspec/matchers/built_in/include_spec.rb:95 - 8) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target provides a valid diff for fuzzy matchers + 8) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target fails if target doesn't have a key and we expect nil # around hook at ./spec/rspec/matchers/built_in/include_spec.rb:376 did not execute the example - # ./spec/rspec/matchers/built_in/include_spec.rb:129 + # ./spec/rspec/matchers/built_in/include_spec.rb:89 22 deprecation warnings total -Finished in 3.68 seconds (files took 0.55983 seconds to load) +Finished in 3.88 seconds (files took 0.67219 seconds to load) 2400 examples, 0 failures, 8 pending -Randomized with seed 38062 +Randomized with seed 64739 cd - @@ -1539,7171 +1574,7171 @@ /usr/bin/ruby3.1 -S rspec spec/integration/rails_support_spec.rb spec/rspec/mocks/and_call_original_spec.rb spec/rspec/mocks/and_invoke_spec.rb spec/rspec/mocks/and_return_spec.rb spec/rspec/mocks/and_wrap_original_spec.rb spec/rspec/mocks/and_yield_spec.rb spec/rspec/mocks/any_instance/message_chains_spec.rb spec/rspec/mocks/any_instance_spec.rb spec/rspec/mocks/argument_matchers_spec.rb spec/rspec/mocks/array_including_matcher_spec.rb spec/rspec/mocks/at_least_spec.rb spec/rspec/mocks/at_most_spec.rb spec/rspec/mocks/before_all_spec.rb spec/rspec/mocks/block_return_value_spec.rb spec/rspec/mocks/combining_implementation_instructions_spec.rb spec/rspec/mocks/configuration_spec.rb spec/rspec/mocks/diffing_spec.rb spec/rspec/mocks/double_spec.rb spec/rspec/mocks/error_generator_spec.rb spec/rspec/mocks/example_methods_spec.rb spec/rspec/mocks/expiration_spec.rb spec/rspec/mocks/failure_notification_spec.rb spec/rspec/mocks/formatting_spec.rb spec/rspec/mocks/hash_excluding_matcher_spec.rb spec/rspec/mocks/hash_including_matcher_spec.rb spec/rspec/mocks/instance_method_stasher_spec.rb spec/rspec/mocks/marshal_extension_spec.rb spec/rspec/mocks/matchers/have_received_spec.rb spec/rspec/mocks/matchers/receive_message_chain_spec.rb spec/rspec/mocks/matchers/receive_messages_spec.rb spec/rspec/mocks/matchers/receive_spec.rb spec/rspec/mocks/message_expectation_string_representation_spec.rb spec/rspec/mocks/methods_spec.rb spec/rspec/mocks/mock_expectation_error_spec.rb spec/rspec/mocks/mock_ordering_spec.rb spec/rspec/mocks/modifying_invoked_expectations_spec.rb spec/rspec/mocks/multiple_invoke_handler_spec.rb spec/rspec/mocks/multiple_return_value_spec.rb spec/rspec/mocks/mutate_const_spec.rb spec/rspec/mocks/nil_expectation_warning_spec.rb spec/rspec/mocks/null_object_double_spec.rb spec/rspec/mocks/once_counts_spec.rb spec/rspec/mocks/order_group_spec.rb spec/rspec/mocks/partial_double_spec.rb spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb spec/rspec/mocks/precise_counts_spec.rb spec/rspec/mocks/reraising_eager_raises_spec.rb spec/rspec/mocks/serialization_spec.rb spec/rspec/mocks/should_syntax_spec.rb spec/rspec/mocks/space_spec.rb spec/rspec/mocks/spy_spec.rb spec/rspec/mocks/standalone_spec.rb spec/rspec/mocks/stash_spec.rb spec/rspec/mocks/stub_chain_spec.rb spec/rspec/mocks/stub_implementation_spec.rb spec/rspec/mocks/stub_spec.rb spec/rspec/mocks/stubbed_message_expectations_spec.rb spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb spec/rspec/mocks/syntax_spec.rb spec/rspec/mocks/test_double_spec.rb spec/rspec/mocks/thrice_counts_spec.rb spec/rspec/mocks/to_ary_spec.rb spec/rspec/mocks/twice_counts_spec.rb spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb spec/rspec/mocks/verifying_doubles/construction_spec.rb spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb spec/rspec/mocks/verifying_doubles/naming_spec.rb spec/rspec/mocks/verifying_doubles/object_double_spec.rb spec/rspec/mocks_spec.rb Run options: exclude {:ordered_and_vague_counts_unsupported=>true} -Randomized with seed 52424 +Randomized with seed 60294 ************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************* Pending: (Failures listed here are expected and do not affect your suite's status) - 1) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect_any_instance_of(...).not_to have_received fails because we dont want to support it + 1) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks on any_instance before verifying a double # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:653 + # ./spec/rspec/mocks/partial_double_spec.rb:529 - 2) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received does not allow twice to be used because it creates confusion + 2) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks before verifying an allowance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/partial_double_spec.rb:432 - 3) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received passes when the double has not received the given message + 3) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks on any_instance before verifying a double allowance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:571 + # ./spec/rspec/mocks/partial_double_spec.rb:517 - 4) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received does not allow exactly to be used because it creates confusion + 4) when verify_partial_doubles configuration option is set allows private methods to be expected on any_instance expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/partial_double_spec.rb:512 - 5) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received does not allow at_most to be used because it creates confusion + 5) when verify_partial_doubles configuration option is set can be temporarily supressed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/partial_double_spec.rb:385 - 6) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received does not allow times to be used because it creates confusion + 6) when verify_partial_doubles configuration option is set avoids deadlocks when a proxy is accessed from within a `before_verifying_doubles` callback # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/partial_double_spec.rb:443 - 7) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received fails when the method has not been previously stubbed + 7) when verify_partial_doubles configuration option is set allows private methods to be expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:595 + # ./spec/rspec/mocks/partial_double_spec.rb:380 - 8) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received does not allow once to be used because it creates confusion + 8) when verify_partial_doubles configuration option is set does not allow a non-existing method to be expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/partial_double_spec.rb:487 - 9) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received fails when the double has received the given message + 9) when verify_partial_doubles configuration option is set allows stubbing and calls the stubbed implementation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:576 + # ./spec/rspec/mocks/partial_double_spec.rb:572 - 10) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received does not allow at_least to be used because it creates confusion + 10) when verify_partial_doubles configuration option is set verifies arity range when receiving a message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/partial_double_spec.rb:556 - 11) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received notifies failures via rspec-support's failure notification system + 11) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks before verifying an expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:584 + # ./spec/rspec/mocks/partial_double_spec.rb:421 - 12) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received with fails when the given args match the args used with the message + 12) when verify_partial_doubles configuration option is set temporarily supressing partial doubles does not affect normal verifying doubles # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:609 + # ./spec/rspec/mocks/partial_double_spec.rb:413 - 13) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received with passes when the given args do not match the args used with the message + 13) when verify_partial_doubles configuration option is set does not allow a non-existing method to be called on any_instance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:604 + # ./spec/rspec/mocks/partial_double_spec.rb:541 - 14) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received generates a useful description + 14) when verify_partial_doubles configuration option is set verifies arity range when matching arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:183 + # ./spec/rspec/mocks/partial_double_spec.rb:497 - 15) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received fails when a null object has not received the given message + 15) when verify_partial_doubles configuration option is set allows the mock to raise an error with yield # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:54 + # ./spec/rspec/mocks/partial_double_spec.rb:566 - 16) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received forwards any block passed during method invocation to the `have_received` block + 16) when verify_partial_doubles configuration option is set allows a method defined with method_missing to be expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:146 + # ./spec/rspec/mocks/partial_double_spec.rb:502 - 17) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received fails when the double has not received the given message + 17) when verify_partial_doubles configuration option is set allows valid methods to be expected on any_instance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:35 + # ./spec/rspec/mocks/partial_double_spec.rb:507 - 18) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received fails if expectations against the yielded arguments fail + 18) when verify_partial_doubles configuration option is set does not allow a spy on unimplemented method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:124 + # ./spec/rspec/mocks/partial_double_spec.rb:491 - 19) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received passes if expectations against the yielded arguments pass + 19) when verify_partial_doubles configuration option is set allows valid methods to be expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:100 + # ./spec/rspec/mocks/partial_double_spec.rb:375 - 20) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received fails when the method has been mocked + 20) when verify_partial_doubles configuration option is set does not allow missing methods to be called on any_instance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:70 + # ./spec/rspec/mocks/partial_double_spec.rb:547 - 21) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received fails when the method has not been previously stubbed + 21) when verify_partial_doubles configuration option is set can be temporarily supressed and nested # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:62 + # ./spec/rspec/mocks/partial_double_spec.rb:398 - 22) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received takes a curly-bracket block and yields the arguments given to the stubbed method call + 22) when verify_partial_doubles configuration option is set when `.new` is stubbed uses the method signature from `#initialize` for arg verification # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:80 + # ./spec/rspec/mocks/partial_double_spec.rb:582 - 23) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received passes when the double has received the given message + 23) when verify_partial_doubles configuration option is set when `.new` is stubbed on a class that has redefined `new` uses the method signature of the redefined `new` for arg verification # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:25 + # ./spec/rspec/mocks/partial_double_spec.rb:588 - 24) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received notifies failures via rspec-support's failure notification system + 24) when verify_partial_doubles configuration option is set when `.new` is stubbed on a class with a private `new` uses the method signature from `#initialize` for arg verification # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:43 + # ./spec/rspec/mocks/partial_double_spec.rb:611 - 25) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received gives precedence to a `{ ... }` block when both forms are provided since that form actually binds to `receive` + 25) when verify_partial_doubles configuration option is set when `.new` is stubbed on a class that has redefined `self.method` allows the stubbing of :new # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:134 + # ./spec/rspec/mocks/partial_double_spec.rb:640 - 26) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received produces an error message that matches the expected method if another method was called + 26) when verify_partial_doubles configuration option is set when `.new` is stubbed on a class with a twice-aliased `new` uses the method signature from `#initialize` for arg verification # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:195 + # ./spec/rspec/mocks/partial_double_spec.rb:626 - 27) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received passes if expectations against yielded keyword arguments pass + 27) when verify_partial_doubles configuration option is set when `.new` is stubbed on a class that has undefined `new` prevents it from being stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:111 + # ./spec/rspec/mocks/partial_double_spec.rb:599 - 28) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received can generate a description after mocks have been torn down (e.g. when rspec-core requests it) + 28) when verify_partial_doubles configuration option is set for a class only runs the `before_verifying_doubles` callback for the class (not for superclasses) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:188 + # ./spec/rspec/mocks/partial_double_spec.rb:462 - 29) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received passes when a null object has received the given message + 29) when verify_partial_doubles configuration option is set for a class can be temporarily supressed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:30 + # ./spec/rspec/mocks/partial_double_spec.rb:474 - 30) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received takes a do-end block and yields the arguments given to the stubbed method call + 30) Partially mocking an object that defines ==, after another mock has been defined does not raise an error when stubbing the object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:90 + # ./spec/rspec/mocks/partial_double_spec.rb:268 - 31) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received resets expectations on class methods when mocks are reset + 31) Failure notification includes the line of future expectation in the notification for an unreceived message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:156 + # ./spec/rspec/mocks/failure_notification_spec.rb:16 - 32) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts thrice fails when the message was received more than three times + 32) Failure notification uses the rspec-support notifier to support `aggregate_failures` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:430 + # ./spec/rspec/mocks/failure_notification_spec.rb:8 - 33) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts thrice passes when the message was received thrice + 33) Failure notification does not allow a double to miscount the number of times a message was received when a failure is notified in an alternate way # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:411 + # ./spec/rspec/mocks/failure_notification_spec.rb:24 - 34) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts thrice fails when the message was received less than three times + 34) Failure notification when using `aggregate_failures` spy failures for unreceived messages are reported correctly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:420 + # ./spec/rspec/mocks/failure_notification_spec.rb:34 - 35) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts at_least passes when the message was received more times + 35) Failure notification when using `aggregate_failures` failing negative expectations are only notified once # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:327 + # ./spec/rspec/mocks/failure_notification_spec.rb:58 - 36) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts at_least passes when the message was received the given number of times + 36) Failure notification when using `aggregate_failures` spy failures for messages received with unexpected args are reported correctly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:323 + # ./spec/rspec/mocks/failure_notification_spec.rb:45 - 37) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts at_least fails when the message was received fewer times + 37) RSpec::Mocks::AnyInstance::MessageChains knows if a method does not have an expectation set on it # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:331 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:7 - 38) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts when constrained by `with` only considers the calls with matching args + 38) RSpec::Mocks::AnyInstance::MessageChains knows if a method has an expectation set on it # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:215 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:12 - 39) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts when constrained by `with` when constrained with grouped arguments `with` does not group counts on repeated arguments for a single message + 39) RSpec::Mocks::AnyInstance::MessageChains can remove all stub chains # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:285 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:18 - 40) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts when constrained by `with` when constrained with grouped arguments `with` includes single arguments based on the method call that included them + 40) RSpec::Mocks::AnyInstance::MessageChains creating stub chains allows multiple stub chains for a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:264 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:33 - 41) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts when constrained by `with` when constrained with grouped arguments `with` groups the "got" arguments based on the method call that included them + 41) RSpec::Mocks::AnyInstance::MessageChains creating stub chains understands how to add a stub chain for a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:247 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:28 - 42) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts when constrained by `with` when constrained with grouped arguments `with` keeps the array combinations distinguished in the group + 42) RSpec::Mocks::Space only adds an instance once # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:273 + # ./spec/rspec/mocks/space_spec.rb:120 - 43) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts when constrained by `with` when the message is received without any args matching includes unmatched args in the error message + 43) RSpec::Mocks::Space can be diffed in a failure when it has references to an error generator via a proxy # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:221 + # ./spec/rspec/mocks/space_spec.rb:229 - 44) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts when constrained by `with` when the message is received too few times includes the counts of calls with matching args in the error message + 44) RSpec::Mocks::Space tracks proxies in parent and child space separately # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:239 + # ./spec/rspec/mocks/space_spec.rb:108 - 45) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts when constrained by `with` when the message is received too many times includes the counts of calls with matching args in the error message + 45) RSpec::Mocks::Space raises ArgumentError with message if object is symbol # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:231 + # ./spec/rspec/mocks/space_spec.rb:241 - 46) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts once fails when the message was received twice + 46) RSpec::Mocks::Space#registered? returns false if not registered in this or a parent space # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:369 + # ./spec/rspec/mocks/space_spec.rb:176 - 47) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts once passes when the message was received once + 47) RSpec::Mocks::Space#registered? returns true if registered in this space # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:355 + # ./spec/rspec/mocks/space_spec.rb:166 - 48) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts once fails when the message was never received + 48) RSpec::Mocks::Space#registered? returns true if registered in a parent space # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:361 + # ./spec/rspec/mocks/space_spec.rb:171 - 49) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts exactly fails when the message was received more times than expected + 49) RSpec::Mocks::Space#reset_all resets all mocks within # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:301 + # ./spec/rspec/mocks/space_spec.rb:50 - 50) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts exactly passes when the message was received the given number of times + 50) RSpec::Mocks::Space#reset_all allows Array#reverse to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:297 + # ./spec/rspec/mocks/space_spec.rb:61 - 51) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts exactly fails when the message was received fewer times + 51) RSpec::Mocks::Space#verify_all verifies all any_instance recorders within # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:315 + # ./spec/rspec/mocks/space_spec.rb:25 - 52) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts twice passes when the message was received twice + 52) RSpec::Mocks::Space#verify_all verifies all mocks within # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:381 + # ./spec/rspec/mocks/space_spec.rb:9 - 53) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts twice fails when the message was received once + 53) RSpec::Mocks::Space#verify_all does not reset the proxies (as that should be delayed until reset_all) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:389 + # ./spec/rspec/mocks/space_spec.rb:39 - 54) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts twice fails when the message was received thrice + 54) RSpec::Mocks::Space#constant_mutator_for can still return a mutator from a parent context # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:398 + # ./spec/rspec/mocks/space_spec.rb:192 - 55) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts at_most passes when the message was received fewer times + 55) RSpec::Mocks::Space#constant_mutator_for returns the mutator for the given const name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:343 + # ./spec/rspec/mocks/space_spec.rb:182 - 56) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts at_most fails when the message was received more times + 56) RSpec::Mocks::Space#proxies_of(klass) returns only the proxies whose object is an instance of the given class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:347 + # ./spec/rspec/mocks/space_spec.rb:86 - 57) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts at_most passes when the message was received the given number of times + 57) RSpec::Mocks::Space#proxies_of(klass) looks in the parent space for matching proxies # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:339 + # ./spec/rspec/mocks/space_spec.rb:97 - 58) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received with passes when the given args match the args used with the message + 58) RSpec::Mocks::Space#proxies_of(klass) returns proxies # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:169 + # ./spec/rspec/mocks/space_spec.rb:69 - 59) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received with fails when the given args do not match the args used with the message + 59) RSpec::Mocks::Space#proxy_for returns the proxy for the given object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:174 + # ./spec/rspec/mocks/space_spec.rb:138 - 60) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received ordered passes when the messages were received in order + 60) RSpec::Mocks::Space#proxy_for does not store a parent's proxy in the child space # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:447 + # ./spec/rspec/mocks/space_spec.rb:154 - 61) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received ordered fails with exact receive counts when received out of order + 61) RSpec::Mocks::Space#proxy_for can still return a proxy from a parent context # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:484 + # ./spec/rspec/mocks/space_spec.rb:147 - 62) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received ordered passes with exact receive counts when received in order + 62) RSpec::Mocks::Space#any_instance_recorder_for can still return a recorder from a parent context # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:455 + # ./spec/rspec/mocks/space_spec.rb:212 - 63) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received ordered fails when the messages are received out of order + 63) RSpec::Mocks::Space#any_instance_recorder_for does not store a parent's proxy in the child space # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:517 + # ./spec/rspec/mocks/space_spec.rb:219 - 64) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received ordered when used on individually allowed messages passes when the messages were received in order + 64) RSpec::Mocks::Space#any_instance_recorder_for returns the recorder for the given class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:555 + # ./spec/rspec/mocks/space_spec.rb:206 - 65) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received ordered when used on individually allowed messages fails when the messages are received out of order + 65) RSpec::Mocks::Space#ensure_registered does not store a parent's proxy in the child space # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:560 + # ./spec/rspec/mocks/space_spec.rb:154 - 66) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received ordered when used with `with` passes when the order lines up + 66) RSpec::Mocks::Space#ensure_registered returns the proxy for the given object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:533 + # ./spec/rspec/mocks/space_spec.rb:138 - 67) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received ordered when used with `with` fails when the order is not matched + 67) RSpec::Mocks::Space#ensure_registered can still return a proxy from a parent context # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:538 + # ./spec/rspec/mocks/space_spec.rb:147 - 68) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available allow(...).to have_received fails because it's nonsensical + 68) argument matchers matching hash_excluding handles non matching instances nicely # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:629 + # ./spec/rspec/mocks/argument_matchers_spec.rb:269 - 69) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available allow_any_instance_of(...).to have_received fails because it's nonsensical + 69) argument matchers matching hash_excluding matches hash with hash_excluding same hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:637 + # ./spec/rspec/mocks/argument_matchers_spec.rb:264 - 70) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect_any_instance_of(...).to have_received fails because we dont want to support it + 70) argument matchers matching hash_including matches hash with hash_including same hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:645 + # ./spec/rspec/mocks/argument_matchers_spec.rb:250 - 71) .allow_message does not get confused when the string and symbol message form are both used + 71) argument matchers matching hash_including fails hash_including with missing key # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:36 + # ./spec/rspec/mocks/argument_matchers_spec.rb:255 - 72) .allow_message does not set an expectation that the message will be received + 72) argument matchers matching handling arbitrary matchers matches against a Matcher # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:31 + # ./spec/rspec/mocks/argument_matchers_spec.rb:345 - 73) .allow_message sets up message allowance with params and return value + 73) argument matchers matching handling arbitrary matchers fails when given an arbitrary object that returns false from #=== # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:16 + # ./spec/rspec/mocks/argument_matchers_spec.rb:352 - 74) .allow_message supports block implementations + 74) argument matchers matching handling arbitrary matchers matches any arbitrary object using #=== # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:26 + # ./spec/rspec/mocks/argument_matchers_spec.rb:337 - 75) .allow_message sets up basic message allowance + 75) argument matchers matching kind_of handles a class thats overridden === # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:6 + # ./spec/rspec/mocks/argument_matchers_spec.rb:53 - 76) .allow_message when target cannot be proxied raises ArgumentError with message + 76) argument matchers matching kind_of matches arguments that have defined `kind_of?` to return true # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:47 + # ./spec/rspec/mocks/argument_matchers_spec.rb:47 - 77) Method visibility when using partial mocks keeps private methods private + 77) argument matchers matching kind_of handles non matching kinds nicely # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:324 + # ./spec/rspec/mocks/argument_matchers_spec.rb:40 - 78) Method visibility when using partial mocks keeps protected methods protected + 78) argument matchers matching kind_of accepts fixnum as kind_of(Numeric) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:330 + # ./spec/rspec/mocks/argument_matchers_spec.rb:30 - 79) Method visibility when using partial mocks keeps public methods public + 79) argument matchers matching kind_of accepts float as kind_of(Numeric) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:318 + # ./spec/rspec/mocks/argument_matchers_spec.rb:35 - 80) Verified double naming class_double behaves like a named verifying double when a name is given as a symbol + 80) argument matchers matching array_excluding fails array_excluding when is the same array # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/argument_matchers_spec.rb:309 - 81) Verified double naming class_double behaves like a named verifying double when no name is given + 81) argument matchers matching array_excluding fails array_excluding when arg contains some elements # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/argument_matchers_spec.rb:316 - 82) Verified double naming class_double behaves like a named verifying double when a name is given as a string + 82) argument matchers matching array_excluding fails array_excluding when using the fuzzy matcher # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/argument_matchers_spec.rb:328 - 83) Verified double naming instance_double behaves like a named verifying double when no name is given + 83) argument matchers matching array_excluding matches array_excluding when using the fuzzy matcher # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/argument_matchers_spec.rb:323 - 84) Verified double naming instance_double behaves like a named verifying double when a name is given as a symbol + 84) argument matchers matching array_excluding matches array with array_excluding different array # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/argument_matchers_spec.rb:304 - 85) Verified double naming instance_double behaves like a named verifying double when a name is given as a string + 85) argument matchers matching handling objects with a wrong definition of `==` that raises errors for other types fails when matched against an unequal instance of the same class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/argument_matchers_spec.rb:378 - 86) Verified double naming object_double behaves like a named verifying double when no name is given + 86) argument matchers matching handling objects with a wrong definition of `==` that raises errors for other types can match multiple instances of the type against multiple equal instances of the type # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/argument_matchers_spec.rb:383 - 87) Verified double naming object_double behaves like a named verifying double when a name is given as a string + 87) argument matchers matching handling objects with a wrong definition of `==` that raises errors for other types matches against an equal instance of the same type # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/argument_matchers_spec.rb:373 - 88) Verified double naming object_double behaves like a named verifying double when a name is given as a symbol + 88) argument matchers matching anything doesn't accept no arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/argument_matchers_spec.rb:101 - 89) Verified double naming object_spy behaves like a named verifying double when a name is given as a string + 89) argument matchers matching anything accepts string as anything # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/argument_matchers_spec.rb:96 - 90) Verified double naming object_spy behaves like a named verifying double when a name is given as a symbol + 90) argument matchers matching anything handles non matching instances nicely # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/argument_matchers_spec.rb:106 - 91) Verified double naming object_spy behaves like a named verifying double when no name is given + 91) argument matchers matching instance_of does NOT accept integer as instance_of(Numeric) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/argument_matchers_spec.rb:72 - 92) Verified double naming class_spy behaves like a named verifying double when a name is given as a string + 92) argument matchers matching instance_of rejects non string # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/argument_matchers_spec.rb:82 - 93) Verified double naming class_spy behaves like a named verifying double when a name is given as a symbol + 93) argument matchers matching instance_of rejects non numeric # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/argument_matchers_spec.rb:77 - 94) Verified double naming class_spy behaves like a named verifying double when no name is given + 94) argument matchers matching instance_of accepts float as instance_of(Float) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/argument_matchers_spec.rb:62 - 95) Verified double naming instance_spy behaves like a named verifying double when a name is given as a symbol + 95) argument matchers matching instance_of does NOT accept float as instance_of(Numeric) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/argument_matchers_spec.rb:67 - 96) Verified double naming instance_spy behaves like a named verifying double when no name is given + 96) argument matchers matching instance_of handles non matching instances nicely # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/argument_matchers_spec.rb:87 - 97) Verified double naming instance_spy behaves like a named verifying double when a name is given as a string + 97) argument matchers matching any_args as the last of three args matches a call of three args when it matches the first two explicit args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/argument_matchers_spec.rb:155 - 98) a double acting as a null object returns a string from `to_str` + 98) argument matchers matching any_args as the last of three args matches a call of four args when it matches the first two explicit args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/null_object_double_spec.rb:47 + # ./spec/rspec/mocks/argument_matchers_spec.rb:159 - 99) a double acting as a null object fails verification when explicit exception not met + 99) argument matchers matching any_args as the last of three args does not match a call of no args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/null_object_double_spec.rb:62 + # ./spec/rspec/mocks/argument_matchers_spec.rb:167 - 100) a double acting as a null object allows explicit expectation + 100) argument matchers matching any_args as the last of three args does not match a call where the first two args do not match # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/null_object_double_spec.rb:42 + # ./spec/rspec/mocks/argument_matchers_spec.rb:163 - 101) a double acting as a null object allows expected message with different args second + 101) argument matchers matching any_args as the last of three args matches a call of two args when it matches the first two explicit args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/null_object_double_spec.rb:90 + # ./spec/rspec/mocks/argument_matchers_spec.rb:151 - 102) a double acting as a null object returns an explicitly stubbed value from an expectation with no implementation + 102) argument matchers matching any_args as the only arg passed to `with` matches many args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/null_object_double_spec.rb:56 + # ./spec/rspec/mocks/argument_matchers_spec.rb:143 - 103) a double acting as a null object allows expected message with different args first + 103) argument matchers matching any_args as the only arg passed to `with` matches one arg # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/null_object_double_spec.rb:84 + # ./spec/rspec/mocks/argument_matchers_spec.rb:139 - 104) a double acting as a null object allows unexpected message sends using `__send__` + 104) argument matchers matching any_args as the only arg passed to `with` matches no args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/null_object_double_spec.rb:79 + # ./spec/rspec/mocks/argument_matchers_spec.rb:135 - 105) a double acting as a null object allows explicit stubs + 105) argument matchers matching any_args when passed twice immediately signals that this is invalid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/null_object_double_spec.rb:37 + # ./spec/rspec/mocks/argument_matchers_spec.rb:221 - 106) a double acting as a null object ignores unexpected methods + 106) argument matchers matching any_args as the middle of three args matches a call of three args when it matches the first and last args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/null_object_double_spec.rb:69 + # ./spec/rspec/mocks/argument_matchers_spec.rb:203 - 107) a double acting as a null object can be interpolated in a string as an integer + 107) argument matchers matching any_args as the middle of three args does not match a call where the first and last args do not match # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/null_object_double_spec.rb:96 + # ./spec/rspec/mocks/argument_matchers_spec.rb:211 - 108) a double acting as a null object does not allow null objects to be used outside of examples + 108) argument matchers matching any_args as the middle of three args matches a call of four args when it matches the first and last args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/null_object_double_spec.rb:104 + # ./spec/rspec/mocks/argument_matchers_spec.rb:207 - 109) a double acting as a null object says it responds to everything + 109) argument matchers matching any_args as the middle of three args does not match a call of no args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/null_object_double_spec.rb:33 + # ./spec/rspec/mocks/argument_matchers_spec.rb:215 - 110) a double acting as a null object allows unexpected message sends using `send` + 110) argument matchers matching any_args as the middle of three args matches a call of two args when it matches the first and last args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/null_object_double_spec.rb:74 + # ./spec/rspec/mocks/argument_matchers_spec.rb:199 - 111) a double acting as a null object continues to return self from an explicit expectation + 111) argument matchers matching any_args as the first of three args matches a call of four args when it matches the last two explicit args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/null_object_double_spec.rb:51 + # ./spec/rspec/mocks/argument_matchers_spec.rb:183 - 112) An object double can create a double that matches the interface of any arbitrary object + 112) argument matchers matching any_args as the first of three args matches a call of three args when it matches the last two explicit args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:32 + # ./spec/rspec/mocks/argument_matchers_spec.rb:179 - 113) An object double does not allow transferring constants to an object + 113) argument matchers matching any_args as the first of three args does not match a call of no args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:45 + # ./spec/rspec/mocks/argument_matchers_spec.rb:191 - 114) An object double validates `with` args against the method signature when stubbing a method + 114) argument matchers matching any_args as the first of three args does not match a call where the last two args do not match # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:62 + # ./spec/rspec/mocks/argument_matchers_spec.rb:187 - 115) An object double is not a module + 115) argument matchers matching any_args as the first of three args matches a call of two args when it matches the last two explicit args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:58 + # ./spec/rspec/mocks/argument_matchers_spec.rb:175 - 116) An object double can replace an unloaded constant + 116) argument matchers matching array_including matches array with array_including using fuzzymatcher # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:8 + # ./spec/rspec/mocks/argument_matchers_spec.rb:283 - 117) An object double can replace a constant by name and verify instance methods + 117) argument matchers matching array_including fails array_including when args aren't array # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:17 + # ./spec/rspec/mocks/argument_matchers_spec.rb:288 - 118) An object double does not allow as_stubbed_constant for real objects + 118) argument matchers matching array_including fails array_including when arg doesn't contain all elements # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:52 + # ./spec/rspec/mocks/argument_matchers_spec.rb:295 - 119) An object double when a loaded object constant has previously been stubbed with a class uses the original object to verify against for `object_double('ConstName')` + 119) argument matchers matching array_including matches array with array_including same array # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:90 + # ./spec/rspec/mocks/argument_matchers_spec.rb:278 - 120) An object double when a loaded object constant has previously been stubbed with a class uses the original object to verify against for `object_double(ConstName)` + 120) argument matchers matching boolean rejects non boolean # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:96 + # ./spec/rspec/mocks/argument_matchers_spec.rb:21 - 121) An object double when a loaded object constant has previously been stubbed with an object uses the stubbed const value to verify against for `object_double(ConstName)`, which probably isn't what the user wants, but there's nothing else we can do since we can't get the constant name from the given object and thus cannot interrogate our stubbed const registry to see it has been stubbed + 121) argument matchers matching boolean accepts true as boolean # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:78 + # ./spec/rspec/mocks/argument_matchers_spec.rb:11 - 122) An object double when a loaded object constant has previously been stubbed with an object uses the original object to verify against for `object_double('ConstName')` + 122) argument matchers matching boolean accepts false as boolean # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:72 + # ./spec/rspec/mocks/argument_matchers_spec.rb:16 - 123) An object double when an unloaded object constant has previously been stubbed with a class treats it as being unloaded for `object_double('ConstName')` + 123) argument matchers matching no_args matches no args against no_args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:124 + # ./spec/rspec/mocks/argument_matchers_spec.rb:230 - 124) An object double when an unloaded object constant has previously been stubbed with a class treats it as being unloaded for `object_double(ConstName)` + 124) argument matchers matching no_args fails no_args with one arg # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:129 + # ./spec/rspec/mocks/argument_matchers_spec.rb:235 - 125) An object double when an unloaded object constant has previously been stubbed with an object treats it as being unloaded for `object_double('ConstName')` + 125) argument matchers matching no_args when passed with other arguments immediately signals that this is invalid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:106 + # ./spec/rspec/mocks/argument_matchers_spec.rb:241 - 126) An object double when an unloaded object constant has previously been stubbed with an object uses the stubbed const value to verify against for `object_double(ConstName)`, which probably isn't what the user wants, but there's nothing else we can do since we can't get the constant name from the given object and thus cannot interrogate our stubbed const registry to see it has been stubbed + 126) argument matchers matching duck_type matches duck type with one method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:111 + # ./spec/rspec/mocks/argument_matchers_spec.rb:113 - 127) RSpec::Mocks::Double allows setter methods to be stubbed + 127) argument matchers matching duck_type matches duck type with two methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:52 + # ./spec/rspec/mocks/argument_matchers_spec.rb:118 - 128) RSpec::Mocks::Double prevents confusing double-negative expressions involving `never` + 128) argument matchers matching duck_type rejects goose when expecting a duck # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:103 + # ./spec/rspec/mocks/argument_matchers_spec.rb:123 - 129) RSpec::Mocks::Double returns value from block by default + 129) argument matchers matching handling non-matcher arguments fails to match against a hash submitted as a positional argument and received as keyword arguments in Ruby 3.0 or later # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:423 + # ./spec/rspec/mocks/argument_matchers_spec.rb:429 - 130) RSpec::Mocks::Double raises RuntimeError with a message by default + 130) argument matchers matching handling non-matcher arguments fails a class against an unrelated class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:347 + # ./spec/rspec/mocks/argument_matchers_spec.rb:463 - 131) RSpec::Mocks::Double does not raise when told to if args dont match + 131) argument matchers matching handling non-matcher arguments matches a class against itself # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:386 + # ./spec/rspec/mocks/argument_matchers_spec.rb:458 - 132) RSpec::Mocks::Double fails when receiving message specified as not to be received with args + 132) argument matchers matching handling non-matcher arguments fails for a hash w/ wrong keys # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:140 + # ./spec/rspec/mocks/argument_matchers_spec.rb:451 - 133) RSpec::Mocks::Double yields many args to blocks that take a variable number of arguments + 133) argument matchers matching handling non-matcher arguments fails for a hash w/ wrong values # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:465 + # ./spec/rspec/mocks/argument_matchers_spec.rb:444 - 134) RSpec::Mocks::Double raises exception if args don't match when method called even when using null_object + 134) argument matchers matching handling non-matcher arguments fails with zero arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:243 + # ./spec/rspec/mocks/argument_matchers_spec.rb:478 - 135) RSpec::Mocks::Double does not get string vs symbol messages confused + 135) argument matchers matching handling non-matcher arguments fails with sensible message when arg#description is nil # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:31 + # ./spec/rspec/mocks/argument_matchers_spec.rb:491 - 136) RSpec::Mocks::Double has method_missing as private + 136) argument matchers matching handling non-matcher arguments matches string against regexp # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:7 + # ./spec/rspec/mocks/argument_matchers_spec.rb:397 - 137) RSpec::Mocks::Double fails when calling yielding method with wrong arity + 137) argument matchers matching handling non-matcher arguments matches a class against an instance of itself # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:520 + # ./spec/rspec/mocks/argument_matchers_spec.rb:468 - 138) RSpec::Mocks::Double fails when array arguments do not match + 138) argument matchers matching handling non-matcher arguments fails if regexp does not match submitted regexp # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:150 + # ./spec/rspec/mocks/argument_matchers_spec.rb:412 - 139) RSpec::Mocks::Double yields many args 3 times consecutively to blocks that take a variable number of arguments + 139) argument matchers matching handling non-matcher arguments fails with sensible message when arg#description is blank # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:473 + # ./spec/rspec/mocks/argument_matchers_spec.rb:498 - 140) RSpec::Mocks::Double does not blow up when resetting standard object methods + 140) argument matchers matching handling non-matcher arguments matches regexp against regexp # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:25 + # ./spec/rspec/mocks/argument_matchers_spec.rb:402 - 141) RSpec::Mocks::Double does not respond_to? method_missing (because it's private) + 141) argument matchers matching handling non-matcher arguments fails with sensible message when args respond to #description # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:11 + # ./spec/rspec/mocks/argument_matchers_spec.rb:484 - 142) RSpec::Mocks::Double fails when calling yielding method without block + 142) argument matchers matching handling non-matcher arguments matches against a hash submitted and received by value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:546 + # ./spec/rspec/mocks/argument_matchers_spec.rb:417 - 143) RSpec::Mocks::Double returns the previously stubbed value if no return value is set + 143) argument matchers matching handling non-matcher arguments fails a class against an object of a different type # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:203 + # ./spec/rspec/mocks/argument_matchers_spec.rb:473 - 144) RSpec::Mocks::Double allows parameter as return value + 144) argument matchers matching handling non-matcher arguments matches against a hash submitted as keyword arguments a and received as a positional argument (in both Ruby 2 and Ruby 3) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:197 + # ./spec/rspec/mocks/argument_matchers_spec.rb:422 - 145) RSpec::Mocks::Double assigns stub return values + 145) argument matchers matching handling non-matcher arguments fails if regexp does not match submitted string # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:653 + # ./spec/rspec/mocks/argument_matchers_spec.rb:407 - 146) RSpec::Mocks::Double throws when told to + 146) a double declaration with a block handed to: with returns the value of executing the block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:393 + # ./spec/rspec/mocks/block_return_value_spec.rb:38 - 147) RSpec::Mocks::Double reports line number of expectation of unreceived message + 147) a double declaration with a block handed to: with returns the value of executing the block with given argument # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:77 + # ./spec/rspec/mocks/block_return_value_spec.rb:44 - 148) RSpec::Mocks::Double fails when calling yielding method with invalid kw args + 148) a double declaration with a block handed to: ordered returns the value of executing the block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:528 + # ./spec/rspec/mocks/block_return_value_spec.rb:62 - 149) RSpec::Mocks::Double does not mess with the stub's yielded values when also doubleed + 149) a double declaration with a block handed to: expect(...).to receive works when a multi-return stub has already been set # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:635 + # ./spec/rspec/mocks/block_return_value_spec.rb:9 - 150) RSpec::Mocks::Double raises exception if args don't match when method called even when the method is stubbed + 150) a double declaration with a block handed to: expect(...).to receive returns the value of executing the block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:234 + # ./spec/rspec/mocks/block_return_value_spec.rb:3 - 151) RSpec::Mocks::Double is wrappable in an array + 151) a double declaration with a block handed to: once returns the value of executing the block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:290 + # ./spec/rspec/mocks/block_return_value_spec.rb:53 - 152) RSpec::Mocks::Double can yield multiple times when told to do so + 152) a double declaration with a block handed to: twice returns the value of executing the block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:643 + # ./spec/rspec/mocks/block_return_value_spec.rb:53 - 153) RSpec::Mocks::Double uses 'Double' in failure messages + 153) a double declaration with a block handed to: times returns the value of executing the block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:15 + # ./spec/rspec/mocks/block_return_value_spec.rb:71 - 154) RSpec::Mocks::Double fails if unexpected method called + 154) a double declaration with a block handed to: allow(...).to receive returns the value of executing the block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:264 + # ./spec/rspec/mocks/block_return_value_spec.rb:19 - 155) RSpec::Mocks::Double warns when `and_return` is called on a negative expectation + 155) a double declaration with a block handed to: allow(...).to receive forwards all given args to the block, even when it receives a block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:109 + # ./spec/rspec/mocks/block_return_value_spec.rb:27 - 156) RSpec::Mocks::Double raises an exception of a given type with a message + 156) Test doubles format well in failure messages formats the doubles when they appear in data structures and diffs # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:357 + # ./spec/rspec/mocks/formatting_spec.rb:94 - 157) RSpec::Mocks::Double does not get confused when a positive expectation is used with a string and symbol message + 157) Test doubles format well in failure messages `class_double(SomeClass)` without a name # # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:187 + # ./spec/rspec/mocks/formatting_spec.rb:74 - 158) RSpec::Mocks::Double fails if expectation block fails + 158) Test doubles format well in failure messages `class_double(SomeClass)` with a name # # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:280 + # ./spec/rspec/mocks/formatting_spec.rb:68 - 159) RSpec::Mocks::Double is wrappable in an array when a null object + 159) Test doubles format well in failure messages `object_double([])` without a name # # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:296 + # ./spec/rspec/mocks/formatting_spec.rb:88 - 160) RSpec::Mocks::Double returns nil if no return value is set and there is no previously stubbed value + 160) Test doubles format well in failure messages `object_double([])` with a name # # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:210 + # ./spec/rspec/mocks/formatting_spec.rb:82 - 161) RSpec::Mocks::Double fails right away when method defined as never is received + 161) Test doubles format well in failure messages `instance_double(SomeClass)` avoids sending `instance_variable_get` to the double as it may be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:336 + # ./spec/rspec/mocks/formatting_spec.rb:59 - 162) RSpec::Mocks::Double does not get confused when a negative expectation is used with a string and symbol message + 162) Test doubles format well in failure messages `instance_double(SomeClass)` without a name # # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:178 + # ./spec/rspec/mocks/formatting_spec.rb:54 - 163) RSpec::Mocks::Double uses block for expectation if provided + 163) Test doubles format well in failure messages `instance_double(SomeClass)` with a name # # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:270 + # ./spec/rspec/mocks/formatting_spec.rb:48 - 164) RSpec::Mocks::Double raises a given instance of an exception with arguments other than the standard 'message' + 164) Test doubles format well in failure messages `double` avoids sending `instance_variable_get` to the double as it may be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:375 + # ./spec/rspec/mocks/formatting_spec.rb:39 - 165) RSpec::Mocks::Double passes proc to expectation block with an argument + 165) Test doubles format well in failure messages `double` with a name # # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:321 + # ./spec/rspec/mocks/formatting_spec.rb:24 - 166) RSpec::Mocks::Double raises exception if args don't match when method called + 166) Test doubles format well in failure messages `double` with a name formats the name as a symbol if that was how it was provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:216 + # ./spec/rspec/mocks/formatting_spec.rb:28 - 167) RSpec::Mocks::Double is able to raise from method calling yielding double + 167) Test doubles format well in failure messages `double` without a name # # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:559 + # ./spec/rspec/mocks/formatting_spec.rb:34 - 168) RSpec::Mocks::Double responds to to_a as a null object + 168) .allow_message supports block implementations # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:306 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:26 - 169) RSpec::Mocks::Double reports line number of expectation of unreceived message after a message expectation after similar stub + 169) .allow_message does not set an expectation that the message will be received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:87 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:31 - 170) RSpec::Mocks::Double returns the stubbed value when no new value specified + 170) .allow_message does not get confused when the string and symbol message form are both used # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:621 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:36 - 171) RSpec::Mocks::Double does not require a different signature to replace a method stub + 171) .allow_message sets up basic message allowance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:596 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:6 - 172) RSpec::Mocks::Double generates the correct error when an unfulfilled expectation uses an unused double as a `with` argument + 172) .allow_message sets up message allowance with params and return value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:38 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:16 - 173) RSpec::Mocks::Double yields 0 args multiple times to blocks that take a variable number of arguments + 173) .allow_message when target cannot be proxied raises ArgumentError with message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:438 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:47 - 174) RSpec::Mocks::Double raises RuntimeError by default + 174) RSpec::Mocks::TestDouble copies the `as_null_object` state when clone'd # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:342 + # ./spec/rspec/mocks/test_double_spec.rb:34 - 175) RSpec::Mocks::Double passes when not receiving message specified as not to be received + 175) RSpec::Mocks::TestDouble copies the `as_null_object` state when dup'd # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:98 + # ./spec/rspec/mocks/test_double_spec.rb:34 - 176) RSpec::Mocks::Double fails when receiving message specified as not to be received + 176) RSpec::Mocks::TestDouble with syntax [:should, :expect] stubs the methods passed in the stubs hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:130 + # ./spec/rspec/mocks/test_double_spec.rb:48 - 177) RSpec::Mocks::Double restores objects to their original state on rspec_reset + 177) RSpec::Mocks::TestDouble with syntax [:should] stubs the methods passed in the stubs hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:580 + # ./spec/rspec/mocks/test_double_spec.rb:48 - 178) RSpec::Mocks::Double passes when receiving message specified as not to be received with different args + 178) RSpec::Mocks::TestDouble#freeze doesn't freeze the object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:123 + # ./spec/rspec/mocks/test_double_spec.rb:17 - 179) RSpec::Mocks::Double allows string representation of methods in constructor + 179) RSpec::Mocks::TestDouble#freeze returns the instance of the test double # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:47 + # ./spec/rspec/mocks/test_double_spec.rb:27 - 180) RSpec::Mocks::Double fails on no args if any args received + 180) RSpec::Mocks::TestDouble#freeze gives the correct call site for the warning # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:409 + # ./spec/rspec/mocks/test_double_spec.rb:12 - 181) RSpec::Mocks::Double raises an error when a previously stubbed method has a negative expectation + 181) RSpec::Mocks::TestDouble#freeze gives a warning # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:605 + # ./spec/rspec/mocks/test_double_spec.rb:7 - 182) RSpec::Mocks::Double passes proc to stub block with an argument + 182) RSpec::Mocks::TestDouble with syntax [:expect] stubs the methods passed in the stubs hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:331 + # ./spec/rspec/mocks/test_double_spec.rb:48 - 183) RSpec::Mocks::Double yields single value 3 times consecutively + 183) a message expectation with multiple invoke handlers and no specified count fails when there are too few calls (if there is no stub) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:491 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:25 - 184) RSpec::Mocks::Double passes proc to stub block without an argument + 184) a message expectation with multiple invoke handlers and no specified count falls back to a previously stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:326 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:17 - 185) RSpec::Mocks::Double returns the stubbed value when stubbed with args and no new value specified + 185) a message expectation with multiple invoke handlers and no specified count invokes procs in order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:628 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:10 - 186) RSpec::Mocks::Double clears expectations after verify + 186) a message expectation with multiple invoke handlers and no specified count fails when there are too many calls (if there is no stub) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:571 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:31 - 187) RSpec::Mocks::Double temporarily replaces a method stub on a double + 187) a double stubbed with multiple return values can still set a message expectation with a single return value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:587 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:10 - 188) RSpec::Mocks::Double ignores args on any args + 188) only stashing the original method keeps the original method intact after multiple expectations are added on the same method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:400 + # ./spec/rspec/mocks/stash_spec.rb:12 - 189) RSpec::Mocks::Double yields 0 args to blocks that take a variable number of arguments + 189) Methods added to every object limits the number of methods that get added to all objects # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:430 + # ./spec/rspec/mocks/methods_spec.rb:13 - 190) RSpec::Mocks::Double raises a given instance of an exception + 190) a message expectation with multiple return values and no specified count returns values in order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:362 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:23 - 191) RSpec::Mocks::Double yields two values 3 times consecutively + 191) a message expectation with multiple return values and no specified count fails when there are too many calls (if there is no stub) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:510 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:44 - 192) RSpec::Mocks::Double raises an exception of a given type without an error message + 192) a message expectation with multiple return values and no specified count fails when there are too few calls (if there is no stub) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:352 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:38 - 193) RSpec::Mocks::Double allows `send` to be stubbed + 193) a message expectation with multiple return values and no specified count falls back to a previously stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:71 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:30 - 194) RSpec::Mocks::Double yields two values + 194) Combining implementation instructions can combine and_yield and and_raise # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:501 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:85 - 195) RSpec::Mocks::Double yields single value + 195) Combining implementation instructions can combine and_yield, a block implementation and and_raise # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:483 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:94 - 196) RSpec::Mocks::Double fails when args are expected but none are received + 196) Combining implementation instructions can combine and_call_original, with, and_return # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:416 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:173 - 197) RSpec::Mocks::Double allows `class` to be stubbed even when `any_instance` has already been used + 197) Combining implementation instructions can combine and_yield and and_throw # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:60 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:106 - 198) RSpec::Mocks::Double hides internals in its inspect representation + 198) Combining implementation instructions does not warn about overriding the stub when `:with` is chained off the block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:20 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:165 - 199) RSpec::Mocks::Double is able to double send + 199) Combining implementation instructions warns when the inner implementation block is overridden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:553 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:160 - 200) RSpec::Mocks::Double responds to to_ary as a null object + 200) Combining implementation instructions can combine and_yield, a block implementation and and_throw # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:302 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:115 - 201) RSpec::Mocks::Double temporarily replaces a method stub on a non-double + 201) Combining implementation instructions raises an error if `and_call_original` is followed by any other instructions # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:611 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:181 - 202) RSpec::Mocks::Double yields one arg 3 times consecutively to blocks that take a variable number of arguments + 202) Combining implementation instructions can combine and_yield and and_return # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:455 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:4 - 203) RSpec::Mocks::Double passes proc to expectation block without an argument + 203) Combining implementation instructions a double that already has a terminal block action allows the block action to be overridden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:316 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:152 - 204) RSpec::Mocks::Double yields one arg to blocks that take a variable number of arguments + 204) Combining implementation instructions a double that already has a terminal `and_return(x)` action allows the terminal action to be overridden to `and_return(y)` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:447 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:132 - 205) RSpec::Mocks::Double fails when calling yielding method consecutively with wrong arity + 205) Combining implementation instructions a double that already has a terminal `and_return(x)` action allows the terminal action to be overridden to `and_raise(y)` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:536 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:137 - 206) RSpec::Mocks::Double even when a similar expectation with different arguments exist raises exception if args don't match when method called, correctly reporting the offending arguments + 206) Combining implementation instructions a double that already has a terminal `and_return(x)` action allows the terminal action to be overridden to `and_throw(y)` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:224 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:142 - 207) RSpec::Mocks::Double string representation generated by #to_s does not contain < because that might lead to invalid HTML in some situations + 207) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `exactly` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:722 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:37 - 208) RSpec::Mocks::Double with a method that has a default argument raises an exception if the arguments don't match when the method is called, correctly reporting the offending arguments + 208) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `ordered` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:253 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:78 - 209) RSpec::Mocks::Double == sends '== self' to the comparison object + 209) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `times` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:752 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:55 - 210) RSpec::Mocks::Double#to_str should not respond to #to_str to avoid being coerced to strings by the runtime + 210) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `at_most` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:730 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:49 - 211) RSpec::Mocks::Double double created with no name does not use a name in a failure message + 211) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `stub` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:739 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:25 - 212) RSpec::Mocks::Double double created with no name does respond to initially stubbed methods + 212) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `once` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:744 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:61 - 213) RSpec::Mocks::Double with with args with non-matching doubles fails + 213) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `with` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:782 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:31 - 214) RSpec::Mocks::Double with with args with matching args passes + 214) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `twice` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:765 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:67 - 215) RSpec::Mocks::Double with with args with non-matching args fails + 215) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `at_least` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:772 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:43 - 216) RSpec::Mocks::Double with with args with non-matching doubles as_null_object fails + 216) Using a partial mock on a proxy object works properly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:794 + # ./spec/rspec/mocks/partial_double_spec.rb:236 - 217) RSpec::Mocks::Double with with a block with matching args returns the result of the block + 217) Using a partial mock on a proxy object does not confuse the proxy and the proxied object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:808 + # ./spec/rspec/mocks/partial_double_spec.rb:241 - 218) RSpec::Mocks::Double with with a block with non-matching args fails + 218) RSpec::Mocks::InstanceMethodStasher stashes the current implementation of an instance method so it can be temporarily replaced # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:815 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:18 - 219) RSpec::Mocks::Double when specifying a message should not be received with specific args using `expect(...).not_to receive()` passes when receiving the message with different args + 219) RSpec::Mocks::InstanceMethodStasher only stashes methods directly defined on the given class, not its ancestors # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:162 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:45 - 220) RSpec::Mocks::Double when specifying a message should not be received with specific args using `expect(...).to receive().never` passes when receiving the message with different args + 220) RSpec::Mocks::InstanceMethodStasher undefines the original method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:170 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:67 - 221) RSpec::Mocks::Double a double message receiving a block supports a block passed to `receive` for `expect` + 221) RSpec::Mocks::InstanceMethodStasher stashes private instance methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:668 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:32 - 222) RSpec::Mocks::Double a double message receiving a block calls the block after #twice + 222) RSpec::Mocks::InstanceMethodStasher does not unnecessarily create obfuscated aliased methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:693 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:58 - 223) RSpec::Mocks::Double a double message receiving a block calls the block after #once + 223) After a test double has been torn down for an instance_double disallows stubbing new message chains # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:685 + # ./spec/rspec/mocks/expiration_spec.rb:35 - 224) RSpec::Mocks::Double a double message receiving a block calls the block after #ordered + 224) After a test double has been torn down for an instance_double disallows previously mocked methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:710 + # ./spec/rspec/mocks/expiration_spec.rb:15 - 225) RSpec::Mocks::Double a double message receiving a block calls the block after #times + 225) After a test double has been torn down for an instance_double disallows mocking new methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:702 + # ./spec/rspec/mocks/expiration_spec.rb:41 - 226) RSpec::Mocks::Double a double message receiving a block supports a block passed to `receive` for `expect` after a similar stub + 226) After a test double has been torn down for an instance_double disallows being checked for nullness # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:676 + # ./spec/rspec/mocks/expiration_spec.rb:51 - 227) PartialDoubleUsingMocksDirectly fails when expected message is not received + 227) After a test double has been torn down for an instance_double disallows being turned into a null object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:28 + # ./spec/rspec/mocks/expiration_spec.rb:47 - 228) PartialDoubleUsingMocksDirectly restores the original method if it existed + 228) After a test double has been torn down for an instance_double disallows stubbing new methods (with receive_messages) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:55 + # ./spec/rspec/mocks/expiration_spec.rb:29 - 229) PartialDoubleUsingMocksDirectly passes when expected message is received + 229) After a test double has been torn down for an instance_double disallows previously stubbed methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:43 + # ./spec/rspec/mocks/expiration_spec.rb:19 - 230) PartialDoubleUsingMocksDirectly fails when message is received with incorrect args + 230) After a test double has been torn down for an instance_double disallows stubbing new methods (with receive) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:35 + # ./spec/rspec/mocks/expiration_spec.rb:23 - 231) PartialDoubleUsingMocksDirectly passes when message is received with correct args + 231) After a test double has been torn down for a class_double disallows previously mocked methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:49 + # ./spec/rspec/mocks/expiration_spec.rb:15 - 232) PartialDoubleUsingMocksDirectly with a class method handled by method_missing restores the original behavior + 232) After a test double has been torn down for a class_double disallows previously stubbed methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:74 + # ./spec/rspec/mocks/expiration_spec.rb:19 - 233) PartialDoubleUsingMocksDirectly with an instance method handled by method_missing restores the original behavior + 233) After a test double has been torn down for a class_double disallows being turned into a null object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:64 + # ./spec/rspec/mocks/expiration_spec.rb:47 - 234) MockExpectationError is not caught by StandardError rescue blocks + 234) After a test double has been torn down for a class_double disallows mocking new methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mock_expectation_error_spec.rb:12 + # ./spec/rspec/mocks/expiration_spec.rb:41 - 235) Constructing a verifying double can only be named with a string or a module + 235) After a test double has been torn down for a class_double disallows stubbing new message chains # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:162 + # ./spec/rspec/mocks/expiration_spec.rb:35 - 236) Constructing a verifying double object doubles declares the class to verifying double callbacks + 236) After a test double has been torn down for a class_double disallows being checked for nullness # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:131 + # ./spec/rspec/mocks/expiration_spec.rb:51 - 237) Constructing a verifying double when verify_doubled_constant_names config option is set prevents creation of instance doubles for unloaded constants + 237) After a test double has been torn down for a class_double disallows stubbing new methods (with receive) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:149 + # ./spec/rspec/mocks/expiration_spec.rb:23 - 238) Constructing a verifying double when verify_doubled_constant_names config option is set prevents creation of class doubles for unloaded constants + 238) After a test double has been torn down for a class_double disallows stubbing new methods (with receive_messages) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:155 + # ./spec/rspec/mocks/expiration_spec.rb:29 - 239) Constructing a verifying double class doubles cannot be constructed with a non-module object + 239) After a test double has been torn down for an object_double disallows stubbing new message chains # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:104 + # ./spec/rspec/mocks/expiration_spec.rb:35 - 240) Constructing a verifying double class doubles declares named modules to verifying double callbacks + 240) After a test double has been torn down for an object_double disallows stubbing new methods (with receive) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:110 + # ./spec/rspec/mocks/expiration_spec.rb:23 - 241) Constructing a verifying double class doubles declares anonymous modules to verifying double callbacks + 241) After a test double has been torn down for an object_double disallows previously stubbed methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:119 + # ./spec/rspec/mocks/expiration_spec.rb:19 - 242) Constructing a verifying double instance doubles allows anonymous constants to be looked up and declared to verifying double callbacks + 242) After a test double has been torn down for an object_double disallows stubbing new methods (with receive_messages) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:40 + # ./spec/rspec/mocks/expiration_spec.rb:29 - 243) Constructing a verifying double instance doubles can be constructed with a struct + 243) After a test double has been torn down for an object_double disallows being checked for nullness # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:24 + # ./spec/rspec/mocks/expiration_spec.rb:51 - 244) Constructing a verifying double instance doubles allows named constants to be looked up and declared to verifying double callbacks + 244) After a test double has been torn down for an object_double disallows being turned into a null object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:29 + # ./spec/rspec/mocks/expiration_spec.rb:47 - 245) Constructing a verifying double instance doubles cannot be constructed with a non-module object + 245) After a test double has been torn down for an object_double disallows previously mocked methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:18 + # ./spec/rspec/mocks/expiration_spec.rb:15 - 246) Constructing a verifying double instance doubles allows classes to be customised + 246) After a test double has been torn down for an object_double disallows mocking new methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:52 + # ./spec/rspec/mocks/expiration_spec.rb:41 - 247) Constructing a verifying double instance doubles any_instance calls the callback for allow_any_instance_of + 247) After a test double has been torn down for a plain double disallows being checked for nullness # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:85 + # ./spec/rspec/mocks/expiration_spec.rb:51 - 248) Constructing a verifying double instance doubles any_instance calls the callback for expect_any_instance_of + 248) After a test double has been torn down for a plain double disallows previously stubbed methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:77 + # ./spec/rspec/mocks/expiration_spec.rb:19 - 249) Constructing a verifying double instance doubles any_instance should not call the callback if verify_partial_doubles is off + 249) After a test double has been torn down for a plain double disallows mocking new methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:93 + # ./spec/rspec/mocks/expiration_spec.rb:41 - 250) Partially mocking an object that defines ==, after another mock has been defined does not raise an error when stubbing the object + 250) After a test double has been torn down for a plain double disallows previously mocked methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:268 + # ./spec/rspec/mocks/expiration_spec.rb:15 - 251) Test doubles format well in failure messages formats the doubles when they appear in data structures and diffs + 251) After a test double has been torn down for a plain double disallows being turned into a null object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/formatting_spec.rb:94 + # ./spec/rspec/mocks/expiration_spec.rb:47 - 252) Test doubles format well in failure messages `double` avoids sending `instance_variable_get` to the double as it may be stubbed + 252) After a test double has been torn down for a plain double disallows stubbing new methods (with receive_messages) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/formatting_spec.rb:39 + # ./spec/rspec/mocks/expiration_spec.rb:29 - 253) Test doubles format well in failure messages `double` with a name # + 253) After a test double has been torn down for a plain double disallows stubbing new message chains # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/formatting_spec.rb:24 + # ./spec/rspec/mocks/expiration_spec.rb:35 - 254) Test doubles format well in failure messages `double` with a name formats the name as a symbol if that was how it was provided + 254) After a test double has been torn down for a plain double disallows stubbing new methods (with receive) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/formatting_spec.rb:28 + # ./spec/rspec/mocks/expiration_spec.rb:23 - 255) Test doubles format well in failure messages `double` without a name # + 255) A chained method stub returns expected value from chaining four method calls # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/formatting_spec.rb:34 + # ./spec/rspec/mocks/stub_chain_spec.rb:96 - 256) Test doubles format well in failure messages `object_double([])` without a name # + 256) A chained method stub handles private instance methods (like Object#select) in the middle of a chain # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/formatting_spec.rb:88 + # ./spec/rspec/mocks/stub_chain_spec.rb:160 - 257) Test doubles format well in failure messages `object_double([])` with a name # + 257) A chained method stub returns expected value when chain is a dot separated string, like stub_chain('msg1.msg2.msg3') # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/formatting_spec.rb:82 + # ./spec/rspec/mocks/stub_chain_spec.rb:147 - 258) Test doubles format well in failure messages `instance_double(SomeClass)` avoids sending `instance_variable_get` to the double as it may be stubbed + 258) A chained method stub returns expected value from two chains with shared messages at the beginning # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/formatting_spec.rb:59 + # ./spec/rspec/mocks/stub_chain_spec.rb:152 - 259) Test doubles format well in failure messages `instance_double(SomeClass)` without a name # + 259) A chained method stub does not get confused by symbol vs string usage for the messages # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/formatting_spec.rb:54 + # ./spec/rspec/mocks/stub_chain_spec.rb:6 - 260) Test doubles format well in failure messages `instance_double(SomeClass)` with a name # + 260) A chained method stub with four methods in chain using and_return returns expected value from chaining two method calls # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/formatting_spec.rb:48 + # ./spec/rspec/mocks/stub_chain_spec.rb:68 - 261) Test doubles format well in failure messages `class_double(SomeClass)` without a name # + 261) A chained method stub with four methods in chain using a block returns the correct value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/formatting_spec.rb:74 + # ./spec/rspec/mocks/stub_chain_spec.rb:75 - 262) Test doubles format well in failure messages `class_double(SomeClass)` with a name # + 262) A chained method stub with four methods in chain using a hash with a string key returns the value of the key/value pair # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/formatting_spec.rb:68 + # ./spec/rspec/mocks/stub_chain_spec.rb:89 - 263) RSpec::Mocks::ExampleMethods works properly when extended onto an object that has previous extended `RSpec::Matchers` + 263) A chained method stub with four methods in chain using a hash returns the value of the key/value pair # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/example_methods_spec.rb:25 + # ./spec/rspec/mocks/stub_chain_spec.rb:82 - 264) RSpec::Mocks::ExampleMethods works properly when extended onto an object that later extends `RSpec::Matchers` + 264) A chained method stub with one method in chain using and_return returns expected value from chaining only one method call # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/example_methods_spec.rb:31 + # ./spec/rspec/mocks/stub_chain_spec.rb:16 - 265) RSpec::Mocks::ExampleMethods works properly when extended onto an object + 265) A chained method stub with one method in chain using a hash returns the value of the key/value pair # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/example_methods_spec.rb:21 + # ./spec/rspec/mocks/stub_chain_spec.rb:30 - 266) RSpec::Mocks::ExampleMethods does not define private helper methods since it gets included into a namespace where users define methods and could inadvertently overwrite them + 266) A chained method stub with one method in chain using a block returns the correct value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/example_methods_spec.rb:4 + # ./spec/rspec/mocks/stub_chain_spec.rb:23 - 267) a message expectation with multiple return values and no specified count fails when there are too few calls (if there is no stub) + 267) A chained method stub with messages shared across multiple chains using => value starting with the same message returns expected value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_return_value_spec.rb:38 + # ./spec/rspec/mocks/stub_chain_spec.rb:126 - 268) a message expectation with multiple return values and no specified count returns values in order + 268) A chained method stub with messages shared across multiple chains using => value starting with different messages returns expected value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_return_value_spec.rb:23 + # ./spec/rspec/mocks/stub_chain_spec.rb:136 - 269) a message expectation with multiple return values and no specified count fails when there are too many calls (if there is no stub) + 269) A chained method stub with messages shared across multiple chains using and_return starting with the different messages returns expected value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_return_value_spec.rb:44 + # ./spec/rspec/mocks/stub_chain_spec.rb:114 - 270) a message expectation with multiple return values and no specified count falls back to a previously stubbed value + 270) A chained method stub with messages shared across multiple chains using and_return starting with the same message returns expected value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_return_value_spec.rb:30 + # ./spec/rspec/mocks/stub_chain_spec.rb:104 - 271) Method visibility for verified doubles for a class double (when the class is loaded) preserves protected visibility when allowing a protected method + 271) A chained method stub with two methods in chain accepts any number of arguments to the stubbed messages in the chain # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:72 + # ./spec/rspec/mocks/stub_chain_spec.rb:38 - 272) Method visibility for verified doubles for a class double (when the class is loaded) preserves private visibility on a null object + 272) A chained method stub with two methods in chain using and_return returns expected value from chaining two method calls # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:89 + # ./spec/rspec/mocks/stub_chain_spec.rb:45 - 273) Method visibility for verified doubles for a class double (when the class is loaded) preserves protected visibility when expecting a protected method + 273) A chained method stub with two methods in chain using a hash returns the value of the key/value pair # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:80 + # ./spec/rspec/mocks/stub_chain_spec.rb:59 - 274) Method visibility for verified doubles for a class double (when the class is loaded) can expect a protected instance method + 274) A chained method stub with two methods in chain using a block returns the correct value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:66 + # ./spec/rspec/mocks/stub_chain_spec.rb:52 - 275) Method visibility for verified doubles for a class double (when the class is loaded) can allow a private instance method + 275) .expect_message sets up message expectation with params and return value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:60 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:79 - 276) Method visibility for verified doubles for a class double (when the class is loaded) preserves private visibility when allowing a private method + 276) .expect_message does not get confused when the string and symbol message form are both used # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:72 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:91 - 277) Method visibility for verified doubles for a class double (when the class is loaded) can allow a protected instance method + 277) .expect_message sets up basic message expectation, verifies as called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:60 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:73 - 278) Method visibility for verified doubles for a class double (when the class is loaded) preserves protected visibility on a null object + 278) .expect_message accepts a block implementation for the expected message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:89 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:85 - 279) Method visibility for verified doubles for a class double (when the class is loaded) can expect a private instance method + 279) .expect_message fails if never is specified and the message is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:66 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:66 - 280) Method visibility for verified doubles for a class double (when the class is loaded) preserves private visibility when expecting a private method + 280) .expect_message sets up basic message expectation, verifies as uncalled # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:80 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:56 - 281) Method visibility for verified doubles for an instance double (when the class is loaded) can allow a private instance method + 281) .expect_message when target cannot be proxied raises ArgumentError with message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:16 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:102 - 282) Method visibility for verified doubles for an instance double (when the class is loaded) preserves protected visibility when allowing a protected method + 282) #allow_message_expectations_on_nil doesnt error when marshalled # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:28 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:85 - 283) Method visibility for verified doubles for an instance double (when the class is loaded) can expect a private instance method + 283) #allow_message_expectations_on_nil does not affect subsequent examples # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:22 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:70 - 284) Method visibility for verified doubles for an instance double (when the class is loaded) preserves protected visibility on a null object + 284) an expectation set on nil issues a warning with file and line number information # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:45 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:4 - 285) Method visibility for verified doubles for an instance double (when the class is loaded) preserves protected visibility when expecting a protected method + 285) an expectation set on nil issues a warning when the expectation is negative # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:36 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:15 - 286) Method visibility for verified doubles for an instance double (when the class is loaded) preserves private visibility on a null object + 286) an expectation set on nil does not issue a warning when expectations are set to be allowed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:45 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:24 - 287) Method visibility for verified doubles for an instance double (when the class is loaded) can allow a protected instance method + 287) an expectation set on nil does not call #nil? on a double extra times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:16 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:60 - 288) Method visibility for verified doubles for an instance double (when the class is loaded) preserves private visibility when expecting a private method + 288) an expectation set on nil configured to allow expectation on nil does not issue a warning when expectations are set to be allowed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:36 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:38 - 289) Method visibility for verified doubles for an instance double (when the class is loaded) preserves private visibility when allowing a private method + 289) an expectation set on nil configured to disallow expectations on nil raises an error when expectations on nil are disallowed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:28 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:53 - 290) Method visibility for verified doubles for an instance double (when the class is loaded) can expect a protected instance method + 290) stub implementation with one arg execs the block with that arg when called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:22 + # ./spec/rspec/mocks/stub_implementation_spec.rb:13 - 291) RSpec::Mocks::AnyInstance::MessageChains can remove all stub chains + 291) stub implementation with no args execs the block when called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:18 + # ./spec/rspec/mocks/stub_implementation_spec.rb:5 - 292) RSpec::Mocks::AnyInstance::MessageChains knows if a method has an expectation set on it + 292) stub implementation with variable args execs the block when called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:12 + # ./spec/rspec/mocks/stub_implementation_spec.rb:21 - 293) RSpec::Mocks::AnyInstance::MessageChains knows if a method does not have an expectation set on it + 293) #thrice passes when called thrice with unspecified args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:7 + # ./spec/rspec/mocks/thrice_counts_spec.rb:20 - 294) RSpec::Mocks::AnyInstance::MessageChains creating stub chains allows multiple stub chains for a method + 294) #thrice passes when called thrice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:33 + # ./spec/rspec/mocks/thrice_counts_spec.rb:8 - 295) RSpec::Mocks::AnyInstance::MessageChains creating stub chains understands how to add a stub chain for a method + 295) #thrice fails when call count is lower than expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:28 + # ./spec/rspec/mocks/thrice_counts_spec.rb:36 - 296) Combining implementation instructions can combine and_yield and and_raise + 296) #thrice fails when called with wrong args on the second call # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:85 + # ./spec/rspec/mocks/thrice_counts_spec.rb:52 - 297) Combining implementation instructions can combine and_yield and and_throw + 297) #thrice fails when called with wrong args on the first call # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:106 + # ./spec/rspec/mocks/thrice_counts_spec.rb:44 - 298) Combining implementation instructions can combine and_yield, a block implementation and and_throw + 298) #thrice passes when called thrice with specified args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:115 + # ./spec/rspec/mocks/thrice_counts_spec.rb:14 - 299) Combining implementation instructions warns when the inner implementation block is overridden + 299) #thrice fails when called with wrong args on the third call # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:160 + # ./spec/rspec/mocks/thrice_counts_spec.rb:61 - 300) Combining implementation instructions does not warn about overriding the stub when `:with` is chained off the block + 300) #thrice fails fast when call count is higher than expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:165 + # ./spec/rspec/mocks/thrice_counts_spec.rb:28 - 301) Combining implementation instructions raises an error if `and_call_original` is followed by any other instructions + 301) #thrice when called with negative expectation raises an error # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:181 + # ./spec/rspec/mocks/thrice_counts_spec.rb:72 - 302) Combining implementation instructions can combine and_call_original, with, and_return + 302) Using a reopened file object as a partial mock allows `write` to be stubbed and reset # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:173 + # ./spec/rspec/mocks/partial_double_spec.rb:199 - 303) Combining implementation instructions can combine and_yield and and_return + 303) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher describes itself properly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:4 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:6 - 304) Combining implementation instructions can combine and_yield, a block implementation and and_raise + 304) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a non-hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:94 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:37 - 305) Combining implementation instructions a double that already has a terminal `and_return(x)` action allows the terminal action to be overridden to `and_throw(y)` + 305) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with one of the specified keys # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:142 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:53 - 306) Combining implementation instructions a double that already has a terminal `and_return(x)` action allows the terminal action to be overridden to `and_return(y)` + 306) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with the specified key/value pair # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:132 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:45 - 307) Combining implementation instructions a double that already has a terminal `and_return(x)` action allows the terminal action to be overridden to `and_raise(y)` + 307) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with a specified key # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:137 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:41 - 308) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `at_least` + 308) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with one key/value pair included # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:43 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:61 - 309) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `twice` + 309) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with the specified key # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:67 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:49 - 310) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `exactly` + 310) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with some of the specified keys # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:37 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:57 - 311) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `at_most` + 311) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash without the specified key # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:49 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:11 - 312) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `times` + 312) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches an empty hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:55 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:23 - 313) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `once` + 313) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash without the specified key, given as anything() # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:61 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:19 - 314) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `stub` + 314) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches against classes inheriting from Hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:25 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:31 - 315) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `ordered` + 315) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash without any of the specified keys # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:78 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:27 - 316) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `with` + 316) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash with the specified key, but different value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:31 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:15 - 317) Combining implementation instructions a double that already has a terminal block action allows the block action to be overridden + 317) when a class method is aliased on a subclass and the method is mocked restores the original aliased public method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:152 + # ./spec/rspec/mocks/stash_spec.rb:26 - 318) #any_instance when used in conjunction with a `dup` doesn't bomb if the object doesn't support `dup` + 318) RSpec::Mocks::ExampleMethods does not define private helper methods since it gets included into a namespace where users define methods and could inadvertently overwrite them # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1259 + # ./spec/rspec/mocks/example_methods_spec.rb:4 - 319) #any_instance when used in conjunction with a `dup` doesn't fail when dup accepts parameters + 319) RSpec::Mocks::ExampleMethods works properly when extended onto an object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1266 + # ./spec/rspec/mocks/example_methods_spec.rb:21 - 320) #any_instance when used in conjunction with a `dup` doesn't cause an infinite loop + 320) RSpec::Mocks::ExampleMethods works properly when extended onto an object that has previous extended `RSpec::Matchers` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1250 + # ./spec/rspec/mocks/example_methods_spec.rb:25 - 321) #any_instance when used after the test has finished restores the original behavior of a stubbed method + 321) RSpec::Mocks::ExampleMethods works properly when extended onto an object that later extends `RSpec::Matchers` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1312 + # ./spec/rspec/mocks/example_methods_spec.rb:31 - 322) #any_instance when used after the test has finished restores the original behaviour, even if the expectation fails + 322) and_invoke when no argument is passed raises ArgumentError # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1331 + # ./spec/rspec/mocks/and_invoke_spec.rb:15 - 323) #any_instance when used after the test has finished does not restore a stubbed method not originally implemented in the class + 323) and_invoke when a non-callable are passed in any position raises ArgumentError # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1323 + # ./spec/rspec/mocks/and_invoke_spec.rb:24 - 324) #any_instance expect_any_instance_of(...).not_to receive fails if the method is called + 324) and_invoke when a block is passed raises ArgumentError # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:460 + # ./spec/rspec/mocks/and_invoke_spec.rb:7 - 325) #any_instance expect_any_instance_of(...).not_to receive affects previously stubbed instances + 325) and_invoke when calling passed callables passes the arguments into the callable # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:477 + # ./spec/rspec/mocks/and_invoke_spec.rb:35 - 326) #any_instance expect_any_instance_of(...).not_to receive passes if only a different method is called + 326) #null_object? defaults to false # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:472 + # ./spec/rspec/mocks/null_object_double_spec.rb:120 - 327) #any_instance expect_any_instance_of(...).not_to receive prevents confusing double-negative expressions involving `never` + 327) RSpec::Mocks::Double passes when receiving message specified as not to be received with different args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:512 + # ./spec/rspec/mocks/double_spec.rb:123 - 328) #any_instance expect_any_instance_of(...).not_to receive passes if no method is called + 328) RSpec::Mocks::Double raises an exception of a given type with a message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:468 + # ./spec/rspec/mocks/double_spec.rb:357 - 329) #any_instance expect_any_instance_of(...).not_to receive with constraints fails if the method is called with the specified parameters + 329) RSpec::Mocks::Double fails right away when method defined as never is received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:490 + # ./spec/rspec/mocks/double_spec.rb:336 - 330) #any_instance expect_any_instance_of(...).not_to receive with constraints passes if the method is called with different parameters + 330) RSpec::Mocks::Double fails if unexpected method called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:497 + # ./spec/rspec/mocks/double_spec.rb:264 - 331) #any_instance expect_any_instance_of(...).not_to receive when used in combination with should_receive passes if only the expected message is received + 331) RSpec::Mocks::Double warns when `and_return` is called on a negative expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:504 + # ./spec/rspec/mocks/double_spec.rb:109 - 332) #any_instance when resetting post-verification adds an instance to the current space when stubbed method is invoked + 332) RSpec::Mocks::Double allows `class` to be stubbed even when `any_instance` has already been used # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1169 + # ./spec/rspec/mocks/double_spec.rb:60 - 333) #any_instance when resetting post-verification existing method with stubbing private methods restores a stubbed private method after the spec is run + 333) RSpec::Mocks::Double temporarily replaces a method stub on a double # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1087 + # ./spec/rspec/mocks/double_spec.rb:587 - 334) #any_instance when resetting post-verification existing method with stubbing private methods ensures that the restored method behaves as it originally did + 334) RSpec::Mocks::Double assigns stub return values # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1091 + # ./spec/rspec/mocks/double_spec.rb:653 - 335) #any_instance when resetting post-verification existing method with stubbing private methods cleans up the backed up method + 335) RSpec::Mocks::Double does not require a different signature to replace a method stub # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1083 + # ./spec/rspec/mocks/double_spec.rb:596 - 336) #any_instance when resetting post-verification existing method with stubbing public methods restores the class to its original state after each example when one instance is created + 336) RSpec::Mocks::Double prevents confusing double-negative expressions involving `never` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1056 + # ./spec/rspec/mocks/double_spec.rb:103 - 337) #any_instance when resetting post-verification existing method with stubbing public methods restores the class to its original state after each example when more than one instance is created + 337) RSpec::Mocks::Double reports line number of expectation of unreceived message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1065 + # ./spec/rspec/mocks/double_spec.rb:77 - 338) #any_instance when resetting post-verification existing method with stubbing public methods restores the class to its original state after each example when no instance is created + 338) RSpec::Mocks::Double raises RuntimeError by default # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1049 + # ./spec/rspec/mocks/double_spec.rb:342 - 339) #any_instance when resetting post-verification existing method with expectations ensures that the next spec does not see that expectation + 339) RSpec::Mocks::Double yields 0 args to blocks that take a variable number of arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1147 + # ./spec/rspec/mocks/double_spec.rb:430 - 340) #any_instance when resetting post-verification existing method with expectations private methods ensures that the restored method behaves as it originally did + 340) RSpec::Mocks::Double returns the stubbed value when stubbed with args and no new value specified # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1114 + # ./spec/rspec/mocks/double_spec.rb:628 - 341) #any_instance when resetting post-verification existing method with expectations private methods restores a stubbed private method after the spec is run + 341) RSpec::Mocks::Double fails when receiving message specified as not to be received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1110 + # ./spec/rspec/mocks/double_spec.rb:130 - 342) #any_instance when resetting post-verification existing method with expectations private methods cleans up the backed up method + 342) RSpec::Mocks::Double yields 0 args multiple times to blocks that take a variable number of arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1106 + # ./spec/rspec/mocks/double_spec.rb:438 - 343) #any_instance when resetting post-verification existing method with expectations ensures that the subsequent specs do not see expectations set in previous specs when the instance created before the expectation is set second spec + 343) RSpec::Mocks::Double allows setter methods to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1141 + # ./spec/rspec/mocks/double_spec.rb:52 - 344) #any_instance when resetting post-verification existing method with expectations ensures that the subsequent specs do not see expectations set in previous specs when the instance created before the expectation is set first spec + 344) RSpec::Mocks::Double responds to to_a as a null object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1136 + # ./spec/rspec/mocks/double_spec.rb:306 - 345) #any_instance when resetting post-verification existing method with expectations ensures that the subsequent specs do not see expectations set in previous specs when the instance created after the expectation is set second spec + 345) RSpec::Mocks::Double throws when told to # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1126 + # ./spec/rspec/mocks/double_spec.rb:393 - 346) #any_instance when resetting post-verification existing method with expectations ensures that the subsequent specs do not see expectations set in previous specs when the instance created after the expectation is set first spec + 346) RSpec::Mocks::Double does not get confused when a positive expectation is used with a string and symbol message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1121 + # ./spec/rspec/mocks/double_spec.rb:187 - 347) #any_instance when resetting post-verification with multiple calls to any_instance in the same example does not prevent the change from being rolled back + 347) RSpec::Mocks::Double does not blow up when resetting standard object methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1159 + # ./spec/rspec/mocks/double_spec.rb:25 - 348) #any_instance when a class overrides Object#method mocks the method correctly + 348) RSpec::Mocks::Double is wrappable in an array when a null object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1305 + # ./spec/rspec/mocks/double_spec.rb:296 - 349) #any_instance when a class overrides Object#method stubs the method correctly + 349) RSpec::Mocks::Double ignores args on any args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1300 + # ./spec/rspec/mocks/double_spec.rb:400 - 350) #any_instance when directed at a method defined on a superclass stubs the method correctly + 350) RSpec::Mocks::Double can yield multiple times when told to do so # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1281 + # ./spec/rspec/mocks/double_spec.rb:643 - 351) #any_instance when directed at a method defined on a superclass mocks the method correctly + 351) RSpec::Mocks::Double is wrappable in an array # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1286 + # ./spec/rspec/mocks/double_spec.rb:290 - 352) #any_instance when stubbing does not suppress an exception when a method that doesn't exist is invoked + 352) RSpec::Mocks::Double yields single value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:91 + # ./spec/rspec/mocks/double_spec.rb:483 - 353) #any_instance when stubbing with #and_yield yields the value specified + 353) RSpec::Mocks::Double fails on no args if any args received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:291 + # ./spec/rspec/mocks/double_spec.rb:409 - 354) #any_instance when stubbing behaves as 'every instance' handles method restoration on subclasses + 354) RSpec::Mocks::Double yields single value 3 times consecutively # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:172 + # ./spec/rspec/mocks/double_spec.rb:491 - 355) #any_instance when stubbing behaves as 'every instance' handles stubbing on a sub class when a super class is stubbed differently + 355) RSpec::Mocks::Double returns nil if no return value is set and there is no previously stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:163 + # ./spec/rspec/mocks/double_spec.rb:210 - 356) #any_instance when stubbing behaves as 'every instance' stubs every instance in the spec + 356) RSpec::Mocks::Double yields two values # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:138 + # ./spec/rspec/mocks/double_spec.rb:501 - 357) #any_instance when stubbing behaves as 'every instance' handles freeze and duplication correctly + 357) RSpec::Mocks::Double yields one arg to blocks that take a variable number of arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:150 + # ./spec/rspec/mocks/double_spec.rb:447 - 358) #any_instance when stubbing behaves as 'every instance' handles stubbing on super and subclasses + 358) RSpec::Mocks::Double raises exception if args don't match when method called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:157 + # ./spec/rspec/mocks/double_spec.rb:216 - 359) #any_instance when stubbing behaves as 'every instance' stubs instance created before any_instance was called + 359) RSpec::Mocks::Double passes proc to stub block with an argument # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:144 + # ./spec/rspec/mocks/double_spec.rb:331 - 360) #any_instance when stubbing multiple methods allows multiple methods to be stubbed in a single invocation + 360) RSpec::Mocks::Double allows parameter as return value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:97 + # ./spec/rspec/mocks/double_spec.rb:197 - 361) #any_instance when stubbing multiple methods allows a chain of methods to be stubbed using #receive_message_chain can constrain the return value by the argument to the last call + 361) RSpec::Mocks::Double raises RuntimeError with a message by default # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:120 + # ./spec/rspec/mocks/double_spec.rb:347 - 362) #any_instance when stubbing multiple methods allows a chain of methods to be stubbed using #receive_message_chain can use a chain of methods to perform an expectation + 362) RSpec::Mocks::Double fails when array arguments do not match # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:127 + # ./spec/rspec/mocks/double_spec.rb:150 - 363) #any_instance when stubbing multiple methods allows a chain of methods to be stubbed using #receive_message_chain given a string of '.' separated method names representing the chain + 363) RSpec::Mocks::Double temporarily replaces a method stub on a non-double # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:115 + # ./spec/rspec/mocks/double_spec.rb:611 - 364) #any_instance when stubbing multiple methods allows a chain of methods to be stubbed using #receive_message_chain given a hash as the last argument uses the value as the expected return value + 364) RSpec::Mocks::Double does not get confused when a negative expectation is used with a string and symbol message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:110 + # ./spec/rspec/mocks/double_spec.rb:178 - 365) #any_instance when stubbing multiple methods allows a chain of methods to be stubbed using #receive_message_chain given symbols representing the methods + 365) RSpec::Mocks::Double returns the previously stubbed value if no return value is set # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:105 + # ./spec/rspec/mocks/double_spec.rb:203 - 366) #any_instance when stubbing with a block returns the same computed value for calls on different instances + 366) RSpec::Mocks::Double uses block for expectation if provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:340 + # ./spec/rspec/mocks/double_spec.rb:270 - 367) #any_instance when stubbing with a block stubs a method + 367) RSpec::Mocks::Double does not raise when told to if args dont match # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:335 + # ./spec/rspec/mocks/double_spec.rb:386 - 368) #any_instance when stubbing with #and_return returns the same object for calls on different instances + 368) RSpec::Mocks::Double passes proc to expectation block with an argument # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:271 + # ./spec/rspec/mocks/double_spec.rb:321 - 369) #any_instance when stubbing with #and_return can stub a method that exists + 369) RSpec::Mocks::Double is able to double send # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:266 + # ./spec/rspec/mocks/double_spec.rb:553 - 370) #any_instance when stubbing with #and_return can stub a method that doesn't exist + 370) RSpec::Mocks::Double returns the stubbed value when no new value specified # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:261 + # ./spec/rspec/mocks/double_spec.rb:621 - 371) #any_instance when stubbing with #and_return can change how instances responds in the middle of an example + 371) RSpec::Mocks::Double passes proc to expectation block without an argument # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:278 + # ./spec/rspec/mocks/double_spec.rb:316 - 372) #any_instance when stubbing with argument matching returns the stubbed value when arguments match + 372) RSpec::Mocks::Double passes proc to stub block without an argument # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:229 + # ./spec/rspec/mocks/double_spec.rb:326 - 373) #any_instance when stubbing with argument matching fails the spec with an expectation error when the arguments do not match + 373) RSpec::Mocks::Double has method_missing as private # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:235 + # ./spec/rspec/mocks/double_spec.rb:7 - 374) #any_instance when stubbing when partially mocking objects resets partially mocked objects correctly + 374) RSpec::Mocks::Double raises a given instance of an exception # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:349 + # ./spec/rspec/mocks/double_spec.rb:362 - 375) #any_instance when stubbing aliased methods tracks aliased method calls + 375) RSpec::Mocks::Double fails when args are expected but none are received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:213 + # ./spec/rspec/mocks/double_spec.rb:416 - 376) #any_instance when stubbing with multiple stubs returns the same value for calls on different instances + 376) RSpec::Mocks::Double uses 'Double' in failure messages # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:254 + # ./spec/rspec/mocks/double_spec.rb:15 - 377) #any_instance when stubbing with multiple stubs stubs a method + 377) RSpec::Mocks::Double does not get string vs symbol messages confused # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:248 + # ./spec/rspec/mocks/double_spec.rb:31 - 378) #any_instance when stubbing with #and_raise can stub a method that doesn't exist + 378) RSpec::Mocks::Double allows `send` to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:311 + # ./spec/rspec/mocks/double_spec.rb:71 - 379) #any_instance when stubbing with #and_raise can stub a method that exists + 379) RSpec::Mocks::Double does not respond_to? method_missing (because it's private) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:316 + # ./spec/rspec/mocks/double_spec.rb:11 - 380) #any_instance when stubbing with #and_call_original and competing #with can combine and_call_original, with, and_return + 380) RSpec::Mocks::Double raises an error when a previously stubbed method has a negative expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:301 + # ./spec/rspec/mocks/double_spec.rb:605 - 381) #any_instance when stubbing core ruby objects works uniformly across *everything* + 381) RSpec::Mocks::Double returns value from block by default # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:365 + # ./spec/rspec/mocks/double_spec.rb:423 - 382) #any_instance when stubbing core ruby objects works with the non-standard constructor '' + 382) RSpec::Mocks::Double generates the correct error when an unfulfilled expectation uses an unused double as a `with` argument # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:385 + # ./spec/rspec/mocks/double_spec.rb:38 - 383) #any_instance when stubbing core ruby objects works with the non-standard constructor "" + 383) RSpec::Mocks::Double restores objects to their original state on rspec_reset # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:380 + # ./spec/rspec/mocks/double_spec.rb:580 - 384) #any_instance when stubbing core ruby objects works with the non-standard constructor [] + 384) RSpec::Mocks::Double clears expectations after verify # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:370 + # ./spec/rspec/mocks/double_spec.rb:571 - 385) #any_instance when stubbing core ruby objects works with the non-standard constructor {} + 385) RSpec::Mocks::Double raises an exception of a given type without an error message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:375 + # ./spec/rspec/mocks/double_spec.rb:352 - 386) #any_instance when stubbing core ruby objects works with the non-standard constructor class + 386) RSpec::Mocks::Double raises exception if args don't match when method called even when the method is stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:396 + # ./spec/rspec/mocks/double_spec.rb:234 - 387) #any_instance when stubbing core ruby objects works with the non-standard constructor module + 387) RSpec::Mocks::Double fails when calling yielding method without block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:390 + # ./spec/rspec/mocks/double_spec.rb:546 - 388) #any_instance when stubbing with #and_throw can stub a method that doesn't exist + 388) RSpec::Mocks::Double fails if expectation block fails # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:323 + # ./spec/rspec/mocks/double_spec.rb:280 - 389) #any_instance when stubbing with #and_throw can stub a method that exists + 389) RSpec::Mocks::Double yields many args 3 times consecutively to blocks that take a variable number of arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:328 + # ./spec/rspec/mocks/double_spec.rb:473 - 390) #any_instance when stubbing when the class has a prepended module prevents stubbing a method that is defined on the prepended module + 390) RSpec::Mocks::Double fails when calling yielding method with wrong arity # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:188 + # ./spec/rspec/mocks/double_spec.rb:520 - 391) #any_instance when stubbing when the class has a prepended module allows stubbing a chain starting with a method that is not defined on the prepended module + 391) RSpec::Mocks::Double does not mess with the stub's yielded values when also doubleed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:196 + # ./spec/rspec/mocks/double_spec.rb:635 - 392) #any_instance when stubbing when the class has a prepended module prevents stubbing a chain starting with a method that is defined on the prepended module + 392) RSpec::Mocks::Double responds to to_ary as a null object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:203 + # ./spec/rspec/mocks/double_spec.rb:302 - 393) #any_instance when stubbing when the class has a prepended module allows stubbing a method that is not defined on the prepended module + 393) RSpec::Mocks::Double hides internals in its inspect representation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:181 + # ./spec/rspec/mocks/double_spec.rb:20 - 394) #any_instance unstubbing using `and_call_original` replaces the stubbed method with the original method + 394) RSpec::Mocks::Double fails when calling yielding method consecutively with wrong arity # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:405 + # ./spec/rspec/mocks/double_spec.rb:536 - 395) #any_instance unstubbing using `and_call_original` removes any stubs set directly on an instance + 395) RSpec::Mocks::Double yields many args to blocks that take a variable number of arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:436 + # ./spec/rspec/mocks/double_spec.rb:465 - 396) #any_instance unstubbing using `and_call_original` removes stubs from sub class after Invocation when super class was originally stubbed + 396) RSpec::Mocks::Double allows string representation of methods in constructor # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:427 + # ./spec/rspec/mocks/double_spec.rb:47 - 397) #any_instance unstubbing using `and_call_original` removes all stubs with the supplied method name + 397) RSpec::Mocks::Double fails when calling yielding method with invalid kw args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:411 + # ./spec/rspec/mocks/double_spec.rb:528 - 398) #any_instance unstubbing using `and_call_original` does not remove any expectations with the same method name + 398) RSpec::Mocks::Double raises a given instance of an exception with arguments other than the standard 'message' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:444 + # ./spec/rspec/mocks/double_spec.rb:375 - 399) #any_instance unstubbing using `and_call_original` does not get confused about string vs symbol usage for the message + 399) RSpec::Mocks::Double yields one arg 3 times consecutively to blocks that take a variable number of arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:452 + # ./spec/rspec/mocks/double_spec.rb:455 - 400) #any_instance unstubbing using `and_call_original` removes stubs even if they have already been invoked + 400) RSpec::Mocks::Double fails when receiving message specified as not to be received with args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:418 + # ./spec/rspec/mocks/double_spec.rb:140 - 401) #any_instance chain yields the value specified + 401) RSpec::Mocks::Double is able to raise from method calling yielding double # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:47 + # ./spec/rspec/mocks/double_spec.rb:559 - 402) #any_instance setting a message expectation affects previously stubbed instances + 402) RSpec::Mocks::Double yields two values 3 times consecutively # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:538 + # ./spec/rspec/mocks/double_spec.rb:510 - 403) #any_instance setting a message expectation handles inspect accessing expected methods + 403) RSpec::Mocks::Double passes when not receiving message specified as not to be received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:523 + # ./spec/rspec/mocks/double_spec.rb:98 - 404) #any_instance setting a message expectation does not modify the return value of stubs set on an instance of a subclass + 404) RSpec::Mocks::Double reports line number of expectation of unreceived message after a message expectation after similar stub # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:563 + # ./spec/rspec/mocks/double_spec.rb:87 - 405) #any_instance setting a message expectation does not modify the return value of stubs set on an instance + 405) RSpec::Mocks::Double raises exception if args don't match when method called even when using null_object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:555 + # ./spec/rspec/mocks/double_spec.rb:243 - 406) #any_instance setting a message expectation works with a BasicObject subclass that mixes in Kernel + 406) RSpec::Mocks::Double double created with no name does respond to initially stubbed methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:782 + # ./spec/rspec/mocks/double_spec.rb:744 - 407) #any_instance setting a message expectation properly notifies any instance recorders when they are created after the object's mock proxy + 407) RSpec::Mocks::Double double created with no name does not use a name in a failure message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:585 + # ./spec/rspec/mocks/double_spec.rb:739 - 408) #any_instance setting a message expectation properly notifies any instance recorders at multiple levels of hierarchy when a directly stubbed object receives a message + 408) RSpec::Mocks::Double with a method that has a default argument raises an exception if the arguments don't match when the method is called, correctly reporting the offending arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:572 + # ./spec/rspec/mocks/double_spec.rb:253 - 409) #any_instance setting a message expectation works with a SimpleDelegator subclass + 409) RSpec::Mocks::Double when specifying a message should not be received with specific args using `expect(...).to receive().never` passes when receiving the message with different args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:792 + # ./spec/rspec/mocks/double_spec.rb:170 - 410) #any_instance setting a message expectation does not set the expectation on every instance + 410) RSpec::Mocks::Double when specifying a message should not be received with specific args using `expect(...).not_to receive()` passes when receiving the message with different args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:547 + # ./spec/rspec/mocks/double_spec.rb:162 - 411) #any_instance setting a message expectation when argument matching is used and an instance has stubbed the message fails on verify if the arguments do not match + 411) RSpec::Mocks::Double a double message receiving a block calls the block after #once # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:636 + # ./spec/rspec/mocks/double_spec.rb:685 - 412) #any_instance setting a message expectation when argument matching is used and an instance has stubbed the message passes on verify if the arguments do match + 412) RSpec::Mocks::Double a double message receiving a block calls the block after #twice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:645 + # ./spec/rspec/mocks/double_spec.rb:693 - 413) #any_instance setting a message expectation with an expectation is set on a method which does not exist fails if an instance is created but no invocation occurs + 413) RSpec::Mocks::Double a double message receiving a block calls the block after #times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:661 + # ./spec/rspec/mocks/double_spec.rb:702 - 414) #any_instance setting a message expectation with an expectation is set on a method which does not exist returns the expected value + 414) RSpec::Mocks::Double a double message receiving a block supports a block passed to `receive` for `expect` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:656 + # ./spec/rspec/mocks/double_spec.rb:668 - 415) #any_instance setting a message expectation with an expectation is set on a method which does not exist fails if no instance is created + 415) RSpec::Mocks::Double a double message receiving a block calls the block after #ordered # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:669 + # ./spec/rspec/mocks/double_spec.rb:710 - 416) #any_instance setting a message expectation with an expectation is set on a method which does not exist allows expectations on instances to take priority + 416) RSpec::Mocks::Double a double message receiving a block supports a block passed to `receive` for `expect` after a similar stub # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:684 + # ./spec/rspec/mocks/double_spec.rb:676 - 417) #any_instance setting a message expectation with an expectation is set on a method which does not exist fails if no instance is created and there are multiple expectations + 417) RSpec::Mocks::Double with with args with non-matching doubles fails # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:676 + # ./spec/rspec/mocks/double_spec.rb:782 - 418) #any_instance setting a message expectation with an expectation is set on a method which does not exist normal expectations on the class object pass when expectations are met + 418) RSpec::Mocks::Double with with args with non-matching doubles as_null_object fails # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:724 + # ./spec/rspec/mocks/double_spec.rb:794 - 419) #any_instance setting a message expectation with an expectation is set on a method which does not exist normal expectations on the class object fail when unfulfilled + 419) RSpec::Mocks::Double with with args with non-matching args fails # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:713 + # ./spec/rspec/mocks/double_spec.rb:772 - 420) #any_instance setting a message expectation with an expectation is set on a method which does not exist behaves as 'exactly one instance' fails if the method is invoked on a second instance + 420) RSpec::Mocks::Double with with args with matching args passes # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:700 + # ./spec/rspec/mocks/double_spec.rb:765 - 421) #any_instance setting a message expectation with an expectation is set on a method which does not exist behaves as 'exactly one instance' passes if subsequent invocations do not receive that message + 421) RSpec::Mocks::Double with with a block with non-matching args fails # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:694 + # ./spec/rspec/mocks/double_spec.rb:815 - 422) #any_instance setting a message expectation when the class has an included module allows mocking a method that is defined on the module + 422) RSpec::Mocks::Double with with a block with matching args returns the result of the block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:612 + # ./spec/rspec/mocks/double_spec.rb:808 - 423) #any_instance setting a message expectation message count the 'exactly(n)' constraint passes for n invocations where n = 3 + 423) RSpec::Mocks::Double even when a similar expectation with different arguments exist raises exception if args don't match when method called, correctly reporting the offending arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:933 + # ./spec/rspec/mocks/double_spec.rb:224 - 424) #any_instance setting a message expectation message count the 'exactly(n)' constraint fails for n invocations where n > 3 + 424) RSpec::Mocks::Double#to_str should not respond to #to_str to avoid being coerced to strings by the runtime # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:948 + # ./spec/rspec/mocks/double_spec.rb:730 - 425) #any_instance setting a message expectation message count the 'exactly(n)' constraint fails for n invocations where n < 3 + 425) RSpec::Mocks::Double == sends '== self' to the comparison object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:939 + # ./spec/rspec/mocks/double_spec.rb:752 - 426) #any_instance setting a message expectation message count the 'exactly(n)' constraint time alias passes for 1 invocation + 426) RSpec::Mocks::Double string representation generated by #to_s does not contain < because that might lead to invalid HTML in some situations # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:918 + # ./spec/rspec/mocks/double_spec.rb:722 - 427) #any_instance setting a message expectation message count the 'exactly(n)' constraint time alias fails for 2 invocations + 427) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the and_raise method is called, indicating the expectation has already been invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:924 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 428) #any_instance setting a message expectation message count the 'thrice' constraint fails for less than three invocations + 428) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the at_most method is called, indicating the expectation has already been invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:906 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 429) #any_instance setting a message expectation message count the 'thrice' constraint fails for more than three invocations + 429) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the and_return method is called, indicating the expectation has already been invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:898 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 430) #any_instance setting a message expectation message count the 'thrice' constraint passes for three invocations + 430) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the and_yield method is called, indicating the expectation has already been invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:892 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 431) #any_instance setting a message expectation message count the 'at_most(n)' constraint passes for n invocations where n < 3 + 431) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the and_throw method is called, indicating the expectation has already been invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:987 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 432) #any_instance setting a message expectation message count the 'at_most(n)' constraint passes for n invocations where n = 3 + 432) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the exactly method is called, indicating the expectation has already been invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:981 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 433) #any_instance setting a message expectation message count the 'at_most(n)' constraint fails for n invocations where n > 3 + 433) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the at_least method is called, indicating the expectation has already been invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:993 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 434) #any_instance setting a message expectation message count the 'never' constraint passes for 0 invocations + 434) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the with method is called, indicating the expectation has already been invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1003 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 435) #any_instance setting a message expectation message count the 'never' constraint fails on the first invocation + 435) Method visibility for verified doubles for an instance double (when the class is loaded) can expect a private instance method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1008 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:22 - 436) #any_instance setting a message expectation message count the 'never' constraint when combined with other expectations passes when the other expectations are met + 436) Method visibility for verified doubles for an instance double (when the class is loaded) preserves protected visibility when expecting a protected method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1016 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:36 - 437) #any_instance setting a message expectation message count the 'never' constraint when combined with other expectations fails when the other expectations are not met + 437) Method visibility for verified doubles for an instance double (when the class is loaded) preserves private visibility on a null object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1022 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:45 - 438) #any_instance setting a message expectation message count the 'at_least(n)' constraint fails for n invocations where n < 3 + 438) Method visibility for verified doubles for an instance double (when the class is loaded) preserves private visibility when allowing a private method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:964 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:28 - 439) #any_instance setting a message expectation message count the 'at_least(n)' constraint passes for n invocations where n > 3 + 439) Method visibility for verified doubles for an instance double (when the class is loaded) preserves private visibility when expecting a private method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:973 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:36 - 440) #any_instance setting a message expectation message count the 'at_least(n)' constraint passes for n invocations where n = 3 + 440) Method visibility for verified doubles for an instance double (when the class is loaded) can allow a protected instance method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:958 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:16 - 441) #any_instance setting a message expectation message count the 'twice' constraint passes for two invocations + 441) Method visibility for verified doubles for an instance double (when the class is loaded) preserves protected visibility on a null object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:875 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:45 - 442) #any_instance setting a message expectation message count the 'twice' constraint fails for more than two invocations + 442) Method visibility for verified doubles for an instance double (when the class is loaded) preserves protected visibility when allowing a protected method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:881 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:28 - 443) #any_instance setting a message expectation message count the 'once' constraint fails when an instance is declared but there are no invocations + 443) Method visibility for verified doubles for an instance double (when the class is loaded) can allow a private instance method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:856 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:16 - 444) #any_instance setting a message expectation message count the 'once' constraint fails when no instances are declared + 444) Method visibility for verified doubles for an instance double (when the class is loaded) can expect a protected instance method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:849 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:22 - 445) #any_instance setting a message expectation message count the 'once' constraint fails for more than one invocation + 445) Method visibility for verified doubles for a class double (when the class is loaded) preserves private visibility on a null object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:864 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:89 - 446) #any_instance setting a message expectation message count the 'once' constraint passes for one invocation + 446) Method visibility for verified doubles for a class double (when the class is loaded) can allow a protected instance method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:844 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:60 - 447) #any_instance setting a message expectation when an instance has been directly stubbed fails when a second instance to receive the message + 447) Method visibility for verified doubles for a class double (when the class is loaded) preserves protected visibility on a null object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:622 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:89 - 448) #any_instance setting a message expectation with an expectation is set on a method that exists fails if no instance is created and there are multiple expectations + 448) Method visibility for verified doubles for a class double (when the class is loaded) can expect a protected instance method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:754 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:66 - 449) #any_instance setting a message expectation with an expectation is set on a method that exists fails if an instance is created but no invocation occurs + 449) Method visibility for verified doubles for a class double (when the class is loaded) can allow a private instance method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:739 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:60 - 450) #any_instance setting a message expectation with an expectation is set on a method that exists fails if no instance is created + 450) Method visibility for verified doubles for a class double (when the class is loaded) preserves private visibility when allowing a private method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:747 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:72 - 451) #any_instance setting a message expectation with an expectation is set on a method that exists returns the expected value + 451) Method visibility for verified doubles for a class double (when the class is loaded) preserves protected visibility when allowing a protected method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:734 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:72 - 452) #any_instance setting a message expectation with an expectation is set on a method that exists after any one instance has received a message passes if subsequent invocations do not receive that message + 452) Method visibility for verified doubles for a class double (when the class is loaded) preserves protected visibility when expecting a protected method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:763 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:80 - 453) #any_instance setting a message expectation with an expectation is set on a method that exists after any one instance has received a message fails if the method is invoked on a second instance + 453) Method visibility for verified doubles for a class double (when the class is loaded) can expect a private instance method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:769 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:66 - 454) #any_instance setting a message expectation with argument matching fails when the arguments match but different instances are used + 454) Method visibility for verified doubles for a class double (when the class is loaded) preserves private visibility when expecting a private method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:813 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:80 - 455) #any_instance setting a message expectation with argument matching is not affected by the invocation of existing methods on other instances + 455) RSpec::Mocks::Double#and_yield with eval context as block argument passes an eval context object to the supplied block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:824 + # ./spec/rspec/mocks/and_yield_spec.rb:29 - 456) #any_instance setting a message expectation with argument matching returns the expected value when arguments match + 456) RSpec::Mocks::Double#and_yield with eval context as block argument evaluates the block passed to the stubbed method in the context of the supplied eval context # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:807 + # ./spec/rspec/mocks/and_yield_spec.rb:35 - 457) #any_instance setting a message expectation with argument matching fails when arguments do not match + 457) RSpec::Mocks::Double#and_yield with eval context as block argument evaluates the supplied block as it is read # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:831 + # ./spec/rspec/mocks/and_yield_spec.rb:21 - 458) #any_instance setting a message expectation when the class has a prepended module prevents mocking a method that is defined on the prepended module + 458) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments can yield to a block that uses `super` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:602 + # ./spec/rspec/mocks/and_yield_spec.rb:128 - 459) #any_instance setting a message expectation when the class has a prepended module allows mocking a method that is not defined on the prepended module + 459) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments passes when expectations set on the eval context and yielded arguments are met # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:595 + # ./spec/rspec/mocks/and_yield_spec.rb:84 - 460) #any_instance passing the receiver to the implementation block when configured not to pass the instance an any instance stub does not pass the instance to the implementation block + 460) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments fails when expectations set on the eval context and yielded arguments are not met # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1231 + # ./spec/rspec/mocks/and_yield_spec.rb:139 - 461) #any_instance passing the receiver to the implementation block when configured not to pass the instance an any instance stub does not cause with to fail when the instance is passed + 461) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments that are optional yields the default argument when the argument is not given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1240 + # ./spec/rspec/mocks/and_yield_spec.rb:103 - 462) #any_instance passing the receiver to the implementation block when configured to pass the instance an any instance expectation doesn't effect with + 462) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments that are optional yields given argument when the argument is given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1207 + # ./spec/rspec/mocks/and_yield_spec.rb:114 - 463) #any_instance passing the receiver to the implementation block when configured to pass the instance an any instance expectation passes the instance as the first arg of the implementation block + 463) RSpec::Mocks::Double#and_yield with eval context as block argument and no yielded arguments passes when expectations set on the eval context are met # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1213 + # ./spec/rspec/mocks/and_yield_spec.rb:52 - 464) #any_instance passing the receiver to the implementation block when configured to pass the instance an any instance stub passes the instance as the first arg of the implementation block + 464) RSpec::Mocks::Double#and_yield with eval context as block argument and no yielded arguments fails when expectations set on the eval context are not met # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1185 + # ./spec/rspec/mocks/and_yield_spec.rb:66 - 465) #any_instance passing the receiver to the implementation block when configured to pass the instance an any instance stub does not pass the instance to and_call_original + 465) RSpec::Mocks::Double#and_yield when the method double has been constrained by `with` uses the default stub if the provided args do not match # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1194 + # ./spec/rspec/mocks/and_yield_spec.rb:7 - 466) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_yield' + 466) RSpec::Mocks::ErrorGenerator formatting arguments formats time objects with increased precision # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:63 + # ./spec/rspec/mocks/error_generator_spec.rb:31 - 467) #any_instance invocation order when stubbing allows chaining 'and_yield' + 467) RSpec::Mocks::ErrorGenerator formatting arguments on non-matcher objects that define #description does not use the object's description # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:71 + # ./spec/rspec/mocks/error_generator_spec.rb:42 - 468) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_return' + 468) RSpec::Mocks::ErrorGenerator formatting arguments on matcher objects that do not define description does not use the object's description # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:55 + # ./spec/rspec/mocks/error_generator_spec.rb:62 - 469) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_throw' + 469) RSpec::Mocks::ErrorGenerator formatting arguments on matcher objects that define description uses the object's description # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:67 + # ./spec/rspec/mocks/error_generator_spec.rb:52 - 470) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_raise' + 470) RSpec::Mocks::ErrorGenerator formatting arguments on matcher objects on default method stub error message display starts in new line # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:59 + # ./spec/rspec/mocks/error_generator_spec.rb:79 - 471) #any_instance invocation order when setting a message expectation raises an error if 'with' follows 'and_return' + 471) RSpec::Mocks::ErrorGenerator when inserting a backtrace line produces stacktraces that match how `raise` produces stacktraces (on JRuby `caller` and `raise` can differ about the presence of java frames) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:78 + # ./spec/rspec/mocks/error_generator_spec.rb:15 - 472) #any_instance invocation order when setting a message expectation raises an error if 'with' follows 'and_raise' + 472) and_call_original on a pure test double raises an error even if the double object responds to the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:83 + # ./spec/rspec/mocks/and_call_original_spec.rb:362 - 473) Serialization of mocked objects marshals the same with and without stubbing + 473) and_call_original on a partial double that overrides #method still works even though #method has been overridden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/serialization_spec.rb:84 + # ./spec/rspec/mocks/and_call_original_spec.rb:344 - 474) Serialization of mocked objects with YAML loaded using Psych as the YAML engine behaves like normal YAML serialization serializes to yaml the same with and without stubbing, using YAML.dump + 474) and_call_original on a partial double that overrides #method works for a singleton method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/serialization_spec.rb:47 + # ./spec/rspec/mocks/and_call_original_spec.rb:349 - 475) Serialization of mocked objects with YAML loaded using Psych as the YAML engine behaves like normal YAML serialization serializes to yaml the same with and without stubbing, using #to_yaml + 475) and_call_original on a partial double works for aliased methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/serialization_spec.rb:43 + # ./spec/rspec/mocks/and_call_original_spec.rb:225 - 476) Serialization of mocked objects without YAML loaded does not add #to_yaml to the stubbed object + 476) and_call_original on a partial double finds the method on the most direct ancestor even if the method is available on more distant ancestors # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/serialization_spec.rb:77 + # ./spec/rspec/mocks/and_call_original_spec.rb:124 - 477) After a test double has been torn down for a plain double disallows previously stubbed methods + 477) and_call_original on a partial double passes args and blocks through to the original method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:19 + # ./spec/rspec/mocks/and_call_original_spec.rb:76 - 478) After a test double has been torn down for a plain double disallows previously mocked methods + 478) and_call_original on a partial double works for class methods defined on a grandparent class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:15 + # ./spec/rspec/mocks/and_call_original_spec.rb:207 - 479) After a test double has been torn down for a plain double disallows being turned into a null object + 479) and_call_original on a partial double works for method added through an extended module onto a class's ancestor # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:47 + # ./spec/rspec/mocks/and_call_original_spec.rb:117 - 480) After a test double has been torn down for a plain double disallows being checked for nullness + 480) and_call_original on a partial double works for methods added through an extended module # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:51 + # ./spec/rspec/mocks/and_call_original_spec.rb:111 - 481) After a test double has been torn down for a plain double disallows stubbing new methods (with receive) + 481) and_call_original on a partial double works for class methods defined on the Class class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:23 + # ./spec/rspec/mocks/and_call_original_spec.rb:213 - 482) After a test double has been torn down for a plain double disallows mocking new methods + 482) and_call_original on a partial double works for methods that accept keyword arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:41 + # ./spec/rspec/mocks/and_call_original_spec.rb:237 - 483) After a test double has been torn down for a plain double disallows stubbing new message chains + 483) and_call_original on a partial double ignores prior declared stubs # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:35 + # ./spec/rspec/mocks/and_call_original_spec.rb:70 - 484) After a test double has been torn down for a plain double disallows stubbing new methods (with receive_messages) + 484) and_call_original on a partial double warns when you override an existing implementation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:29 + # ./spec/rspec/mocks/and_call_original_spec.rb:90 - 485) After a test double has been torn down for an object_double disallows previously mocked methods + 485) and_call_original on a partial double errors when you pass through the wrong number of args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:15 + # ./spec/rspec/mocks/and_call_original_spec.rb:82 - 486) After a test double has been torn down for an object_double disallows stubbing new methods (with receive_messages) + 486) and_call_original on a partial double finds the method on the most direct singleton class ancestors even if the method is available on more distant ancestors # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:29 + # ./spec/rspec/mocks/and_call_original_spec.rb:133 - 487) After a test double has been torn down for an object_double disallows stubbing new message chains + 487) and_call_original on a partial double passes the received message through to the original method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:35 + # ./spec/rspec/mocks/and_call_original_spec.rb:65 - 488) After a test double has been torn down for an object_double disallows stubbing new methods (with receive) + 488) and_call_original on a partial double works for instance methods defined on the object's class's superclass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:23 + # ./spec/rspec/mocks/and_call_original_spec.rb:218 - 489) After a test double has been torn down for an object_double disallows mocking new methods + 489) and_call_original on a partial double works for class methods defined on a superclass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:41 + # ./spec/rspec/mocks/and_call_original_spec.rb:188 - 490) After a test double has been torn down for an object_double disallows being turned into a null object + 490) and_call_original on a partial double when a non-existent method has been stubbed previously restores the original NameError behavior # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:47 + # ./spec/rspec/mocks/and_call_original_spec.rb:54 - 491) After a test double has been torn down for an object_double disallows previously stubbed methods + 491) and_call_original on a partial double when using any_instance works for instance methods that use double splat # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:19 + # ./spec/rspec/mocks/and_call_original_spec.rb:149 - 492) After a test double has been torn down for an object_double disallows being checked for nullness + 492) and_call_original on a partial double when using any_instance works for instance methods that use optional keyword arguments with an argument supplied # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:51 + # ./spec/rspec/mocks/and_call_original_spec.rb:159 - 493) After a test double has been torn down for an instance_double disallows being turned into a null object + 493) and_call_original on a partial double when using any_instance works for instance methods defined on the class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:47 + # ./spec/rspec/mocks/and_call_original_spec.rb:143 - 494) After a test double has been torn down for an instance_double disallows previously mocked methods + 494) and_call_original on a partial double when using any_instance works for instance methods defined on the superclass of the class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:15 + # ./spec/rspec/mocks/and_call_original_spec.rb:176 - 495) After a test double has been torn down for an instance_double disallows mocking new methods + 495) and_call_original on a partial double when using any_instance works when mocking the method on one class and calling the method on an instance of a subclass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:41 + # ./spec/rspec/mocks/and_call_original_spec.rb:182 - 496) After a test double has been torn down for an instance_double disallows stubbing new methods (with receive_messages) + 496) and_call_original on a partial double when using any_instance works for instance methods that use required keyword arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:29 + # ./spec/rspec/mocks/and_call_original_spec.rb:168 - 497) After a test double has been torn down for an instance_double disallows being checked for nullness + 497) and_call_original on a partial double when using any_instance works for instance methods that use optional keyword arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:51 + # ./spec/rspec/mocks/and_call_original_spec.rb:154 - 498) After a test double has been torn down for an instance_double disallows stubbing new methods (with receive) + 498) and_call_original on a partial double on an object with a method propagated by method_missing works for the method of any_instance mock propagated by method missing # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:23 + # ./spec/rspec/mocks/and_call_original_spec.rb:271 - 499) After a test double has been torn down for an instance_double disallows stubbing new message chains + 499) and_call_original on a partial double on an object with a method propagated by method_missing works for the method propagated by method missing # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:35 + # ./spec/rspec/mocks/and_call_original_spec.rb:266 - 500) After a test double has been torn down for an instance_double disallows previously stubbed methods + 500) and_call_original on a partial double when a method that exists has been stubbed previously restores the original behavior # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:19 + # ./spec/rspec/mocks/and_call_original_spec.rb:46 - 501) After a test double has been torn down for a class_double disallows previously stubbed methods + 501) and_call_original on a partial double for singleton methods works # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:19 + # ./spec/rspec/mocks/and_call_original_spec.rb:97 - 502) After a test double has been torn down for a class_double disallows stubbing new message chains + 502) and_call_original on a partial double for singleton methods works for SimpleDelegator subclasses # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:35 + # ./spec/rspec/mocks/and_call_original_spec.rb:103 - 503) After a test double has been torn down for a class_double disallows being turned into a null object + 503) and_call_original on a partial double when a class method is stubbed in the superclass still works for class methods defined on a superclass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:47 + # ./spec/rspec/mocks/and_call_original_spec.rb:195 - 504) After a test double has been torn down for a class_double disallows stubbing new methods (with receive) + 504) and_call_original on a partial double on an object that defines method_missing works for an any_instance partial mock # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:23 + # ./spec/rspec/mocks/and_call_original_spec.rb:300 - 505) After a test double has been torn down for a class_double disallows stubbing new methods (with receive_messages) + 505) and_call_original on a partial double on an object that defines method_missing raises an error on invocation if method_missing does not handle the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:29 + # ./spec/rspec/mocks/and_call_original_spec.rb:312 - 506) After a test double has been torn down for a class_double disallows mocking new methods + 506) and_call_original on a partial double on an object that defines method_missing raises an error for an unhandled message for an any_instance partial mock # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:41 + # ./spec/rspec/mocks/and_call_original_spec.rb:305 - 507) After a test double has been torn down for a class_double disallows being checked for nullness + 507) and_call_original on a partial double on an object that defines method_missing works when the method_missing definition handles the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:51 + # ./spec/rspec/mocks/and_call_original_spec.rb:295 - 508) After a test double has been torn down for a class_double disallows previously mocked methods + 508) a message expectation with multiple invoke handlers with a specified count equal to the number of values returns values in order to consecutive calls # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/expiration_spec.rb:15 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:47 - 509) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it was previously defined + 509) a message expectation with multiple return values specifying at_least less than the number of values fails when called less than the specified number # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:511 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:81 - 510) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has been stubbed + 510) a message expectation with multiple return values specifying at_least less than the number of values uses the last return value for subsequent calls # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:513 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:74 - 511) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has not been hidden + 511) a message expectation with multiple return values specifying at_least less than the number of values when method is stubbed too fails when called less than the specified number # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:514 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:96 - 512) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has been mutated + 512) a message expectation with multiple return values specifying at_least less than the number of values when method is stubbed too uses the last value for subsequent calls # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:512 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:89 - 513) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates the name is valid + 513) A class double with the doubled class loaded can transfer nested constants to the double # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:510 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:92 - 514) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice exposes its name + 514) A class double with the doubled class loaded checks that stubbed methods are invoked with the correct arity # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:509 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:50 - 515) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice exposes its original value + 515) A class double with the doubled class loaded verifies arguments for null objects # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:515 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:115 - 516) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it has not been hidden + 516) A class double with the doubled class loaded allows dynamically defined class method stubs with arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:500 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:57 - 517) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it has not been stubbed + 517) A class double with the doubled class loaded allows class to be specified by constant # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:499 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:76 - 518) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant exposes its name + 518) A class double with the doubled class loaded only allows defined methods for null objects # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:495 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:108 - 519) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates the name is valid + 519) A class double with the doubled class loaded can replace existing constants for the duration of the test # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:496 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:81 - 520) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant returns nil for the original value + 520) A class double with the doubled class loaded gives a descriptive error message for NoMethodError # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:501 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:43 - 521) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it was not previously defined + 521) A class double with the doubled class loaded validates `with` args against the method signature when stubbing a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:497 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:123 - 522) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it has not been mutated + 522) A class double with the doubled class loaded allows dynamically defined class methods to be expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:498 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:71 - 523) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has been hidden + 523) A class double with the doubled class loaded only allows class methods that exist to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:554 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:12 - 524) RSpec::Mocks::Constant.original for a previously defined hidden constant exposes its original value + 524) A class double with the doubled class loaded doesn't suggest `instance_double` when a non-instance method is stubbed' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:555 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:38 - 525) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has been mutated + 525) A class double with the doubled class loaded allows dynamically defined class method mocks with arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:552 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:64 - 526) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has not been stubbed + 526) A class double with the doubled class loaded correctly verifies expectations when constant is removed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:553 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:99 - 527) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it was previously defined + 527) A class double with the doubled class loaded only allows class methods that exist to be expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:551 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:20 - 528) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates the name is valid + 528) A class double with the doubled class loaded suggests using `instance_double` when an instance method is stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:550 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:33 - 529) RSpec::Mocks::Constant.original for a previously defined hidden constant exposes its name + 529) A class double with the doubled class loaded when the class const has been previously stubbed uses the original class to verify against for `class_double('ClassName')` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:549 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:211 - 530) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has been stubbed + 530) A class double with the doubled class loaded when the class const has been previously stubbed uses the original class to verify against for `instance_double(ClassName)` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:474 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:217 - 531) RSpec::Mocks::Constant.original for a previously undefined stubbed constant returns nil for the original value + 531) A class double with the doubled class loaded when given a class that has an overridden `#name` method properly verifies # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:476 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:193 - 532) RSpec::Mocks::Constant.original for a previously undefined stubbed constant exposes its name + 532) A class double with the doubled class loaded when given a class that has an overridden `#name` method can still stub the const # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:470 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:197 - 533) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates the name is valid + 533) A class double with the doubled class loaded when given an anonymous class properly verifies # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:471 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:184 - 534) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has not been hidden + 534) A class double with the doubled class loaded when `.new` is stubbed uses the method signature from `#initialize` for arg verification # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:475 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:135 - 535) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it was not previously defined + 535) A class double with the doubled class loaded when `.new` is stubbed on a class with a private `new` uses the method signature from `#initialize` for arg verification # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:472 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:167 - 536) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has been mutated + 536) A class double with the doubled class loaded when `.new` is stubbed on a class that has redefined `new` uses the method signature of the redefined `new` for arg verification # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:473 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:142 - 537) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been mutated + 537) A class double with the doubled class loaded when `.new` is stubbed on a class that has undefined `new` prevents it from being stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:447 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:154 - 538) RSpec::Mocks::Constant.original for a previously defined unstubbed constant exposes its original value + 538) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received forwards any block passed during method invocation to the `have_received` block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:450 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:146 - 539) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been hidden + 539) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received notifies failures via rspec-support's failure notification system # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:449 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:43 - 540) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it was previously defined + 540) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received takes a curly-bracket block and yields the arguments given to the stubbed method call # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:446 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:80 - 541) RSpec::Mocks::Constant.original for a previously defined unstubbed constant exposes its name + 541) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received passes if expectations against the yielded arguments pass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:444 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:100 - 542) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates the name is valid + 542) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received fails when the double has not received the given message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:445 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:35 - 543) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been stubbed + 543) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received produces an error message that matches the expected method if another method was called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:448 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:195 - 544) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has been mutated + 544) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received can generate a description after mocks have been torn down (e.g. when rspec-core requests it) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:566 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:188 - 545) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it was previously defined + 545) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received passes when a null object has received the given message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:565 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:30 - 546) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice exposes its name + 546) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received generates a useful description # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:563 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:183 - 547) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has not been stubbed + 547) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received fails when a null object has not received the given message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:567 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:54 - 548) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has been hidden + 548) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received fails when the method has not been previously stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:568 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:62 - 549) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice exposes its original value + 549) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received gives precedence to a `{ ... }` block when both forms are provided since that form actually binds to `receive` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:569 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:134 - 550) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates the name is valid + 550) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received passes if expectations against yielded keyword arguments pass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:564 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:111 - 551) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it was not previously defined + 551) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received passes when the double has received the given message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:485 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:25 - 552) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant exposes its name + 552) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received resets expectations on class methods when mocks are reset # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:483 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:156 - 553) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates the name is valid + 553) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received takes a do-end block and yields the arguments given to the stubbed method call # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:484 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:90 - 554) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has been mutated + 554) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received fails if expectations against the yielded arguments fail # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:486 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:124 - 555) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has not been hidden + 555) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received fails when the method has been mocked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:488 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:70 - 556) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has been stubbed + 556) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered fails when the messages are received out of order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:487 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:517 - 557) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant returns nil for the original value + 557) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered fails with exact receive counts when received out of order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:489 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:484 - 558) RSpec::Mocks::Constant.original for a previously undefined hidden constant returns nil for the original value + 558) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered passes with exact receive counts when received in order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:542 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:455 - 559) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not been hidden + 559) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered passes when the messages were received in order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:541 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:447 - 560) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not been mutated + 560) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered when used with `with` fails when the order is not matched # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:539 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:538 - 561) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates the name is valid + 561) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered when used with `with` passes when the order lines up # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:537 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:533 - 562) RSpec::Mocks::Constant.original for a previously undefined hidden constant exposes its name + 562) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered when used on individually allowed messages fails when the messages are received out of order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:536 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:560 - 563) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it was previously undefined + 563) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered when used on individually allowed messages passes when the messages were received in order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:538 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:555 - 564) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not not been stubbed + 564) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received with passes when the given args match the args used with the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:540 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:169 - 565) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it was not previously defined + 565) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received with fails when the given args do not match the args used with the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:525 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:174 - 566) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has not been hidden + 566) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts twice passes when the message was received twice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:528 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:381 - 567) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has been stubbed + 567) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts twice fails when the message was received once # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:527 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:389 - 568) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has been mutated + 568) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts twice fails when the message was received thrice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:526 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:398 - 569) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice returns nil for the original value + 569) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts once passes when the message was received once # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:529 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:355 - 570) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice exposes its name + 570) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts once fails when the message was never received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:523 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:361 - 571) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates the name is valid + 571) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts once fails when the message was received twice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:524 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:369 - 572) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has been stubbed + 572) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts exactly fails when the message was received fewer times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:461 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:315 - 573) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates the name is valid + 573) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts exactly fails when the message was received more times than expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:458 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:301 - 574) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it was previously defined + 574) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts exactly passes when the message was received the given number of times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:459 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:297 - 575) RSpec::Mocks::Constant.original for a previously defined stubbed constant exposes its name + 575) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts thrice passes when the message was received thrice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:457 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:411 - 576) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has been mutated + 576) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts thrice fails when the message was received more than three times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:460 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:430 - 577) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has not been hidden + 577) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts thrice fails when the message was received less than three times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:462 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:420 - 578) RSpec::Mocks::Constant.original for a previously defined stubbed constant exposes its original value + 578) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts at_least passes when the message was received the given number of times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:463 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:323 - 579) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been hidden + 579) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts at_least fails when the message was received fewer times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:581 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:331 - 580) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it was not previously defined + 580) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts at_least passes when the message was received more times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:578 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:327 - 581) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) exposes the provided string as the name + 581) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` only considers the calls with matching args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:576 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:215 - 582) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been stubbed + 582) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` when the message is received too few times includes the counts of calls with matching args in the error message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:580 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:239 - 583) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been mutated + 583) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` when the message is received too many times includes the counts of calls with matching args in the error message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:579 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:231 - 584) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) returns nil for its original value + 584) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` when constrained with grouped arguments `with` does not group counts on repeated arguments for a single message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:582 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:285 - 585) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates the name is invalid + 585) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` when constrained with grouped arguments `with` includes single arguments based on the method call that included them # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:577 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:264 - 586) A partial double includes the class name in the error when mocking a class method that is called an extra time with the wrong args + 586) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` when constrained with grouped arguments `with` groups the "got" arguments based on the method call that included them # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:145 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:247 - 587) A partial double names the class in the failure message + 587) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` when constrained with grouped arguments `with` keeps the array combinations distinguished in the group # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:12 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:273 - 588) A partial double allows `class` to be stubbed even when `any_instance` has already been used + 588) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` when the message is received without any args matching includes unmatched args in the error message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:32 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:221 - 589) A partial double can disallow messages from being received + 589) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts at_most passes when the message was received the given number of times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:64 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:339 - 590) A partial double names the class in the failure message when expectation is on class + 590) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts at_most passes when the message was received fewer times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:19 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:343 - 591) A partial double allows `respond_to?` to be stubbed + 591) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts at_most fails when the message was received more times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:46 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:347 - 592) A partial double allows a class and a subclass to both be stubbed + 592) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available allow(...).to have_received fails because it's nonsensical # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:100 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:629 - 593) A partial double can create a positive message expectation + 593) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received does not allow times to be used because it creates confusion # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:95 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 594) A partial double shares message expectations with clone + 594) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received fails when the double has received the given message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:160 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:576 - 595) A partial double verifies the method was called when expecting a message + 595) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received does not allow once to be used because it creates confusion # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:112 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 596) A partial double can accept the string form of a message for a positive message expectation + 596) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received does not allow at_most to be used because it creates confusion # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:119 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 597) A partial double can accept the string form of a message for a negative message expectation + 597) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received passes when the double has not received the given message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:124 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:571 - 598) A partial double can accept a hash as a message argument + 598) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received does not allow exactly to be used because it creates confusion # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:79 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 599) A partial double uses reports nil in the error message + 599) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received does not allow at_least to be used because it creates confusion # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:132 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 600) A partial double does not conflict with @options in the object + 600) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received does not allow twice to be used because it creates confusion # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:26 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 601) A partial double clears message expectations when `dup`ed + 601) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received fails when the method has not been previously stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:168 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:595 - 602) A partial double does not create an any_instance recorder when a message is allowed + 602) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received notifies failures via rspec-support's failure notification system # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:6 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:584 - 603) A partial double can accept an inner hash as a message argument + 603) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received with passes when the given args do not match the args used with the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:86 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:604 - 604) A partial double can expect a message and set a return value + 604) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received with fails when the given args match the args used with the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:74 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:609 - 605) RSpec::Mocks::InstanceMethodStasher stashes the current implementation of an instance method so it can be temporarily replaced + 605) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect_any_instance_of(...).to have_received fails because we dont want to support it # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/instance_method_stasher_spec.rb:18 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:645 - 606) RSpec::Mocks::InstanceMethodStasher only stashes methods directly defined on the given class, not its ancestors + 606) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect_any_instance_of(...).not_to have_received fails because we dont want to support it # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/instance_method_stasher_spec.rb:45 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:653 - 607) RSpec::Mocks::InstanceMethodStasher does not unnecessarily create obfuscated aliased methods + 607) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available allow_any_instance_of(...).to have_received fails because it's nonsensical # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/instance_method_stasher_spec.rb:58 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:637 - 608) RSpec::Mocks::InstanceMethodStasher stashes private instance methods + 608) An instance double with the doubled class not loaded includes the doubled module in errors for unexpected messages # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/instance_method_stasher_spec.rb:32 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:12 - 609) RSpec::Mocks::InstanceMethodStasher undefines the original method + 609) An instance double with the doubled class not loaded allows any instance method to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/instance_method_stasher_spec.rb:67 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:19 - 610) #allow_message_expectations_on_nil doesnt error when marshalled + 610) An instance double with the doubled class not loaded handles classes that are materialized after mocking # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:85 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:35 - 611) #allow_message_expectations_on_nil does not affect subsequent examples + 611) An instance double with the doubled class not loaded allows any instance method to be expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:70 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:25 - 612) only stashing the original method keeps the original method intact after multiple expectations are added on the same method + 612) An instance double with the doubled class not loaded when the class const has been previously stubbed treats the class as unloaded for `instance_double(NonLoadedClass)` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stash_spec.rb:12 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:64 - 613) expect(...).to receive_messages(:a => 1, :b => 2) sets up multiple expectations + 613) An instance double with the doubled class not loaded when the class const has been previously stubbed treats the class as unloaded for `instance_double('NonLoadedClass')` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:81 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:59 - 614) expect(...).to receive_messages(:a => 1, :b => 2) fails with a sensible message + 614) An instance double with the doubled class not loaded for null objects reports it responds to any message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:87 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:49 - 615) expect(...).to receive_messages(:a => 1, :b => 2) provides a matcher description + 615) An instance double with the doubled class not loaded for null objects returns self from any message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:101 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:45 - 616) expect(...).to receive_messages(:a => 1, :b => 2) fails with the correct location + 616) #any_instance when used after the test has finished restores the original behaviour, even if the expectation fails # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:93 + # ./spec/rspec/mocks/any_instance_spec.rb:1331 - 617) expect(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a do; end; block is given + 617) #any_instance when used after the test has finished restores the original behavior of a stubbed method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 + # ./spec/rspec/mocks/any_instance_spec.rb:1312 - 618) expect(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given + 618) #any_instance when used after the test has finished does not restore a stubbed method not originally implemented in the class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 + # ./spec/rspec/mocks/any_instance_spec.rb:1323 - 619) expect(...).to receive_messages(:a => 1, :b => 2) behaves like handles partially mocked objects correctly resets partially mocked objects correctly + 619) #any_instance when a class overrides Object#method mocks the method correctly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:22 + # ./spec/rspec/mocks/any_instance_spec.rb:1305 - 620) allow(...).to receive_messages(:a => 1, :b => 2) allows the object to respond to multiple messages + 620) #any_instance when a class overrides Object#method stubs the method correctly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:35 + # ./spec/rspec/mocks/any_instance_spec.rb:1300 - 621) allow(...).to receive_messages(:a => 1, :b => 2) behaves like handles partially mocked objects correctly resets partially mocked objects correctly + 621) #any_instance expect_any_instance_of(...).not_to receive fails if the method is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:22 + # ./spec/rspec/mocks/any_instance_spec.rb:460 - 622) allow(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given + 622) #any_instance expect_any_instance_of(...).not_to receive passes if no method is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 + # ./spec/rspec/mocks/any_instance_spec.rb:468 - 623) allow(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a do; end; block is given + 623) #any_instance expect_any_instance_of(...).not_to receive passes if only a different method is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 + # ./spec/rspec/mocks/any_instance_spec.rb:472 - 624) RSpec::Mocks.with_temporary_scope returns the result of the passed block + 624) #any_instance expect_any_instance_of(...).not_to receive affects previously stubbed instances # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks_spec.rb:212 + # ./spec/rspec/mocks/any_instance_spec.rb:477 - 625) RSpec::Mocks.with_temporary_scope tears down even if an error occurs + 625) #any_instance expect_any_instance_of(...).not_to receive prevents confusing double-negative expressions involving `never` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks_spec.rb:189 + # ./spec/rspec/mocks/any_instance_spec.rb:512 - 626) RSpec::Mocks.with_temporary_scope does not verify if an error occurs before the block completes + 626) #any_instance expect_any_instance_of(...).not_to receive when used in combination with should_receive passes if only the expected message is received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks_spec.rb:202 + # ./spec/rspec/mocks/any_instance_spec.rb:504 - 627) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed const does not allow the stubbed constants to be used after the scope in before(:all) + 627) #any_instance expect_any_instance_of(...).not_to receive with constraints passes if the method is called with different parameters # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks_spec.rb:142 + # ./spec/rspec/mocks/any_instance_spec.rb:497 - 628) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed const allows the stubbed constants to be used + 628) #any_instance expect_any_instance_of(...).not_to receive with constraints fails if the method is called with the specified parameters # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks_spec.rb:133 + # ./spec/rspec/mocks/any_instance_spec.rb:490 - 629) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed const does not allow the stubbed constants to be used in the examples + 629) #any_instance setting a message expectation does not modify the return value of stubs set on an instance of a subclass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks_spec.rb:137 + # ./spec/rspec/mocks/any_instance_spec.rb:563 - 630) RSpec::Mocks.with_temporary_scope in a before(:all) with an any_instance stub allows the stub to be used + 630) #any_instance setting a message expectation does not set the expectation on every instance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks_spec.rb:173 + # ./spec/rspec/mocks/any_instance_spec.rb:547 - 631) RSpec::Mocks.with_temporary_scope in a before(:all) with an any_instance stub does not allow the double to be used after the scope in before(:all) + 631) #any_instance setting a message expectation properly notifies any instance recorders at multiple levels of hierarchy when a directly stubbed object receives a message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks_spec.rb:183 + # ./spec/rspec/mocks/any_instance_spec.rb:572 - 632) RSpec::Mocks.with_temporary_scope in a before(:all) with an any_instance stub does not allow the double to be used in the examples + 632) #any_instance setting a message expectation works with a SimpleDelegator subclass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks_spec.rb:177 + # ./spec/rspec/mocks/any_instance_spec.rb:792 - 633) RSpec::Mocks.with_temporary_scope in a before(:all) with an unmet mock expectation fails with a mock expectation error + 633) #any_instance setting a message expectation affects previously stubbed instances # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks_spec.rb:158 + # ./spec/rspec/mocks/any_instance_spec.rb:538 - 634) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed double does not allow the double to be used after the scope in before(:all) + 634) #any_instance setting a message expectation works with a BasicObject subclass that mixes in Kernel # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks_spec.rb:117 + # ./spec/rspec/mocks/any_instance_spec.rb:782 - 635) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed double allows the stubbed double to be used + 635) #any_instance setting a message expectation handles inspect accessing expected methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks_spec.rb:107 + # ./spec/rspec/mocks/any_instance_spec.rb:523 - 636) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed double does not allow the double to be used in the examples + 636) #any_instance setting a message expectation does not modify the return value of stubs set on an instance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks_spec.rb:111 + # ./spec/rspec/mocks/any_instance_spec.rb:555 - 637) RSpec::Mocks behaves like library wide checks issues no warnings when the spec files are loaded + 637) #any_instance setting a message expectation properly notifies any instance recorders when they are created after the object's mock proxy # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # + # ./spec/rspec/mocks/any_instance_spec.rb:585 - 638) RSpec::Mocks behaves like library wide checks has no malformed whitespace + 638) #any_instance setting a message expectation when the class has an included module allows mocking a method that is defined on the module # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # + # ./spec/rspec/mocks/any_instance_spec.rb:612 - 639) RSpec::Mocks behaves like library wide checks issues no warnings when loaded + 639) #any_instance setting a message expectation when the class has a prepended module allows mocking a method that is not defined on the prepended module # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # + # ./spec/rspec/mocks/any_instance_spec.rb:595 - 640) RSpec::Mocks behaves like library wide checks only loads a known set of stdlibs so gem authors are forced to load libs they use to have passing specs + 640) #any_instance setting a message expectation when the class has a prepended module prevents mocking a method that is defined on the prepended module # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # + # ./spec/rspec/mocks/any_instance_spec.rb:602 - 641) RSpec::Mocks when there is a `let` declaration that overrides an argument matcher allows the `let` definition to win + 641) #any_instance setting a message expectation with an expectation is set on a method that exists returns the expected value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks_spec.rb:229 + # ./spec/rspec/mocks/any_instance_spec.rb:734 - 642) RSpec::Mocks.verify delegates to the space + 642) #any_instance setting a message expectation with an expectation is set on a method that exists fails if no instance is created and there are multiple expectations # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks_spec.rb:42 + # ./spec/rspec/mocks/any_instance_spec.rb:754 - 643) RSpec::Mocks.setup starts a new space scope that is later removed by .teardown + 643) #any_instance setting a message expectation with an expectation is set on a method that exists fails if an instance is created but no invocation occurs # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks_spec.rb:76 + # ./spec/rspec/mocks/any_instance_spec.rb:739 - 644) RSpec::Mocks.teardown does not put rspec-mocks into an inconsistent state when called extra times + 644) #any_instance setting a message expectation with an expectation is set on a method that exists fails if no instance is created # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks_spec.rb:61 + # ./spec/rspec/mocks/any_instance_spec.rb:747 - 645) RSpec::Mocks.teardown resets method stubs + 645) #any_instance setting a message expectation with an expectation is set on a method that exists after any one instance has received a message passes if subsequent invocations do not receive that message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks_spec.rb:54 + # ./spec/rspec/mocks/any_instance_spec.rb:763 - 646) RSpec::Mocks.configuration returns a memoized configuration instance + 646) #any_instance setting a message expectation with an expectation is set on a method that exists after any one instance has received a message fails if the method is invoked on a second instance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks_spec.rb:89 + # ./spec/rspec/mocks/any_instance_spec.rb:769 - 647) argument matchers matching handling arbitrary matchers fails when given an arbitrary object that returns false from #=== + 647) #any_instance setting a message expectation message count the 'never' constraint passes for 0 invocations # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:352 + # ./spec/rspec/mocks/any_instance_spec.rb:1003 - 648) argument matchers matching handling arbitrary matchers matches any arbitrary object using #=== + 648) #any_instance setting a message expectation message count the 'never' constraint fails on the first invocation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:337 + # ./spec/rspec/mocks/any_instance_spec.rb:1008 - 649) argument matchers matching handling arbitrary matchers matches against a Matcher + 649) #any_instance setting a message expectation message count the 'never' constraint when combined with other expectations passes when the other expectations are met # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:345 + # ./spec/rspec/mocks/any_instance_spec.rb:1016 - 650) argument matchers matching hash_excluding matches hash with hash_excluding same hash + 650) #any_instance setting a message expectation message count the 'never' constraint when combined with other expectations fails when the other expectations are not met # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:264 + # ./spec/rspec/mocks/any_instance_spec.rb:1022 - 651) argument matchers matching hash_excluding handles non matching instances nicely + 651) #any_instance setting a message expectation message count the 'at_least(n)' constraint passes for n invocations where n > 3 # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:269 + # ./spec/rspec/mocks/any_instance_spec.rb:973 - 652) argument matchers matching handling objects with a wrong definition of `==` that raises errors for other types fails when matched against an unequal instance of the same class + 652) #any_instance setting a message expectation message count the 'at_least(n)' constraint fails for n invocations where n < 3 # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:378 + # ./spec/rspec/mocks/any_instance_spec.rb:964 - 653) argument matchers matching handling objects with a wrong definition of `==` that raises errors for other types matches against an equal instance of the same type + 653) #any_instance setting a message expectation message count the 'at_least(n)' constraint passes for n invocations where n = 3 # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:373 + # ./spec/rspec/mocks/any_instance_spec.rb:958 - 654) argument matchers matching handling objects with a wrong definition of `==` that raises errors for other types can match multiple instances of the type against multiple equal instances of the type + 654) #any_instance setting a message expectation message count the 'thrice' constraint fails for less than three invocations # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:383 + # ./spec/rspec/mocks/any_instance_spec.rb:906 - 655) argument matchers matching any_args as the only arg passed to `with` matches many args + 655) #any_instance setting a message expectation message count the 'thrice' constraint fails for more than three invocations # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:143 + # ./spec/rspec/mocks/any_instance_spec.rb:898 - 656) argument matchers matching any_args as the only arg passed to `with` matches one arg + 656) #any_instance setting a message expectation message count the 'thrice' constraint passes for three invocations # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:139 + # ./spec/rspec/mocks/any_instance_spec.rb:892 - 657) argument matchers matching any_args as the only arg passed to `with` matches no args + 657) #any_instance setting a message expectation message count the 'once' constraint fails when no instances are declared # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:135 + # ./spec/rspec/mocks/any_instance_spec.rb:849 - 658) argument matchers matching any_args as the middle of three args matches a call of three args when it matches the first and last args + 658) #any_instance setting a message expectation message count the 'once' constraint fails for more than one invocation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:203 + # ./spec/rspec/mocks/any_instance_spec.rb:864 - 659) argument matchers matching any_args as the middle of three args matches a call of four args when it matches the first and last args + 659) #any_instance setting a message expectation message count the 'once' constraint fails when an instance is declared but there are no invocations # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:207 + # ./spec/rspec/mocks/any_instance_spec.rb:856 - 660) argument matchers matching any_args as the middle of three args matches a call of two args when it matches the first and last args + 660) #any_instance setting a message expectation message count the 'once' constraint passes for one invocation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:199 + # ./spec/rspec/mocks/any_instance_spec.rb:844 - 661) argument matchers matching any_args as the middle of three args does not match a call where the first and last args do not match + 661) #any_instance setting a message expectation message count the 'exactly(n)' constraint passes for n invocations where n = 3 # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:211 + # ./spec/rspec/mocks/any_instance_spec.rb:933 - 662) argument matchers matching any_args as the middle of three args does not match a call of no args + 662) #any_instance setting a message expectation message count the 'exactly(n)' constraint fails for n invocations where n < 3 # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:215 + # ./spec/rspec/mocks/any_instance_spec.rb:939 - 663) argument matchers matching any_args as the last of three args matches a call of two args when it matches the first two explicit args + 663) #any_instance setting a message expectation message count the 'exactly(n)' constraint fails for n invocations where n > 3 # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:151 + # ./spec/rspec/mocks/any_instance_spec.rb:948 - 664) argument matchers matching any_args as the last of three args does not match a call of no args + 664) #any_instance setting a message expectation message count the 'exactly(n)' constraint time alias passes for 1 invocation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:167 + # ./spec/rspec/mocks/any_instance_spec.rb:918 - 665) argument matchers matching any_args as the last of three args matches a call of four args when it matches the first two explicit args + 665) #any_instance setting a message expectation message count the 'exactly(n)' constraint time alias fails for 2 invocations # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:159 + # ./spec/rspec/mocks/any_instance_spec.rb:924 - 666) argument matchers matching any_args as the last of three args matches a call of three args when it matches the first two explicit args + 666) #any_instance setting a message expectation message count the 'at_most(n)' constraint passes for n invocations where n < 3 # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:155 + # ./spec/rspec/mocks/any_instance_spec.rb:987 - 667) argument matchers matching any_args as the last of three args does not match a call where the first two args do not match + 667) #any_instance setting a message expectation message count the 'at_most(n)' constraint fails for n invocations where n > 3 # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:163 + # ./spec/rspec/mocks/any_instance_spec.rb:993 - 668) argument matchers matching any_args as the first of three args matches a call of four args when it matches the last two explicit args + 668) #any_instance setting a message expectation message count the 'at_most(n)' constraint passes for n invocations where n = 3 # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:183 + # ./spec/rspec/mocks/any_instance_spec.rb:981 - 669) argument matchers matching any_args as the first of three args matches a call of two args when it matches the last two explicit args + 669) #any_instance setting a message expectation message count the 'twice' constraint fails for more than two invocations # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:175 + # ./spec/rspec/mocks/any_instance_spec.rb:881 - 670) argument matchers matching any_args as the first of three args does not match a call where the last two args do not match + 670) #any_instance setting a message expectation message count the 'twice' constraint passes for two invocations # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:187 + # ./spec/rspec/mocks/any_instance_spec.rb:875 - 671) argument matchers matching any_args as the first of three args does not match a call of no args + 671) #any_instance setting a message expectation with argument matching returns the expected value when arguments match # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:191 + # ./spec/rspec/mocks/any_instance_spec.rb:807 - 672) argument matchers matching any_args as the first of three args matches a call of three args when it matches the last two explicit args + 672) #any_instance setting a message expectation with argument matching fails when the arguments match but different instances are used # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:179 + # ./spec/rspec/mocks/any_instance_spec.rb:813 - 673) argument matchers matching any_args when passed twice immediately signals that this is invalid + 673) #any_instance setting a message expectation with argument matching is not affected by the invocation of existing methods on other instances # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:221 + # ./spec/rspec/mocks/any_instance_spec.rb:824 - 674) argument matchers matching array_excluding fails array_excluding when using the fuzzy matcher + 674) #any_instance setting a message expectation with argument matching fails when arguments do not match # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:328 + # ./spec/rspec/mocks/any_instance_spec.rb:831 - 675) argument matchers matching array_excluding matches array_excluding when using the fuzzy matcher + 675) #any_instance setting a message expectation when argument matching is used and an instance has stubbed the message fails on verify if the arguments do not match # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:323 + # ./spec/rspec/mocks/any_instance_spec.rb:636 - 676) argument matchers matching array_excluding fails array_excluding when is the same array + 676) #any_instance setting a message expectation when argument matching is used and an instance has stubbed the message passes on verify if the arguments do match # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:309 + # ./spec/rspec/mocks/any_instance_spec.rb:645 - 677) argument matchers matching array_excluding matches array with array_excluding different array + 677) #any_instance setting a message expectation when an instance has been directly stubbed fails when a second instance to receive the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:304 + # ./spec/rspec/mocks/any_instance_spec.rb:622 - 678) argument matchers matching array_excluding fails array_excluding when arg contains some elements + 678) #any_instance setting a message expectation with an expectation is set on a method which does not exist allows expectations on instances to take priority # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:316 + # ./spec/rspec/mocks/any_instance_spec.rb:684 - 679) argument matchers matching boolean accepts true as boolean + 679) #any_instance setting a message expectation with an expectation is set on a method which does not exist fails if no instance is created and there are multiple expectations # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:11 + # ./spec/rspec/mocks/any_instance_spec.rb:676 - 680) argument matchers matching boolean rejects non boolean + 680) #any_instance setting a message expectation with an expectation is set on a method which does not exist fails if an instance is created but no invocation occurs # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:21 + # ./spec/rspec/mocks/any_instance_spec.rb:661 - 681) argument matchers matching boolean accepts false as boolean + 681) #any_instance setting a message expectation with an expectation is set on a method which does not exist returns the expected value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:16 + # ./spec/rspec/mocks/any_instance_spec.rb:656 - 682) argument matchers matching hash_including fails hash_including with missing key + 682) #any_instance setting a message expectation with an expectation is set on a method which does not exist fails if no instance is created # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:255 + # ./spec/rspec/mocks/any_instance_spec.rb:669 - 683) argument matchers matching hash_including matches hash with hash_including same hash + 683) #any_instance setting a message expectation with an expectation is set on a method which does not exist normal expectations on the class object pass when expectations are met # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:250 + # ./spec/rspec/mocks/any_instance_spec.rb:724 - 684) argument matchers matching duck_type rejects goose when expecting a duck + 684) #any_instance setting a message expectation with an expectation is set on a method which does not exist normal expectations on the class object fail when unfulfilled # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:123 + # ./spec/rspec/mocks/any_instance_spec.rb:713 - 685) argument matchers matching duck_type matches duck type with two methods + 685) #any_instance setting a message expectation with an expectation is set on a method which does not exist behaves as 'exactly one instance' fails if the method is invoked on a second instance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:118 + # ./spec/rspec/mocks/any_instance_spec.rb:700 - 686) argument matchers matching duck_type matches duck type with one method + 686) #any_instance setting a message expectation with an expectation is set on a method which does not exist behaves as 'exactly one instance' passes if subsequent invocations do not receive that message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:113 + # ./spec/rspec/mocks/any_instance_spec.rb:694 - 687) argument matchers matching instance_of does NOT accept float as instance_of(Numeric) + 687) #any_instance when directed at a method defined on a superclass stubs the method correctly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:67 + # ./spec/rspec/mocks/any_instance_spec.rb:1281 - 688) argument matchers matching instance_of does NOT accept integer as instance_of(Numeric) + 688) #any_instance when directed at a method defined on a superclass mocks the method correctly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:72 + # ./spec/rspec/mocks/any_instance_spec.rb:1286 - 689) argument matchers matching instance_of rejects non string + 689) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_return' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:82 + # ./spec/rspec/mocks/any_instance_spec.rb:55 - 690) argument matchers matching instance_of accepts float as instance_of(Float) + 690) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_raise' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:62 + # ./spec/rspec/mocks/any_instance_spec.rb:59 - 691) argument matchers matching instance_of rejects non numeric + 691) #any_instance invocation order when stubbing allows chaining 'and_yield' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:77 + # ./spec/rspec/mocks/any_instance_spec.rb:71 - 692) argument matchers matching instance_of handles non matching instances nicely + 692) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_yield' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:87 + # ./spec/rspec/mocks/any_instance_spec.rb:63 - 693) argument matchers matching no_args matches no args against no_args + 693) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_throw' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:230 + # ./spec/rspec/mocks/any_instance_spec.rb:67 - 694) argument matchers matching no_args fails no_args with one arg + 694) #any_instance invocation order when setting a message expectation raises an error if 'with' follows 'and_return' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:235 + # ./spec/rspec/mocks/any_instance_spec.rb:78 - 695) argument matchers matching no_args when passed with other arguments immediately signals that this is invalid + 695) #any_instance invocation order when setting a message expectation raises an error if 'with' follows 'and_raise' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:241 + # ./spec/rspec/mocks/any_instance_spec.rb:83 - 696) argument matchers matching array_including matches array with array_including same array + 696) #any_instance when used in conjunction with a `dup` doesn't bomb if the object doesn't support `dup` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:278 + # ./spec/rspec/mocks/any_instance_spec.rb:1259 - 697) argument matchers matching array_including matches array with array_including using fuzzymatcher + 697) #any_instance when used in conjunction with a `dup` doesn't fail when dup accepts parameters # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:283 + # ./spec/rspec/mocks/any_instance_spec.rb:1266 - 698) argument matchers matching array_including fails array_including when args aren't array + 698) #any_instance when used in conjunction with a `dup` doesn't cause an infinite loop # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:288 + # ./spec/rspec/mocks/any_instance_spec.rb:1250 - 699) argument matchers matching array_including fails array_including when arg doesn't contain all elements + 699) #any_instance when stubbing does not suppress an exception when a method that doesn't exist is invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:295 + # ./spec/rspec/mocks/any_instance_spec.rb:91 - 700) argument matchers matching anything doesn't accept no arguments + 700) #any_instance when stubbing when the class has a prepended module allows stubbing a method that is not defined on the prepended module # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:101 + # ./spec/rspec/mocks/any_instance_spec.rb:181 - 701) argument matchers matching anything handles non matching instances nicely + 701) #any_instance when stubbing when the class has a prepended module prevents stubbing a method that is defined on the prepended module # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:106 + # ./spec/rspec/mocks/any_instance_spec.rb:188 - 702) argument matchers matching anything accepts string as anything + 702) #any_instance when stubbing when the class has a prepended module prevents stubbing a chain starting with a method that is defined on the prepended module # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:96 + # ./spec/rspec/mocks/any_instance_spec.rb:203 - 703) argument matchers matching handling non-matcher arguments matches a class against itself + 703) #any_instance when stubbing when the class has a prepended module allows stubbing a chain starting with a method that is not defined on the prepended module # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:458 + # ./spec/rspec/mocks/any_instance_spec.rb:196 - 704) argument matchers matching handling non-matcher arguments fails a class against an unrelated class + 704) #any_instance when stubbing with #and_raise can stub a method that exists # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:463 + # ./spec/rspec/mocks/any_instance_spec.rb:316 - 705) argument matchers matching handling non-matcher arguments matches regexp against regexp + 705) #any_instance when stubbing with #and_raise can stub a method that doesn't exist # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:402 + # ./spec/rspec/mocks/any_instance_spec.rb:311 - 706) argument matchers matching handling non-matcher arguments fails for a hash w/ wrong values + 706) #any_instance when stubbing behaves as 'every instance' handles method restoration on subclasses # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:444 + # ./spec/rspec/mocks/any_instance_spec.rb:172 - 707) argument matchers matching handling non-matcher arguments fails with sensible message when arg#description is blank + 707) #any_instance when stubbing behaves as 'every instance' stubs every instance in the spec # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:498 + # ./spec/rspec/mocks/any_instance_spec.rb:138 - 708) argument matchers matching handling non-matcher arguments fails if regexp does not match submitted regexp + 708) #any_instance when stubbing behaves as 'every instance' stubs instance created before any_instance was called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:412 + # ./spec/rspec/mocks/any_instance_spec.rb:144 - 709) argument matchers matching handling non-matcher arguments fails to match against a hash submitted as a positional argument and received as keyword arguments in Ruby 3.0 or later + 709) #any_instance when stubbing behaves as 'every instance' handles stubbing on a sub class when a super class is stubbed differently # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:429 + # ./spec/rspec/mocks/any_instance_spec.rb:163 - 710) argument matchers matching handling non-matcher arguments matches string against regexp + 710) #any_instance when stubbing behaves as 'every instance' handles stubbing on super and subclasses # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:397 + # ./spec/rspec/mocks/any_instance_spec.rb:157 - 711) argument matchers matching handling non-matcher arguments fails with sensible message when arg#description is nil + 711) #any_instance when stubbing behaves as 'every instance' handles freeze and duplication correctly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:491 + # ./spec/rspec/mocks/any_instance_spec.rb:150 - 712) argument matchers matching handling non-matcher arguments fails with zero arguments + 712) #any_instance when stubbing with #and_yield yields the value specified # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:478 + # ./spec/rspec/mocks/any_instance_spec.rb:291 - 713) argument matchers matching handling non-matcher arguments fails if regexp does not match submitted string + 713) #any_instance when stubbing core ruby objects works with the non-standard constructor "" # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:407 + # ./spec/rspec/mocks/any_instance_spec.rb:380 - 714) argument matchers matching handling non-matcher arguments fails a class against an object of a different type + 714) #any_instance when stubbing core ruby objects works uniformly across *everything* # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:473 + # ./spec/rspec/mocks/any_instance_spec.rb:365 - 715) argument matchers matching handling non-matcher arguments matches against a hash submitted as keyword arguments a and received as a positional argument (in both Ruby 2 and Ruby 3) + 715) #any_instance when stubbing core ruby objects works with the non-standard constructor [] # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:422 + # ./spec/rspec/mocks/any_instance_spec.rb:370 - 716) argument matchers matching handling non-matcher arguments matches a class against an instance of itself + 716) #any_instance when stubbing core ruby objects works with the non-standard constructor class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:468 + # ./spec/rspec/mocks/any_instance_spec.rb:396 - 717) argument matchers matching handling non-matcher arguments matches against a hash submitted and received by value + 717) #any_instance when stubbing core ruby objects works with the non-standard constructor '' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:417 + # ./spec/rspec/mocks/any_instance_spec.rb:385 - 718) argument matchers matching handling non-matcher arguments fails with sensible message when args respond to #description + 718) #any_instance when stubbing core ruby objects works with the non-standard constructor module # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:484 + # ./spec/rspec/mocks/any_instance_spec.rb:390 - 719) argument matchers matching handling non-matcher arguments fails for a hash w/ wrong keys + 719) #any_instance when stubbing core ruby objects works with the non-standard constructor {} # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:451 + # ./spec/rspec/mocks/any_instance_spec.rb:375 - 720) argument matchers matching kind_of accepts float as kind_of(Numeric) + 720) #any_instance when stubbing aliased methods tracks aliased method calls # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:35 + # ./spec/rspec/mocks/any_instance_spec.rb:213 - 721) argument matchers matching kind_of accepts fixnum as kind_of(Numeric) + 721) #any_instance when stubbing with multiple stubs returns the same value for calls on different instances # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:30 + # ./spec/rspec/mocks/any_instance_spec.rb:254 - 722) argument matchers matching kind_of handles a class thats overridden === + 722) #any_instance when stubbing with multiple stubs stubs a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:53 + # ./spec/rspec/mocks/any_instance_spec.rb:248 - 723) argument matchers matching kind_of handles non matching kinds nicely + 723) #any_instance when stubbing with a block stubs a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:40 + # ./spec/rspec/mocks/any_instance_spec.rb:335 - 724) argument matchers matching kind_of matches arguments that have defined `kind_of?` to return true + 724) #any_instance when stubbing with a block returns the same computed value for calls on different instances # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:47 + # ./spec/rspec/mocks/any_instance_spec.rb:340 - 725) receive_message_chain when the expect and should syntaxes are enabled stubs the message correctly + 725) #any_instance when stubbing when partially mocking objects resets partially mocked objects correctly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:241 + # ./spec/rspec/mocks/any_instance_spec.rb:349 - 726) receive_message_chain with only the expect syntax enabled works with a hash return as the last argument in the chain + 726) #any_instance when stubbing with #and_throw can stub a method that doesn't exist # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:109 + # ./spec/rspec/mocks/any_instance_spec.rb:323 - 727) receive_message_chain with only the expect syntax enabled works with allow where the first level of the chain is already expected + 727) #any_instance when stubbing with #and_throw can stub a method that exists # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:198 + # ./spec/rspec/mocks/any_instance_spec.rb:328 - 728) receive_message_chain with only the expect syntax enabled fails with and_call_original when the entire chain is not called + 728) #any_instance when stubbing with #and_call_original and competing #with can combine and_call_original, with, and_return # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:79 + # ./spec/rspec/mocks/any_instance_spec.rb:301 - 729) receive_message_chain with only the expect syntax enabled works with allow_any_instance + 729) #any_instance when stubbing with #and_return can stub a method that exists # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:151 + # ./spec/rspec/mocks/any_instance_spec.rb:266 - 730) receive_message_chain with only the expect syntax enabled works with a {} block + 730) #any_instance when stubbing with #and_return returns the same object for calls on different instances # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:40 + # ./spec/rspec/mocks/any_instance_spec.rb:271 - 731) receive_message_chain with only the expect syntax enabled works with and_return + 731) #any_instance when stubbing with #and_return can stub a method that doesn't exist # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:54 + # ./spec/rspec/mocks/any_instance_spec.rb:261 - 732) receive_message_chain with only the expect syntax enabled works with expect where the first level of the chain is already expected + 732) #any_instance when stubbing with #and_return can change how instances responds in the middle of an example # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:190 + # ./spec/rspec/mocks/any_instance_spec.rb:278 - 733) receive_message_chain with only the expect syntax enabled works with a do block + 733) #any_instance when stubbing with argument matching returns the stubbed value when arguments match # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:32 + # ./spec/rspec/mocks/any_instance_spec.rb:229 - 734) receive_message_chain with only the expect syntax enabled works with a string of messages to chain + 734) #any_instance when stubbing with argument matching fails the spec with an expectation error when the arguments do not match # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:103 + # ./spec/rspec/mocks/any_instance_spec.rb:235 - 735) receive_message_chain with only the expect syntax enabled does not raise when expect is used and the entire chain is called + 735) #any_instance when stubbing multiple methods allows multiple methods to be stubbed in a single invocation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:143 + # ./spec/rspec/mocks/any_instance_spec.rb:97 - 736) receive_message_chain with only the expect syntax enabled errors with a negative expectation + 736) #any_instance when stubbing multiple methods allows a chain of methods to be stubbed using #receive_message_chain can use a chain of methods to perform an expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:14 + # ./spec/rspec/mocks/any_instance_spec.rb:127 - 737) receive_message_chain with only the expect syntax enabled works with and_throw + 737) #any_instance when stubbing multiple methods allows a chain of methods to be stubbed using #receive_message_chain given a string of '.' separated method names representing the chain # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:91 + # ./spec/rspec/mocks/any_instance_spec.rb:115 - 738) receive_message_chain with only the expect syntax enabled provides a matcher description (when passing symbols) + 738) #any_instance when stubbing multiple methods allows a chain of methods to be stubbed using #receive_message_chain given a hash as the last argument uses the value as the expected return value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:227 + # ./spec/rspec/mocks/any_instance_spec.rb:110 - 739) receive_message_chain with only the expect syntax enabled can constrain the return value by the argument to the last call + 739) #any_instance when stubbing multiple methods allows a chain of methods to be stubbed using #receive_message_chain given symbols representing the methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:66 + # ./spec/rspec/mocks/any_instance_spec.rb:105 - 740) receive_message_chain with only the expect syntax enabled accepts any number of arguments to the stubbed messages with an inline hash return value + 740) #any_instance when stubbing multiple methods allows a chain of methods to be stubbed using #receive_message_chain can constrain the return value by the argument to the last call # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:121 + # ./spec/rspec/mocks/any_instance_spec.rb:120 - 741) receive_message_chain with only the expect syntax enabled provides a matcher description (when passing symbols and a hash) + 741) #any_instance chain yields the value specified # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:232 + # ./spec/rspec/mocks/any_instance_spec.rb:47 - 742) receive_message_chain with only the expect syntax enabled works with and_invoke + 742) #any_instance unstubbing using `and_call_original` replaces the stubbed method with the original method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:60 + # ./spec/rspec/mocks/any_instance_spec.rb:405 - 743) receive_message_chain with only the expect syntax enabled works with and_call_original + 743) #any_instance unstubbing using `and_call_original` removes stubs from sub class after Invocation when super class was originally stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:73 + # ./spec/rspec/mocks/any_instance_spec.rb:427 - 744) receive_message_chain with only the expect syntax enabled works with allow where the first level of the chain is already stubbed + 744) #any_instance unstubbing using `and_call_original` does not get confused about string vs symbol usage for the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:214 + # ./spec/rspec/mocks/any_instance_spec.rb:452 - 745) receive_message_chain with only the expect syntax enabled provides a matcher description (when passing a string) + 745) #any_instance unstubbing using `and_call_original` removes any stubs set directly on an instance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:222 + # ./spec/rspec/mocks/any_instance_spec.rb:436 - 746) receive_message_chain with only the expect syntax enabled works with expect where the first level of the chain is already stubbed + 746) #any_instance unstubbing using `and_call_original` removes stubs even if they have already been invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:206 + # ./spec/rspec/mocks/any_instance_spec.rb:418 - 747) receive_message_chain with only the expect syntax enabled errors with a negative any_instance allowance + 747) #any_instance unstubbing using `and_call_original` removes all stubs with the supplied method name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:26 + # ./spec/rspec/mocks/any_instance_spec.rb:411 - 748) receive_message_chain with only the expect syntax enabled affects previously stubbed instances when `expect_any_instance_of` is called + 748) #any_instance unstubbing using `and_call_original` does not remove any expectations with the same method name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:175 + # ./spec/rspec/mocks/any_instance_spec.rb:444 - 749) receive_message_chain with only the expect syntax enabled raises when expect is used and all but the last message in the chain are called + 749) #any_instance when resetting post-verification adds an instance to the current space when stubbed method is invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:135 + # ./spec/rspec/mocks/any_instance_spec.rb:1169 - 750) receive_message_chain with only the expect syntax enabled raises when expect is used and some of the messages in the chain aren't called + 750) #any_instance when resetting post-verification with multiple calls to any_instance in the same example does not prevent the change from being rolled back # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:127 + # ./spec/rspec/mocks/any_instance_spec.rb:1159 - 751) receive_message_chain with only the expect syntax enabled works with and_yield + 751) #any_instance when resetting post-verification existing method with expectations ensures that the next spec does not see that expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:97 + # ./spec/rspec/mocks/any_instance_spec.rb:1147 - 752) receive_message_chain with only the expect syntax enabled passes when with expect_any_instance_of is used and the entire chain is called + 752) #any_instance when resetting post-verification existing method with expectations private methods restores a stubbed private method after the spec is run # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:183 + # ./spec/rspec/mocks/any_instance_spec.rb:1110 - 753) receive_message_chain with only the expect syntax enabled fails when with expect_any_instance_of is used and the entire chain is not called + 753) #any_instance when resetting post-verification existing method with expectations private methods cleans up the backed up method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:168 + # ./spec/rspec/mocks/any_instance_spec.rb:1106 - 754) receive_message_chain with only the expect syntax enabled gives the { } block precedence over the do block + 754) #any_instance when resetting post-verification existing method with expectations private methods ensures that the restored method behaves as it originally did # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:46 + # ./spec/rspec/mocks/any_instance_spec.rb:1114 - 755) receive_message_chain with only the expect syntax enabled errors with a negative any_instance expectation + 755) #any_instance when resetting post-verification existing method with expectations ensures that the subsequent specs do not see expectations set in previous specs when the instance created after the expectation is set first spec # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:20 + # ./spec/rspec/mocks/any_instance_spec.rb:1121 - 756) receive_message_chain with only the expect syntax enabled accepts any number of arguments to the stubbed messages + 756) #any_instance when resetting post-verification existing method with expectations ensures that the subsequent specs do not see expectations set in previous specs when the instance created after the expectation is set second spec # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:115 + # ./spec/rspec/mocks/any_instance_spec.rb:1126 - 757) receive_message_chain with only the expect syntax enabled errors with a negative allowance + 757) #any_instance when resetting post-verification existing method with expectations ensures that the subsequent specs do not see expectations set in previous specs when the instance created before the expectation is set second spec # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:8 + # ./spec/rspec/mocks/any_instance_spec.rb:1141 - 758) receive_message_chain with only the expect syntax enabled works with and_raise + 758) #any_instance when resetting post-verification existing method with expectations ensures that the subsequent specs do not see expectations set in previous specs when the instance created before the expectation is set first spec # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:85 + # ./spec/rspec/mocks/any_instance_spec.rb:1136 - 759) receive_message_chain with only the expect syntax enabled stubs already stubbed instances when using `allow_any_instance_of` + 759) #any_instance when resetting post-verification existing method with stubbing public methods restores the class to its original state after each example when one instance is created # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:159 + # ./spec/rspec/mocks/any_instance_spec.rb:1056 - 760) Using a reopened file object as a partial mock allows `write` to be stubbed and reset + 760) #any_instance when resetting post-verification existing method with stubbing public methods restores the class to its original state after each example when no instance is created # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:199 + # ./spec/rspec/mocks/any_instance_spec.rb:1049 - 761) RSpec::Mocks::Configuration adds stub and should_receive to the given modules + 761) #any_instance when resetting post-verification existing method with stubbing public methods restores the class to its original state after each example when more than one instance is created # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:12 + # ./spec/rspec/mocks/any_instance_spec.rb:1065 - 762) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax defaults to enabling both the :should and :expect syntaxes + 762) #any_instance when resetting post-verification existing method with stubbing private methods restores a stubbed private method after the spec is run # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:36 + # ./spec/rspec/mocks/any_instance_spec.rb:1087 - 763) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] adds the expect methods to the example group context + 763) #any_instance when resetting post-verification existing method with stubbing private methods ensures that the restored method behaves as it originally did # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:115 + # ./spec/rspec/mocks/any_instance_spec.rb:1091 - 764) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] does not warn about the should syntax + 764) #any_instance when resetting post-verification existing method with stubbing private methods cleans up the backed up method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:123 + # ./spec/rspec/mocks/any_instance_spec.rb:1083 - 765) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] reports that both syntaxes are enabled + 765) #any_instance passing the receiver to the implementation block when configured not to pass the instance an any instance stub does not pass the instance to the implementation block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:119 + # ./spec/rspec/mocks/any_instance_spec.rb:1231 - 766) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] adds `any_instance` to every class + 766) #any_instance passing the receiver to the implementation block when configured not to pass the instance an any instance stub does not cause with to fail when the instance is passed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:111 + # ./spec/rspec/mocks/any_instance_spec.rb:1240 - 767) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] adds the should methods to every object + 767) #any_instance passing the receiver to the implementation block when configured to pass the instance an any instance stub passes the instance as the first arg of the implementation block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:107 + # ./spec/rspec/mocks/any_instance_spec.rb:1185 - 768) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect removes `any_instance` from every class + 768) #any_instance passing the receiver to the implementation block when configured to pass the instance an any instance stub does not pass the instance to and_call_original # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:54 + # ./spec/rspec/mocks/any_instance_spec.rb:1194 - 769) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect adds the expect methods to the example group context + 769) #any_instance passing the receiver to the implementation block when configured to pass the instance an any instance expectation passes the instance as the first arg of the implementation block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:58 + # ./spec/rspec/mocks/any_instance_spec.rb:1213 - 770) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect reports that the syntax is :expect + 770) #any_instance passing the receiver to the implementation block when configured to pass the instance an any instance expectation doesn't effect with # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:62 + # ./spec/rspec/mocks/any_instance_spec.rb:1207 - 771) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect is a no-op when configured a second time + 771) when the should syntax is enabled on a non-default syntax host continues to warn about the should syntax # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:66 + # ./spec/rspec/mocks/should_syntax_spec.rb:574 - 772) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect removes the should methods from every object + 772) #twice fails when called with wrong args on the first call # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:50 + # ./spec/rspec/mocks/twice_counts_spec.rb:46 - 773) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should does not warn about the should syntax + 773) #twice passes when called twice with unspecified args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:92 + # ./spec/rspec/mocks/twice_counts_spec.rb:22 - 774) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should removes the expect methods from the example group context + 774) #twice fails when called with wrong args on the second call # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:84 + # ./spec/rspec/mocks/twice_counts_spec.rb:54 - 775) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should reports that the syntax is :should + 775) #twice fails fast when call count is higher than expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:88 + # ./spec/rspec/mocks/twice_counts_spec.rb:29 - 776) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should adds `any_instance` to every class + 776) #twice passes when called twice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:80 + # ./spec/rspec/mocks/twice_counts_spec.rb:8 - 777) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should adds the should methods to every object + 777) #twice passes when called twice with specified args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:76 + # ./spec/rspec/mocks/twice_counts_spec.rb:15 - 778) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should is a no-op when configured a second time + 778) #twice fails when call count is lower than expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:97 + # ./spec/rspec/mocks/twice_counts_spec.rb:38 - 779) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax defaults to enabling both the :should and :expect syntaxes + 779) #twice when called with negative expectation raises an error # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:36 + # ./spec/rspec/mocks/twice_counts_spec.rb:89 - 780) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to [:should, :expect] reports that both syntaxes are enabled + 780) #twice when called with the wrong number of times with the specified args and also called with different args mentions the wrong call count in the failure message rather than the different args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:119 + # ./spec/rspec/mocks/twice_counts_spec.rb:64 - 781) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to [:should, :expect] adds `any_instance` to every class + 781) Supporting Rails monkey patches works when Rails has monkey patched #with # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:111 + # ./spec/integration/rails_support_spec.rb:10 - 782) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to [:should, :expect] does not warn about the should syntax + 782) Supporting Rails monkey patches works mocking any instance when Rails has monkey patched #with # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:123 + # ./spec/integration/rails_support_spec.rb:37 - 783) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to [:should, :expect] adds the expect methods to the example group context + 783) Using rspec-mocks features in before(:all) blocks #expect_any_instance_of(...).to receive raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:115 + # ./spec/support/before_all_shared_example_group.rb:11 - 784) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to [:should, :expect] adds the should methods to every object + 784) Using rspec-mocks features in before(:all) blocks #hide_const(for a defined const) does not hide the const # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:107 + # ./spec/rspec/mocks/before_all_spec.rb:30 - 785) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :should adds `any_instance` to every class + 785) Using rspec-mocks features in before(:all) blocks #hide_const(for a defined const) raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:80 + # ./spec/support/before_all_shared_example_group.rb:11 - 786) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :should removes the expect methods from the example group context + 786) Using rspec-mocks features in before(:all) blocks #stub_const does not stub the const # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:84 + # ./spec/rspec/mocks/before_all_spec.rb:10 - 787) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :should is a no-op when configured a second time + 787) Using rspec-mocks features in before(:all) blocks #stub_const raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:97 + # ./spec/support/before_all_shared_example_group.rb:11 - 788) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :should does not warn about the should syntax + 788) Using rspec-mocks features in before(:all) blocks #allow_any_instance_of(...).to receive raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:92 + # ./spec/support/before_all_shared_example_group.rb:11 - 789) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :should adds the should methods to every object + 789) Using rspec-mocks features in before(:all) blocks #allow(...).to receive raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:76 + # ./spec/support/before_all_shared_example_group.rb:11 - 790) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :should reports that the syntax is :should + 790) Using rspec-mocks features in before(:all) blocks #expect(...).to receive raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:88 + # ./spec/support/before_all_shared_example_group.rb:11 - 791) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :expect reports that the syntax is :expect + 791) Using rspec-mocks features in before(:all) blocks allow(...).to receive_message_chain raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:62 + # ./spec/support/before_all_shared_example_group.rb:11 - 792) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :expect is a no-op when configured a second time + 792) Using rspec-mocks features in before(:all) blocks #hide_const(for an undefined const) raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:66 + # ./spec/support/before_all_shared_example_group.rb:11 - 793) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :expect adds the expect methods to the example group context + 793) RSpec::Mocks::MessageExpectation has a nice string representation for a raw message expectation on a test double # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:58 + # ./spec/rspec/mocks/message_expectation_string_representation_spec.rb:6 - 794) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :expect removes `any_instance` from every class + 794) RSpec::Mocks::MessageExpectation has a nice string representation for a raw message expectation on a partial double # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:54 + # ./spec/rspec/mocks/message_expectation_string_representation_spec.rb:12 - 795) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :expect removes the should methods from every object + 795) RSpec::Mocks::MessageExpectation has a nice string representation for a message expectation constrained by `with` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:50 + # ./spec/rspec/mocks/message_expectation_string_representation_spec.rb:18 - 796) RSpec::Mocks::Configuration#when_declaring_verifying_double captures the supplied blocks + 796) expect(...).to receive_messages(:a => 1, :b => 2) fails with the correct location # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/configuration_spec.rb:177 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:93 - 797) unstubbing with `and_call_original` removes all stubs with the supplied method name + 797) expect(...).to receive_messages(:a => 1, :b => 2) provides a matcher description # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_implementation_spec.rb:38 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:101 - 798) unstubbing with `and_call_original` does not remove any expectations with the same method name + 798) expect(...).to receive_messages(:a => 1, :b => 2) fails with a sensible message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_implementation_spec.rb:47 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:87 - 799) unstubbing with `and_call_original` replaces the stubbed method with the original method + 799) expect(...).to receive_messages(:a => 1, :b => 2) sets up multiple expectations # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_implementation_spec.rb:30 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:81 - 800) unstubbing with `and_call_original` when partial doubles are not verified restores the correct implementations when stubbed and unstubbed on a grandparent and grandchild class + 800) expect(...).to receive_messages(:a => 1, :b => 2) behaves like handles partially mocked objects correctly resets partially mocked objects correctly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_implementation_spec.rb:71 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:22 - 801) unstubbing with `and_call_original` when partial doubles are not verified restores the correct implementations when stubbed and unstubbed on a parent and child class + 801) expect(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a do; end; block is given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_implementation_spec.rb:58 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 - 802) unstubbing with `and_call_original` when partial doubles are verified restores the correct implementations when stubbed and unstubbed on a grandparent and grandchild class + 802) expect(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_implementation_spec.rb:71 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 - 803) unstubbing with `and_call_original` when partial doubles are verified restores the correct implementations when stubbed and unstubbed on a parent and child class + 803) RSpec::Mocks.verify delegates to the space # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_implementation_spec.rb:58 + # ./spec/rspec/mocks_spec.rb:42 - 804) unstubbing with `and_call_original` when partial doubles are verified handles keyword arguments correctly + 804) RSpec::Mocks behaves like library wide checks issues no warnings when the spec files are loaded # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_implementation_spec.rb:97 + # - 805) Diffs printed when arguments don't match with a non matcher object prints a diff with array args + 805) RSpec::Mocks behaves like library wide checks issues no warnings when loaded # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/diffing_spec.rb:241 + # - 806) Diffs printed when arguments don't match with a non matcher object does not print a diff when multiple single-line string arguments are mismatched + 806) RSpec::Mocks behaves like library wide checks has no malformed whitespace # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/diffing_spec.rb:68 + # - 807) Diffs printed when arguments don't match with a non matcher object does not print a diff when differ returns a string of only whitespace + 807) RSpec::Mocks behaves like library wide checks only loads a known set of stdlibs so gem authors are forced to load libs they use to have passing specs # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/diffing_spec.rb:21 + # - 808) Diffs printed when arguments don't match with a non matcher object prints a diff with an expected hash arg and a non-hash actual arg + 808) RSpec::Mocks.configuration returns a memoized configuration instance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/diffing_spec.rb:90 + # ./spec/rspec/mocks_spec.rb:89 - 809) Diffs printed when arguments don't match with a non matcher object prints a diff of the strings for individual mismatched multi-line string arguments + 809) RSpec::Mocks.with_temporary_scope tears down even if an error occurs # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/diffing_spec.rb:46 + # ./spec/rspec/mocks_spec.rb:189 - 810) Diffs printed when arguments don't match with a non matcher object does not print a diff when differ returns a string of only whitespace when colour is enabled + 810) RSpec::Mocks.with_temporary_scope does not verify if an error occurs before the block completes # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/diffing_spec.rb:33 + # ./spec/rspec/mocks_spec.rb:202 - 811) Diffs printed when arguments don't match with a non matcher object prints a diff with hash args + 811) RSpec::Mocks.with_temporary_scope returns the result of the passed block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/diffing_spec.rb:81 + # ./spec/rspec/mocks_spec.rb:212 - 812) Diffs printed when arguments don't match with a non matcher object does not print a diff when single line arguments are mismatched + 812) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed double allows the stubbed double to be used # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/diffing_spec.rb:12 + # ./spec/rspec/mocks_spec.rb:107 - 813) Diffs printed when arguments don't match with a non matcher object prints a diff of the args lists for multiple mismatched string arguments + 813) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed double does not allow the double to be used in the examples # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/diffing_spec.rb:57 + # ./spec/rspec/mocks_spec.rb:111 - 814) Diffs printed when arguments don't match with a non matcher object with keyword arguments on normal doubles prints a diff when keyword argument were expected but got an option hash (using splat) + 814) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed double does not allow the double to be used after the scope in before(:all) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/diffing_spec.rb:102 + # ./spec/rspec/mocks_spec.rb:117 - 815) Diffs printed when arguments don't match with a non matcher object with keyword arguments on normal doubles prints a diff when keyword argument were expected but got an option hash (literal) + 815) RSpec::Mocks.with_temporary_scope in a before(:all) with an any_instance stub allows the stub to be used # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/diffing_spec.rb:117 + # ./spec/rspec/mocks_spec.rb:173 - 816) Diffs printed when arguments don't match with a non matcher object with keyword arguments on normal doubles prints a diff when the positional argument doesnt match + 816) RSpec::Mocks.with_temporary_scope in a before(:all) with an any_instance stub does not allow the double to be used after the scope in before(:all) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/diffing_spec.rb:133 + # ./spec/rspec/mocks_spec.rb:183 - 817) Diffs printed when arguments don't match with a non matcher object that defines #description does not use the object's description for a non-matcher object that implements #description + 817) RSpec::Mocks.with_temporary_scope in a before(:all) with an any_instance stub does not allow the double to be used in the examples # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/diffing_spec.rb:251 + # ./spec/rspec/mocks_spec.rb:177 - 818) Diffs printed when arguments don't match with a non matcher object with keyword arguments on partial doubles prints a diff when keyword argument were expected but got an option hash (literal) + 818) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed const does not allow the stubbed constants to be used in the examples # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/diffing_spec.rb:187 + # ./spec/rspec/mocks_spec.rb:137 - 819) Diffs printed when arguments don't match with a non matcher object with keyword arguments on partial doubles prints a diff when keyword argument were expected but got an option hash (using splat) + 819) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed const does not allow the stubbed constants to be used after the scope in before(:all) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/diffing_spec.rb:174 + # ./spec/rspec/mocks_spec.rb:142 - 820) Diffs printed when arguments don't match with a non matcher object with keyword arguments on partial doubles prints a diff when the positional argument doesnt match + 820) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed const allows the stubbed constants to be used # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/diffing_spec.rb:201 + # ./spec/rspec/mocks_spec.rb:133 - 821) Diffs printed when arguments don't match with a matcher object that does not define #description for a matcher object that does not implement #description + 821) RSpec::Mocks.with_temporary_scope in a before(:all) with an unmet mock expectation fails with a mock expectation error # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/diffing_spec.rb:287 + # ./spec/rspec/mocks_spec.rb:158 - 822) Diffs printed when arguments don't match with a matcher object that defines #description uses the object's description + 822) RSpec::Mocks.teardown resets method stubs # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/diffing_spec.rb:270 + # ./spec/rspec/mocks_spec.rb:54 - 823) #as_null_object sets the object to null_object + 823) RSpec::Mocks.teardown does not put rspec-mocks into an inconsistent state when called extra times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/null_object_double_spec.rb:113 + # ./spec/rspec/mocks_spec.rb:61 - 824) Reraising eager raises during the verify step does not reraise when a double receives a message that hasn't been allowed/expected + 824) RSpec::Mocks.setup starts a new space scope that is later removed by .teardown # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:4 + # ./spec/rspec/mocks_spec.rb:76 - 825) Reraising eager raises during the verify step when a negative expectation receives a call notifies both exceptions using the same `:source_id` so `aggregate_failures` can de-dup + 825) RSpec::Mocks when there is a `let` declaration that overrides an argument matcher allows the `let` definition to win # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:20 + # ./spec/rspec/mocks_spec.rb:229 - 826) Reraising eager raises during the verify step when a negative expectation receives a call reraises during verification + 826) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect_any_instance_of(...).to have_received fails because we dont want to support it # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:12 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:645 - 827) Reraising eager raises during the verify step when a negative expectation receives a call notifies with a different `source_id` than a different double expecting that message + 827) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received forwards any block passed during method invocation to the `have_received` block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:42 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:146 - 828) Reraising eager raises during the verify step when a negative expectation receives a call notifies with a different `source_id` than that for the same double and a different message + 828) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received fails when a null object has not received the given message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:27 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:54 - 829) Reraising eager raises during the verify step when an expectation with a count is exceeded reraises during verification + 829) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received fails when the method has been mocked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:63 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:70 - 830) Reraising eager raises during the verify step when an expectation with a count is exceeded notifies both exceptions using the same `:source_id` so `aggregate_failures` can de-dup + 830) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received passes if expectations against the yielded arguments pass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:72 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:100 - 831) Reraising eager raises during the verify step when an expectation is called with the wrong arguments reraises during verification + 831) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received passes when the double has received the given message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:81 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:25 - 832) Reraising eager raises during the verify step when an expectation is called with the wrong arguments notifies both exceptions using the same `:source_id` so `aggregate_failures` can de-dup + 832) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received takes a curly-bracket block and yields the arguments given to the stubbed method call # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:89 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:80 - 833) Reraising eager raises during the verify step when an expectation is called out of order reraises during verification + 833) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received passes if expectations against yielded keyword arguments pass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:99 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:111 - 834) Constant Mutating #stub_const requires a string argument + 834) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received fails when the method has not been previously stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:221 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:62 - 835) Constant Mutating #stub_const for a loaded constant prefixed with :: behaves like loaded constant stubbing resets it to its original value when rspec clears its mocks + 835) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received notifies failures via rspec-support's failure notification system # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:43 - 836) Constant Mutating #stub_const for a loaded constant prefixed with :: behaves like loaded constant stubbing allows it to be stubbed + 836) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received gives precedence to a `{ ... }` block when both forms are provided since that form actually binds to `receive` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:134 - 837) Constant Mutating #stub_const for a loaded constant prefixed with :: behaves like loaded constant stubbing returns the stubbed value + 837) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received takes a do-end block and yields the arguments given to the stubbed method call # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:90 - 838) Constant Mutating #stub_const for an unloaded nested constant removes the root constant when rspec clears its mocks + 838) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received generates a useful description # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:387 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:183 - 839) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing returns the stubbed value + 839) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received resets expectations on class methods when mocks are reset # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:156 - 840) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 840) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received fails if expectations against the yielded arguments fail # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:124 - 841) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing allows it to be stubbed + 841) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received produces an error message that matches the expected method if another method was called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:195 - 842) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 842) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received fails when the double has not received the given message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:35 - 843) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing returns the stubbed value + 843) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received can generate a description after mocks have been torn down (e.g. when rspec-core requests it) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:188 - 844) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 844) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received passes when a null object has received the given message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:30 - 845) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 845) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received ordered passes with exact receive counts when received in order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:455 - 846) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing allows it to be stubbed + 846) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received ordered fails with exact receive counts when received out of order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:484 - 847) Constant Mutating #stub_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant stubbing resets it to its original value when rspec clears its mocks + 847) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received ordered fails when the messages are received out of order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:517 - 848) Constant Mutating #stub_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant stubbing allows it to be stubbed + 848) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received ordered passes when the messages were received in order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:447 - 849) Constant Mutating #stub_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant stubbing returns the stubbed value + 849) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received ordered when used with `with` fails when the order is not matched # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:538 - 850) Constant Mutating #stub_const for an unloaded constant nested deeply within a deeply nested loaded constant removes the first unloaded constant but leaves the loaded nested constant when rspec resets its mocks + 850) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received ordered when used with `with` passes when the order lines up # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:427 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:533 - 851) Constant Mutating #stub_const for an unloaded constant nested deeply within a deeply nested loaded constant behaves like unloaded constant stubbing returns the stubbed value + 851) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received ordered when used on individually allowed messages fails when the messages are received out of order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:560 - 852) Constant Mutating #stub_const for an unloaded constant nested deeply within a deeply nested loaded constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 852) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received ordered when used on individually allowed messages passes when the messages were received in order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:555 - 853) Constant Mutating #stub_const for an unloaded constant nested deeply within a deeply nested loaded constant behaves like unloaded constant stubbing allows it to be stubbed + 853) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received with fails when the given args do not match the args used with the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:174 - 854) Constant Mutating #stub_const for an unloaded constant nested deeply within a deeply nested loaded constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 854) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received with passes when the given args match the args used with the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:169 - 855) Constant Mutating #stub_const for an unloaded constant nested in a module that redefines `send` behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 855) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts once fails when the message was received twice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:369 - 856) Constant Mutating #stub_const for an unloaded constant nested in a module that redefines `send` behaves like unloaded constant stubbing returns the stubbed value + 856) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts once passes when the message was received once # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:355 - 857) Constant Mutating #stub_const for an unloaded constant nested in a module that redefines `send` behaves like unloaded constant stubbing allows it to be stubbed + 857) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts once fails when the message was never received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:361 - 858) Constant Mutating #stub_const for an unloaded constant nested in a module that redefines `send` behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 858) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts thrice passes when the message was received thrice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:411 - 859) Constant Mutating #stub_const for a loaded nested constant behaves like loaded constant stubbing resets it to its original value when rspec clears its mocks + 859) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts thrice fails when the message was received more than three times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:430 - 860) Constant Mutating #stub_const for a loaded nested constant behaves like loaded constant stubbing returns the stubbed value + 860) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts thrice fails when the message was received less than three times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:420 - 861) Constant Mutating #stub_const for a loaded nested constant behaves like loaded constant stubbing allows it to be stubbed + 861) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts when constrained by `with` only considers the calls with matching args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:215 - 862) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 862) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts when constrained by `with` when the message is received too many times includes the counts of calls with matching args in the error message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:231 - 863) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing allows it to be stubbed + 863) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts when constrained by `with` when the message is received too few times includes the counts of calls with matching args in the error message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:239 - 864) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing returns the stubbed value + 864) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts when constrained by `with` when the message is received without any args matching includes unmatched args in the error message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:221 - 865) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 865) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts when constrained by `with` when constrained with grouped arguments `with` includes single arguments based on the method call that included them # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:264 - 866) Constant Mutating #stub_const for a loaded deeply nested constant behaves like loaded constant stubbing returns the stubbed value + 866) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts when constrained by `with` when constrained with grouped arguments `with` does not group counts on repeated arguments for a single message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:285 - 867) Constant Mutating #stub_const for a loaded deeply nested constant behaves like loaded constant stubbing allows it to be stubbed + 867) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts when constrained by `with` when constrained with grouped arguments `with` keeps the array combinations distinguished in the group # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:273 - 868) Constant Mutating #stub_const for a loaded deeply nested constant behaves like loaded constant stubbing resets it to its original value when rspec clears its mocks + 868) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts when constrained by `with` when constrained with grouped arguments `with` groups the "got" arguments based on the method call that included them # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:247 - 869) Constant Mutating #stub_const for an unloaded constant with nested name that matches a top-level constant behaves like unloaded constant stubbing allows it to be stubbed + 869) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts at_least passes when the message was received the given number of times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:323 - 870) Constant Mutating #stub_const for an unloaded constant with nested name that matches a top-level constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 870) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts at_least fails when the message was received fewer times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:331 - 871) Constant Mutating #stub_const for an unloaded constant with nested name that matches a top-level constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 871) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts at_least passes when the message was received more times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:327 - 872) Constant Mutating #stub_const for an unloaded constant with nested name that matches a top-level constant behaves like unloaded constant stubbing returns the stubbed value + 872) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts at_most passes when the message was received fewer times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:343 - 873) Constant Mutating #stub_const for an unloaded deeply nested constant removes the root constant when rspec clears its mocks + 873) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts at_most passes when the message was received the given number of times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:398 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:339 - 874) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing allows it to be stubbed + 874) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts at_most fails when the message was received more times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:347 - 875) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing returns the stubbed value + 875) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts exactly fails when the message was received more times than expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:301 - 876) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 876) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts exactly fails when the message was received fewer times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:315 - 877) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 877) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts exactly passes when the message was received the given number of times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:297 - 878) Constant Mutating #stub_const for an unloaded constant nested within a loaded constant raises a helpful error if it cannot be stubbed due to an intermediary constant that is not a module + 878) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts twice fails when the message was received once # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:418 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:389 - 879) Constant Mutating #stub_const for an unloaded constant nested within a loaded constant removes the unloaded constant but leaves the loaded constant when rspec resets its mocks + 879) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts twice passes when the message was received twice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:409 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:381 - 880) Constant Mutating #stub_const for an unloaded constant nested within a loaded constant behaves like unloaded constant stubbing allows it to be stubbed + 880) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received counts twice fails when the message was received thrice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:398 - 881) Constant Mutating #stub_const for an unloaded constant nested within a loaded constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 881) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available allow(...).to have_received fails because it's nonsensical # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:629 - 882) Constant Mutating #stub_const for an unloaded constant nested within a loaded constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 882) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect_any_instance_of(...).not_to have_received fails because we dont want to support it # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:653 - 883) Constant Mutating #stub_const for an unloaded constant nested within a loaded constant behaves like unloaded constant stubbing returns the stubbed value + 883) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available allow_any_instance_of(...).to have_received fails because it's nonsensical # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:637 - 884) Constant Mutating #stub_const for a loaded unnested constant raises an error if asked to transfer nested constants but given an object that does not support them + 884) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received does not allow twice to be used because it creates confusion # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:282 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 885) Constant Mutating #stub_const for a loaded unnested constant can be stubbed multiple times but still restores the original value properly + 885) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received does not allow once to be used because it creates confusion # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:228 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 886) Constant Mutating #stub_const for a loaded unnested constant raises an error when asked to transfer a nested inherited constant + 886) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received does not allow at_least to be used because it creates confusion # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:264 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 887) Constant Mutating #stub_const for a loaded unnested constant removes the transferred constants on reset + 887) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received does not allow at_most to be used because it creates confusion # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:247 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 888) Constant Mutating #stub_const for a loaded unnested constant does not transfer nested constants that are inherited from a superclass + 888) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received fails when the method has not been previously stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:256 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:595 - 889) Constant Mutating #stub_const for a loaded unnested constant raises an error if asked to transfer nested constants on a constant that does not support nested constants + 889) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received notifies failures via rspec-support's failure notification system # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:298 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:584 - 890) Constant Mutating #stub_const for a loaded unnested constant allows nested constants to be transferred to a stub module + 890) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received fails when the double has received the given message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:238 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:576 - 891) Constant Mutating #stub_const for a loaded unnested constant allows nested constants to be selectively transferred to a stub module + 891) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received does not allow times to be used because it creates confusion # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:274 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 892) Constant Mutating #stub_const for a loaded unnested constant raises an error if asked to transfer a nested constant that is not defined + 892) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received does not allow exactly to be used because it creates confusion # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:313 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 893) Constant Mutating #stub_const for a loaded unnested constant with global transfer_nested_constant option set allows nested constants to be transferred to a stub module + 893) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received passes when the double has not received the given message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:332 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:571 - 894) Constant Mutating #stub_const for a loaded unnested constant with global transfer_nested_constant option set when stubbing a constant that is not a module or a class does not attempt to transfer constants + 894) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received with fails when the given args match the args used with the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:342 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:609 - 895) Constant Mutating #stub_const for a loaded unnested constant with global transfer_nested_constant option set when stubbing a constant that is not a module or a class still raises an error when the `:transfer_nested_constants` option is provided + 895) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).not_to have_received with passes when the given args do not match the args used with the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:347 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:604 - 896) Constant Mutating #stub_const for a loaded unnested constant behaves like loaded constant stubbing resets it to its original value when rspec clears its mocks + 896) and_return when no argument is passed raises ArgumentError # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/and_return_spec.rb:15 - 897) Constant Mutating #stub_const for a loaded unnested constant behaves like loaded constant stubbing returns the stubbed value + 897) and_return when a block is passed raises ArgumentError # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/and_return_spec.rb:7 - 898) Constant Mutating #stub_const for a loaded unnested constant behaves like loaded constant stubbing allows it to be stubbed + 898) An instance double with the doubled class loaded allows `send` to be stubbed if it is defined on the class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:43 - 899) Constant Mutating #hide_const can be hidden multiple times but still restores the original value properly + 899) An instance double with the doubled class loaded does not allow dynamic methods to be expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:193 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:57 - 900) Constant Mutating #hide_const allows a constant to be hidden, then stubbed, restoring it to its original value properly + 900) An instance double with the doubled class loaded checks that stubbed methods are invoked with the correct arity # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:202 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:79 - 901) Constant Mutating #hide_const for an unloaded nested constant behaves like unloaded constant hiding allows it to be hidden, though the operation has no effect + 901) An instance double with the doubled class loaded checks the arity of stubbed methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:134 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:70 - 902) Constant Mutating #hide_const for an unloaded nested constant behaves like unloaded constant hiding remains undefined after rspec clears its mocks + 902) An instance double with the doubled class loaded gives a descriptive error message for NoMethodError # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:139 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:49 - 903) Constant Mutating #hide_const for an unloaded nested constant behaves like unloaded constant hiding returns nil + 903) An instance double with the doubled class loaded suggests using `class_double` when a class method is stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:145 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:33 - 904) Constant Mutating #hide_const for a loaded deeply nested constant behaves like loaded constant hiding resets the constant when rspec clear its mocks + 904) An instance double with the doubled class loaded doesn't suggest `class_double` when a non-class method is stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:87 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:38 - 905) Constant Mutating #hide_const for a loaded deeply nested constant behaves like loaded constant hiding returns nil + 905) An instance double with the doubled class loaded allows class to be specified by constant # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:93 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:149 - 906) Constant Mutating #hide_const for a loaded deeply nested constant behaves like loaded constant hiding allows it to be hidden + 906) An instance double with the doubled class loaded validates `with` args against the method signature when stubbing a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:82 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:142 - 907) Constant Mutating #hide_const for a loaded constant prefixed with :: behaves like loaded constant hiding returns nil + 907) An instance double with the doubled class loaded checks that stubbed methods with required keyword args are invoked with the required arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:93 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:133 - 908) Constant Mutating #hide_const for a loaded constant prefixed with :: behaves like loaded constant hiding resets the constant when rspec clear its mocks + 908) An instance double with the doubled class loaded allows keyword arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:87 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:87 - 909) Constant Mutating #hide_const for a loaded constant prefixed with :: behaves like loaded constant hiding allows it to be hidden + 909) An instance double with the doubled class loaded only allows instance methods that exist to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:82 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:12 - 910) Constant Mutating #hide_const for an unloaded unnested constant behaves like unloaded constant hiding allows it to be hidden, though the operation has no effect + 910) An instance double with the doubled class loaded only allows instance methods that exist to be expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:134 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:20 - 911) Constant Mutating #hide_const for an unloaded unnested constant behaves like unloaded constant hiding remains undefined after rspec clears its mocks + 911) An instance double with the doubled class loaded when given a class that has an overridden `#name` method properly verifies # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:139 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:171 - 912) Constant Mutating #hide_const for an unloaded unnested constant behaves like unloaded constant hiding returns nil + 912) An instance double with the doubled class loaded when the class const has been previously stubbed uses the original class to verify against for `instance_double(LoadedClass)` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:145 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:163 - 913) Constant Mutating #hide_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant hiding returns nil + 913) An instance double with the doubled class loaded when the class const has been previously stubbed uses the original class to verify against for `instance_double('LoadedClass')` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:93 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:157 - 914) Constant Mutating #hide_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant hiding allows it to be hidden + 914) An instance double with the doubled class loaded for null objects reports that it responds to defined private methods when the appropriate arg is passed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:82 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:210 - 915) Constant Mutating #hide_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant hiding resets the constant when rspec clear its mocks + 915) An instance double with the doubled class loaded for null objects reports what public messages it responds to accurately # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:87 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:200 - 916) Constant Mutating #hide_const for an unloaded constant with nested name that matches a top-level constant does not hide the top-level constant + 916) An instance double with the doubled class loaded for null objects verifies arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:166 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:188 - 917) Constant Mutating #hide_const for an unloaded constant with nested name that matches a top-level constant behaves like unloaded constant hiding returns nil + 917) An instance double with the doubled class loaded for null objects reports that it responds to protected methods when the appropriate arg is passed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:145 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:223 - 918) Constant Mutating #hide_const for an unloaded constant with nested name that matches a top-level constant behaves like unloaded constant hiding allows it to be hidden, though the operation has no effect + 918) An instance double with the doubled class loaded for null objects only allows defined methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:134 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:181 - 919) Constant Mutating #hide_const for an unloaded constant with nested name that matches a top-level constant behaves like unloaded constant hiding remains undefined after rspec clears its mocks + 919) An instance double with the doubled class loaded for null objects includes the double's name in a private method error # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:139 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:194 - 920) Constant Mutating #hide_const for a loaded nested constant behaves like loaded constant hiding allows it to be hidden + 920) An instance double with the doubled class loaded for a method that accepts a mix of optional keyword and positional args allows hash matchers like `hash_including` to be used in place of the keywords arg hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:82 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:126 - 921) Constant Mutating #hide_const for a loaded nested constant behaves like loaded constant hiding returns nil + 921) An instance double with the doubled class loaded for a method that only accepts keyword args allows anything matcher to be used in place of the keywords arg hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:93 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:100 - 922) Constant Mutating #hide_const for a loaded nested constant behaves like loaded constant hiding resets the constant when rspec clear its mocks + 922) An instance double with the doubled class loaded for a method that only accepts keyword args does not allow matchers to be used in an actual method call # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:87 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:115 - 923) a message expectation with multiple invoke handlers with a specified count larger than the number of values fails fast when called greater than the specified number + 923) An instance double with the doubled class loaded for a method that only accepts keyword args still checks positional arguments when matchers used for keyword args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:106 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:106 - 924) a message expectation with multiple invoke handlers with a specified count larger than the number of values uses the last return value for subsequent calls + 924) An instance double with the doubled class loaded for a method that only accepts keyword args allows hash matchers like `hash_including` to be used in place of the keywords arg hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:93 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:93 - 925) a message expectation with multiple invoke handlers with a specified count larger than the number of values fails when called less than the specified number + 925) a double receiving to_ary double without as_null_object responds when overridden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:100 + # ./spec/rspec/mocks/to_ary_spec.rb:8 - 926) Failure notification includes the line of future expectation in the notification for an unreceived message + 926) a double receiving to_ary double without as_null_object doesn't respond to to_a # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/failure_notification_spec.rb:16 + # ./spec/rspec/mocks/to_ary_spec.rb:44 - 927) Failure notification uses the rspec-support notifier to support `aggregate_failures` + 927) a double receiving to_ary double without as_null_object supports Array#flatten # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/failure_notification_spec.rb:8 + # ./spec/rspec/mocks/to_ary_spec.rb:13 - 928) Failure notification does not allow a double to miscount the number of times a message was received when a failure is notified in an alternate way + 928) a double receiving to_ary double without as_null_object raises # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/failure_notification_spec.rb:24 + # ./spec/rspec/mocks/to_ary_spec.rb:48 - 929) Failure notification when using `aggregate_failures` spy failures for unreceived messages are reported correctly + 929) a double receiving to_ary double without as_null_object doesn't respond to to_ary # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/failure_notification_spec.rb:34 + # ./spec/rspec/mocks/to_ary_spec.rb:40 - 930) Failure notification when using `aggregate_failures` spy failures for messages received with unexpected args are reported correctly + 930) a double receiving to_ary double without as_null_object can be overridden with a stub # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/failure_notification_spec.rb:45 + # ./spec/rspec/mocks/to_ary_spec.rb:3 - 931) Failure notification when using `aggregate_failures` failing negative expectations are only notified once + 931) a double receiving to_ary double as_null_object does respond to to_a # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/failure_notification_spec.rb:58 + # ./spec/rspec/mocks/to_ary_spec.rb:27 - 932) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher describes itself properly + 932) a double receiving to_ary double as_null_object can be overridden with a stub # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:6 + # ./spec/rspec/mocks/to_ary_spec.rb:3 - 933) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with one of the specified keys + 933) a double receiving to_ary double as_null_object returns nil # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:53 + # ./spec/rspec/mocks/to_ary_spec.rb:31 - 934) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with some of the specified keys + 934) a double receiving to_ary double as_null_object supports Array#flatten # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:57 + # ./spec/rspec/mocks/to_ary_spec.rb:13 - 935) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with the specified key + 935) a double receiving to_ary double as_null_object responds when overridden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:49 + # ./spec/rspec/mocks/to_ary_spec.rb:8 - 936) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with the specified key/value pair + 936) a double receiving to_ary double as_null_object does respond to to_ary # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:45 + # ./spec/rspec/mocks/to_ary_spec.rb:23 - 937) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with one key/value pair included + 937) a message expectation with multiple invoke handlers with a specified count larger than the number of values fails fast when called greater than the specified number # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:61 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:106 - 938) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a non-hash + 938) a message expectation with multiple invoke handlers with a specified count larger than the number of values uses the last return value for subsequent calls # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:37 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:93 - 939) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with a specified key + 939) a message expectation with multiple invoke handlers with a specified count larger than the number of values fails when called less than the specified number # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:41 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:100 - 940) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches an empty hash + 940) the spy family of methods spy records called methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:23 + # ./spec/rspec/mocks/spy_spec.rb:13 - 941) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash without the specified key, given as anything() + 941) the spy family of methods spy takes a name and a hash of method names and return values # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:19 + # ./spec/rspec/mocks/spy_spec.rb:21 - 942) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash without any of the specified keys + 942) the spy family of methods spy takes a name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:27 + # ./spec/rspec/mocks/spy_spec.rb:9 - 943) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash without the specified key + 943) the spy family of methods spy responds to arbitrary methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:11 + # ./spec/rspec/mocks/spy_spec.rb:5 - 944) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash with the specified key, but different value + 944) the spy family of methods spy takes a hash of method names and return values # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:15 + # ./spec/rspec/mocks/spy_spec.rb:17 - 945) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches against classes inheriting from Hash + 945) the spy family of methods class_spy takes a class and a hash of method names and return values # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:31 + # ./spec/rspec/mocks/spy_spec.rb:123 - 946) a message expectation with multiple invoke handlers specifying at_least less than the number of values uses the last return value for subsequent calls + 946) the spy family of methods class_spy behaves like a verifying spy with a foo method fails fast when `have_received` is passed an undefined method name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:60 + # ./spec/rspec/mocks/spy_spec.rb:39 - 947) a message expectation with multiple invoke handlers specifying at_least less than the number of values fails when called less than the specified number + 947) the spy family of methods class_spy behaves like a verifying spy with a foo method records called methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:67 + # ./spec/rspec/mocks/spy_spec.rb:35 - 948) a message expectation with multiple invoke handlers specifying at_least less than the number of values when method is stubbed too fails when called less than the specified number + 948) the spy family of methods class_spy behaves like a verifying spy with a foo method does not respond to methods that are not on the verified object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:82 + # ./spec/rspec/mocks/spy_spec.rb:31 - 949) a message expectation with multiple invoke handlers specifying at_least less than the number of values when method is stubbed too uses the last value for subsequent calls + 949) the spy family of methods class_spy behaves like a verifying spy with a foo method fails fast when negative `have_received` is passed an undefined method name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:75 + # ./spec/rspec/mocks/spy_spec.rb:45 - 950) with default syntax configuration warns about unstubbing once, regardless of how many times it is called + 950) the spy family of methods class_spy behaves like a verifying spy with a foo method responds to methods on the verified object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:541 + # ./spec/rspec/mocks/spy_spec.rb:27 - 951) with default syntax configuration warns about should not once, regardless of how many times it is called + 951) the spy family of methods instance_spy when passing a class object takes a class and a hash of method names and return values # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:487 + # ./spec/rspec/mocks/spy_spec.rb:66 - 952) with default syntax configuration it warns about should once, regardless of how many times it is called + 952) the spy family of methods instance_spy when passing a class object behaves like a verifying spy with a foo method does not respond to methods that are not on the verified object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:475 + # ./spec/rspec/mocks/spy_spec.rb:31 - 953) with default syntax configuration doesn't warn about stubbing after a reset and setting should + 953) the spy family of methods instance_spy when passing a class object behaves like a verifying spy with a foo method fails fast when `have_received` is passed an undefined method name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:554 + # ./spec/rspec/mocks/spy_spec.rb:39 - 954) with default syntax configuration includes the call site in the deprecation warning + 954) the spy family of methods instance_spy when passing a class object behaves like a verifying spy with a foo method records called methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:564 + # ./spec/rspec/mocks/spy_spec.rb:35 - 955) with default syntax configuration warns about stubbing once, regardless of how many times it is called + 955) the spy family of methods instance_spy when passing a class object behaves like a verifying spy with a foo method responds to methods on the verified object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:496 + # ./spec/rspec/mocks/spy_spec.rb:27 - 956) a double receiving to_ary double without as_null_object responds when overridden + 956) the spy family of methods instance_spy when passing a class object behaves like a verifying spy with a foo method fails fast when negative `have_received` is passed an undefined method name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/to_ary_spec.rb:8 + # ./spec/rspec/mocks/spy_spec.rb:45 - 957) a double receiving to_ary double without as_null_object raises + 957) the spy family of methods instance_spy passing a class by string reference takes a class name string and a hash of method names and return values # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/to_ary_spec.rb:48 + # ./spec/rspec/mocks/spy_spec.rb:84 - 958) a double receiving to_ary double without as_null_object can be overridden with a stub + 958) the spy family of methods instance_spy passing a class by string reference behaves like a verifying spy with a foo method records called methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/to_ary_spec.rb:3 + # ./spec/rspec/mocks/spy_spec.rb:35 - 959) a double receiving to_ary double without as_null_object doesn't respond to to_ary + 959) the spy family of methods instance_spy passing a class by string reference behaves like a verifying spy with a foo method fails fast when `have_received` is passed an undefined method name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/to_ary_spec.rb:40 + # ./spec/rspec/mocks/spy_spec.rb:39 - 960) a double receiving to_ary double without as_null_object doesn't respond to to_a + 960) the spy family of methods instance_spy passing a class by string reference behaves like a verifying spy with a foo method fails fast when negative `have_received` is passed an undefined method name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/to_ary_spec.rb:44 + # ./spec/rspec/mocks/spy_spec.rb:45 - 961) a double receiving to_ary double without as_null_object supports Array#flatten + 961) the spy family of methods instance_spy passing a class by string reference behaves like a verifying spy with a foo method responds to methods on the verified object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/to_ary_spec.rb:13 + # ./spec/rspec/mocks/spy_spec.rb:27 - 962) a double receiving to_ary double as_null_object does respond to to_a + 962) the spy family of methods instance_spy passing a class by string reference behaves like a verifying spy with a foo method does not respond to methods that are not on the verified object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/to_ary_spec.rb:27 + # ./spec/rspec/mocks/spy_spec.rb:31 - 963) a double receiving to_ary double as_null_object responds when overridden + 963) the spy family of methods object_spy takes an instance and a hash of method names and return values # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/to_ary_spec.rb:8 + # ./spec/rspec/mocks/spy_spec.rb:105 - 964) a double receiving to_ary double as_null_object can be overridden with a stub + 964) the spy family of methods object_spy behaves like a verifying spy with a foo method records called methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/to_ary_spec.rb:3 + # ./spec/rspec/mocks/spy_spec.rb:35 - 965) a double receiving to_ary double as_null_object supports Array#flatten + 965) the spy family of methods object_spy behaves like a verifying spy with a foo method does not respond to methods that are not on the verified object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/to_ary_spec.rb:13 + # ./spec/rspec/mocks/spy_spec.rb:31 - 966) a double receiving to_ary double as_null_object returns nil + 966) the spy family of methods object_spy behaves like a verifying spy with a foo method fails fast when `have_received` is passed an undefined method name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/to_ary_spec.rb:31 + # ./spec/rspec/mocks/spy_spec.rb:39 - 967) a double receiving to_ary double as_null_object does respond to to_ary + 967) the spy family of methods object_spy behaves like a verifying spy with a foo method responds to methods on the verified object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/to_ary_spec.rb:23 + # ./spec/rspec/mocks/spy_spec.rb:27 - 968) a message expectation with multiple return values with a specified count equal to the number of values returns values in order to consecutive calls + 968) the spy family of methods object_spy behaves like a verifying spy with a foo method fails fast when negative `have_received` is passed an undefined method name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_return_value_spec.rb:60 + # ./spec/rspec/mocks/spy_spec.rb:45 - 969) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher describes passed matchers + 969) a message expectation with multiple return values with a specified count equal to the number of values returns values in order to consecutive calls # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/array_including_matcher_spec.rb:9 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:60 - 970) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher describes itself properly + 970) at_most returns the value given by a block when at_most(:once) method is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/array_including_matcher_spec.rb:5 + # ./spec/rspec/mocks/at_most_spec.rb:75 - 971) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, which includes nested arrays + 971) at_most passes when at_most(n) is called less than n times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/array_including_matcher_spec.rb:28 + # ./spec/rspec/mocks/at_most_spec.rb:21 - 972) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, specified without square brackets + 972) at_most passes when at_most(:twice) is called twice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/array_including_matcher_spec.rb:24 + # ./spec/rspec/mocks/at_most_spec.rb:49 - 973) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, specified without square brackets + 973) at_most passes when at_most(:once) is called once # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/array_including_matcher_spec.rb:20 + # ./spec/rspec/mocks/at_most_spec.rb:32 - 974) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing works with duplicates in actual + 974) at_most passes when at_most(:thrice) is called less than three times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/array_including_matcher_spec.rb:36 + # ./spec/rspec/mocks/at_most_spec.rb:61 - 975) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array + 975) at_most passes when at_most(:twice) is never called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/array_including_matcher_spec.rb:16 + # ./spec/rspec/mocks/at_most_spec.rb:56 - 976) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing works with duplicates in expected + 976) at_most passes when at_most(n) is never called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/array_including_matcher_spec.rb:32 + # ./spec/rspec/mocks/at_most_spec.rb:27 - 977) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing is composable with other matchers + 977) at_most fails fast when at_most(:twice) and is called three times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/array_including_matcher_spec.rb:40 + # ./spec/rspec/mocks/at_most_spec.rb:108 - 978) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing is composable when nested + 978) at_most fails fast when at_most(n) times method is called n plus 1 time # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/array_including_matcher_spec.rb:48 + # ./spec/rspec/mocks/at_most_spec.rb:91 - 979) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher failing fails when not all the entries in the expected are present + 979) at_most passes when at_most(:twice) is called once # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/array_including_matcher_spec.rb:56 + # ./spec/rspec/mocks/at_most_spec.rb:43 - 980) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher failing fails when passed a composed matcher is passed and not satisfied + 980) at_most fails fast when at_most(:thrice) and is called four times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/array_including_matcher_spec.rb:60 + # ./spec/rspec/mocks/at_most_spec.rb:117 - 981) An instance double with the doubled class not loaded includes the doubled module in errors for unexpected messages + 981) at_most passes when at_most(n) is called exactly 1 time # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:12 + # ./spec/rspec/mocks/at_most_spec.rb:8 - 982) An instance double with the doubled class not loaded handles classes that are materialized after mocking + 982) at_most passes when at_most(:thrice) is called thrice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:35 + # ./spec/rspec/mocks/at_most_spec.rb:67 - 983) An instance double with the doubled class not loaded allows any instance method to be expected + 983) at_most fails fast when at_most(:once) and is called twice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:25 + # ./spec/rspec/mocks/at_most_spec.rb:100 - 984) An instance double with the doubled class not loaded allows any instance method to be stubbed + 984) at_most passes when at_most(:once) is never called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:19 + # ./spec/rspec/mocks/at_most_spec.rb:38 - 985) An instance double with the doubled class not loaded for null objects reports it responds to any message + 985) at_most passes when at_most(n) is called exactly n times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:49 + # ./spec/rspec/mocks/at_most_spec.rb:14 - 986) An instance double with the doubled class not loaded for null objects returns self from any message + 986) at_most fails fast when at_most(n) times method is called n plus 1 times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:45 + # ./spec/rspec/mocks/at_most_spec.rb:81 - 987) An instance double with the doubled class not loaded when the class const has been previously stubbed treats the class as unloaded for `instance_double(NonLoadedClass)` + 987) at_most when called with negative expectation raises an error # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:64 + # ./spec/rspec/mocks/at_most_spec.rb:128 - 988) An instance double with the doubled class not loaded when the class const has been previously stubbed treats the class as unloaded for `instance_double('NonLoadedClass')` + 988) a message expectation with multiple return values with a specified count larger than the number of values fails fast when called greater than the specified number # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:59 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:122 - 989) Using a partial mock on a proxy object does not confuse the proxy and the proxied object + 989) a message expectation with multiple return values with a specified count larger than the number of values uses the last return value for subsequent calls # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:241 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:109 - 990) Using a partial mock on a proxy object works properly + 990) a message expectation with multiple return values with a specified count larger than the number of values fails when called less than the specified number # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:236 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:116 - 991) A class double with the doubled class not loaded includes the double name in errors for unexpected messages + 991) PreciseCounts fails when exactly n times method is called less than n times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:12 + # ./spec/rspec/mocks/precise_counts_spec.rb:8 - 992) A class double with the doubled class not loaded allows any method to be stubbed + 992) PreciseCounts returns the value given by a block when the exactly once method is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:19 + # ./spec/rspec/mocks/precise_counts_spec.rb:42 - 993) A class double with the doubled class not loaded trying to raise a class_double raises a TypeError + 993) PreciseCounts passes multiple calls with different args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:25 + # ./spec/rspec/mocks/precise_counts_spec.rb:48 - 994) A class double with the doubled class not loaded when the class const has been previously stubbed treats the class as being unloaded for `instance_double(NonLoadedClass)` + 994) PreciseCounts passes if exactly n times method is called exactly n times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:65 + # ./spec/rspec/mocks/precise_counts_spec.rb:34 - 995) A class double with the doubled class not loaded when the class const has been previously stubbed treats the class as being unloaded for `class_double('NonLoadedClass')` + 995) PreciseCounts passes multiple calls with different args and counts # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:60 + # ./spec/rspec/mocks/precise_counts_spec.rb:56 - 996) A class double with the doubled class not loaded when stubbing a private module method can mock private module methods + 996) PreciseCounts fails when exactly n times method is never called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:46 + # ./spec/rspec/mocks/precise_counts_spec.rb:27 - 997) RSpec::Mocks::ErrorGenerator formatting arguments formats time objects with increased precision + 997) PreciseCounts fails fast when exactly n times method is called more than n times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/error_generator_spec.rb:31 + # ./spec/rspec/mocks/precise_counts_spec.rb:17 - 998) RSpec::Mocks::ErrorGenerator formatting arguments on non-matcher objects that define #description does not use the object's description + 998) #once fails when not called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/error_generator_spec.rb:42 + # ./spec/rspec/mocks/once_counts_spec.rb:42 - 999) RSpec::Mocks::ErrorGenerator formatting arguments on matcher objects that do not define description does not use the object's description + 999) #once passes when called once with specified args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/error_generator_spec.rb:62 + # ./spec/rspec/mocks/once_counts_spec.rb:14 - 1000) RSpec::Mocks::ErrorGenerator formatting arguments on matcher objects on default method stub error message display starts in new line + 1000) #once passes when called once with unspecified args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/error_generator_spec.rb:79 + # ./spec/rspec/mocks/once_counts_spec.rb:20 - 1001) RSpec::Mocks::ErrorGenerator formatting arguments on matcher objects that define description uses the object's description + 1001) #once fails when called with wrong args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/error_generator_spec.rb:52 + # ./spec/rspec/mocks/once_counts_spec.rb:26 - 1002) RSpec::Mocks::ErrorGenerator when inserting a backtrace line produces stacktraces that match how `raise` produces stacktraces (on JRuby `caller` and `raise` can differ about the presence of java frames) + 1002) #once passes when called once # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/error_generator_spec.rb:15 + # ./spec/rspec/mocks/once_counts_spec.rb:8 - 1003) when using the :expect syntax still supports null object doubles + 1003) #once fails fast when called twice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/null_object_double_spec.rb:129 + # ./spec/rspec/mocks/once_counts_spec.rb:34 - 1004) when a class method is aliased on a subclass and the method is mocked restores the original aliased public method + 1004) #once when called with negative expectation raises an error # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stash_spec.rb:26 + # ./spec/rspec/mocks/once_counts_spec.rb:73 - 1005) a message expectation with multiple invoke handlers and no specified count fails when there are too many calls (if there is no stub) + 1005) #once when called with the wrong number of times with the specified args and also called with different args mentions the wrong call count in the failure message rather than the different args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:31 + # ./spec/rspec/mocks/once_counts_spec.rb:50 - 1006) a message expectation with multiple invoke handlers and no specified count invokes procs in order + 1006) unstubbing with `and_call_original` replaces the stubbed method with the original method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:10 + # ./spec/rspec/mocks/stub_implementation_spec.rb:30 - 1007) a message expectation with multiple invoke handlers and no specified count fails when there are too few calls (if there is no stub) + 1007) unstubbing with `and_call_original` removes all stubs with the supplied method name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:25 + # ./spec/rspec/mocks/stub_implementation_spec.rb:38 - 1008) a message expectation with multiple invoke handlers and no specified count falls back to a previously stubbed value + 1008) unstubbing with `and_call_original` does not remove any expectations with the same method name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:17 + # ./spec/rspec/mocks/stub_implementation_spec.rb:47 - 1009) a double _not_ acting as a null object says it does not respond to messages it doesn't understand + 1009) unstubbing with `and_call_original` when partial doubles are not verified restores the correct implementations when stubbed and unstubbed on a parent and child class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/null_object_double_spec.rb:8 + # ./spec/rspec/mocks/stub_implementation_spec.rb:58 - 1010) a double _not_ acting as a null object raises an error when interpolated in a string as an integer + 1010) unstubbing with `and_call_original` when partial doubles are not verified restores the correct implementations when stubbed and unstubbed on a grandparent and grandchild class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/null_object_double_spec.rb:17 + # ./spec/rspec/mocks/stub_implementation_spec.rb:71 - 1011) a double _not_ acting as a null object says it responds to messages it does understand + 1011) unstubbing with `and_call_original` when partial doubles are verified handles keyword arguments correctly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/null_object_double_spec.rb:12 + # ./spec/rspec/mocks/stub_implementation_spec.rb:97 - 1012) and_call_original on a partial double that overrides #method works for a singleton method + 1012) unstubbing with `and_call_original` when partial doubles are verified restores the correct implementations when stubbed and unstubbed on a parent and child class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:349 + # ./spec/rspec/mocks/stub_implementation_spec.rb:58 - 1013) and_call_original on a partial double that overrides #method still works even though #method has been overridden + 1013) unstubbing with `and_call_original` when partial doubles are verified restores the correct implementations when stubbed and unstubbed on a grandparent and grandchild class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:344 + # ./spec/rspec/mocks/stub_implementation_spec.rb:71 - 1014) and_call_original on a partial double works for methods that accept keyword arguments + 1014) Expected argument verification (when `#with` is called) when doubling an unloaded class allows any arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:237 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:11 - 1015) and_call_original on a partial double works for class methods defined on the Class class + 1015) Expected argument verification (when `#with` is called) when doubling a loaded class does not cover required args when `any_args` is not used # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:213 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:97 - 1016) and_call_original on a partial double warns when you override an existing implementation + 1016) Expected argument verification (when `#with` is called) when doubling a loaded class for a method with keyword args fails to match against a hash submitted as a positional argument and received as keyword arguments in Ruby 3.0 or later # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:90 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:134 - 1017) and_call_original on a partial double ignores prior declared stubs + 1017) Expected argument verification (when `#with` is called) when doubling a loaded class for a method with keyword args matches against a hash submitted as keyword arguments and received as positional argument (in both Ruby 2 and Ruby 3) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:70 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:128 - 1018) and_call_original on a partial double works for aliased methods + 1018) Expected argument verification (when `#with` is called) when doubling a loaded class for a method with keyword args when using `send` matches against keyword arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:225 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:150 - 1019) and_call_original on a partial double works for instance methods defined on the object's class's superclass + 1019) Expected argument verification (when `#with` is called) when doubling a loaded class when `with` is called with no args fails with an error suggesting the user use `no_args` instead # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:218 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:119 - 1020) and_call_original on a partial double works for class methods defined on a superclass + 1020) Expected argument verification (when `#with` is called) when doubling a loaded class when `any_args` is used as the first argument, with too many additional args is disallowed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:188 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:37 - 1021) and_call_original on a partial double works for class methods defined on a grandparent class + 1021) Expected argument verification (when `#with` is called) when doubling a loaded class when `any_args` is used as the first argument, with an allowed number of additional args is allowed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:207 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:45 - 1022) and_call_original on a partial double errors when you pass through the wrong number of args + 1022) Expected argument verification (when `#with` is called) when doubling a loaded class when `any_args` is used as the only argument is allowed regardless of how many args the method requires # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:82 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:29 - 1023) and_call_original on a partial double works for method added through an extended module onto a class's ancestor + 1023) Expected argument verification (when `#with` is called) when doubling a loaded class when a list of args is provided allows a method expectation when the arity matches # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:117 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:105 - 1024) and_call_original on a partial double passes the received message through to the original method + 1024) Expected argument verification (when `#with` is called) when doubling a loaded class when a list of args is provided does not allow a method expectation with an arity mismatch # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:65 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:111 - 1025) and_call_original on a partial double finds the method on the most direct singleton class ancestors even if the method is available on more distant ancestors + 1025) Expected argument verification (when `#with` is called) when doubling a loaded class when `no_args` is used does not allow a method expectation on a method that has required arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:133 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:72 - 1026) and_call_original on a partial double works for methods added through an extended module + 1026) Expected argument verification (when `#with` is called) when doubling a loaded class when `no_args` is used allows a method expectation on a method that accepts no arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:111 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:58 - 1027) and_call_original on a partial double passes args and blocks through to the original method + 1027) Expected argument verification (when `#with` is called) when doubling a loaded class when `no_args` is used allows a method expectation on a method that has defaults for all arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:76 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:66 - 1028) and_call_original on a partial double finds the method on the most direct ancestor even if the method is available on more distant ancestors + 1028) Expected argument verification (when `#with` is called) when doubling a loaded class when `no_args` is used for a method with required keyword args covers the required args when `any_args` is last # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:124 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:80 - 1029) and_call_original on a partial double for singleton methods works + 1029) Expected argument verification (when `#with` is called) when doubling a loaded class when `no_args` is used for a method with required keyword args does not cover the required args when there are args after `any_args` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:97 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:86 - 1030) and_call_original on a partial double for singleton methods works for SimpleDelegator subclasses + 1030) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher describes itself properly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:103 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:5 - 1031) and_call_original on a partial double on an object with a method propagated by method_missing works for the method propagated by method missing + 1031) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher describes passed matchers # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:266 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:9 - 1032) and_call_original on a partial double on an object with a method propagated by method_missing works for the method of any_instance mock propagated by method missing + 1032) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher failing fails when passed a composed matcher is passed and not satisfied # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:271 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:60 - 1033) and_call_original on a partial double when a method that exists has been stubbed previously restores the original behavior + 1033) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher failing fails when not all the entries in the expected are present # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:46 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:56 - 1034) and_call_original on a partial double when using any_instance works for instance methods defined on the superclass of the class + 1034) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, specified without square brackets # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:176 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:20 - 1035) and_call_original on a partial double when using any_instance works for instance methods that use required keyword arguments + 1035) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing is composable with other matchers # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:168 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:40 - 1036) and_call_original on a partial double when using any_instance works for instance methods defined on the class + 1036) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing works with duplicates in actual # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:143 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:36 - 1037) and_call_original on a partial double when using any_instance works for instance methods that use double splat + 1037) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, specified without square brackets # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:149 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:24 - 1038) and_call_original on a partial double when using any_instance works when mocking the method on one class and calling the method on an instance of a subclass + 1038) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:182 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:16 - 1039) and_call_original on a partial double when using any_instance works for instance methods that use optional keyword arguments with an argument supplied + 1039) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, which includes nested arrays # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:159 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:28 - 1040) and_call_original on a partial double when using any_instance works for instance methods that use optional keyword arguments + 1040) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing is composable when nested # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:154 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:48 - 1041) and_call_original on a partial double when a class method is stubbed in the superclass still works for class methods defined on a superclass + 1041) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing works with duplicates in expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:195 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:32 - 1042) and_call_original on a partial double when a non-existent method has been stubbed previously restores the original NameError behavior + 1042) a message expectation with multiple invoke handlers specifying at_least less than the number of values uses the last return value for subsequent calls # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:54 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:60 - 1043) and_call_original on a partial double on an object that defines method_missing raises an error for an unhandled message for an any_instance partial mock + 1043) a message expectation with multiple invoke handlers specifying at_least less than the number of values fails when called less than the specified number # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:305 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:67 - 1044) and_call_original on a partial double on an object that defines method_missing works when the method_missing definition handles the message + 1044) a message expectation with multiple invoke handlers specifying at_least less than the number of values when method is stubbed too uses the last value for subsequent calls # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:295 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:75 - 1045) and_call_original on a partial double on an object that defines method_missing works for an any_instance partial mock + 1045) a message expectation with multiple invoke handlers specifying at_least less than the number of values when method is stubbed too fails when called less than the specified number # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:300 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:82 - 1046) and_call_original on a partial double on an object that defines method_missing raises an error on invocation if method_missing does not handle the message + 1046) with default syntax configuration warns about should not once, regardless of how many times it is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:312 + # ./spec/rspec/mocks/should_syntax_spec.rb:487 - 1047) and_call_original on a pure test double raises an error even if the double object responds to the message + 1047) with default syntax configuration warns about stubbing once, regardless of how many times it is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:362 + # ./spec/rspec/mocks/should_syntax_spec.rb:496 - 1048) negative expectation failure allow(...).to_not receive_messages(:a => 1, :b => 2) + 1048) with default syntax configuration includes the call site in the deprecation warning # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:125 + # ./spec/rspec/mocks/should_syntax_spec.rb:564 - 1049) negative expectation failure expect(...).to_not receive_messages(:a => 1, :b => 2) + 1049) with default syntax configuration doesn't warn about stubbing after a reset and setting should # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:139 + # ./spec/rspec/mocks/should_syntax_spec.rb:554 - 1050) negative expectation failure expect_any_instance_of(...).to_not receive_messages(:a => 1, :b => 2) + 1050) with default syntax configuration warns about unstubbing once, regardless of how many times it is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:146 + # ./spec/rspec/mocks/should_syntax_spec.rb:541 - 1051) negative expectation failure allow_any_instance_of(...).to_not receive_messages(:a => 1, :b => 2) + 1051) with default syntax configuration it warns about should once, regardless of how many times it is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:132 + # ./spec/rspec/mocks/should_syntax_spec.rb:475 - 1052) and_return when no argument is passed raises ArgumentError + 1052) An object double does not allow transferring constants to an object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_return_spec.rb:15 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:45 - 1053) and_return when a block is passed raises ArgumentError + 1053) An object double can replace a constant by name and verify instance methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_return_spec.rb:7 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:17 - 1054) RSpec::Mocks::Space only adds an instance once + 1054) An object double does not allow as_stubbed_constant for real objects # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:120 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:52 - 1055) RSpec::Mocks::Space raises ArgumentError with message if object is symbol + 1055) An object double can replace an unloaded constant # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:241 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:8 - 1056) RSpec::Mocks::Space tracks proxies in parent and child space separately + 1056) An object double is not a module # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:108 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:58 - 1057) RSpec::Mocks::Space can be diffed in a failure when it has references to an error generator via a proxy + 1057) An object double can create a double that matches the interface of any arbitrary object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:229 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:32 - 1058) RSpec::Mocks::Space#reset_all resets all mocks within + 1058) An object double validates `with` args against the method signature when stubbing a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:50 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:62 - 1059) RSpec::Mocks::Space#reset_all allows Array#reverse to be stubbed + 1059) An object double when an unloaded object constant has previously been stubbed with a class treats it as being unloaded for `object_double(ConstName)` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:61 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:129 - 1060) RSpec::Mocks::Space#registered? returns true if registered in this space + 1060) An object double when an unloaded object constant has previously been stubbed with a class treats it as being unloaded for `object_double('ConstName')` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:166 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:124 - 1061) RSpec::Mocks::Space#registered? returns true if registered in a parent space + 1061) An object double when a loaded object constant has previously been stubbed with an object uses the original object to verify against for `object_double('ConstName')` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:171 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:72 - 1062) RSpec::Mocks::Space#registered? returns false if not registered in this or a parent space + 1062) An object double when a loaded object constant has previously been stubbed with an object uses the stubbed const value to verify against for `object_double(ConstName)`, which probably isn't what the user wants, but there's nothing else we can do since we can't get the constant name from the given object and thus cannot interrogate our stubbed const registry to see it has been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:176 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:78 - 1063) RSpec::Mocks::Space#ensure_registered does not store a parent's proxy in the child space + 1063) An object double when an unloaded object constant has previously been stubbed with an object uses the stubbed const value to verify against for `object_double(ConstName)`, which probably isn't what the user wants, but there's nothing else we can do since we can't get the constant name from the given object and thus cannot interrogate our stubbed const registry to see it has been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:154 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:111 - 1064) RSpec::Mocks::Space#ensure_registered can still return a proxy from a parent context + 1064) An object double when an unloaded object constant has previously been stubbed with an object treats it as being unloaded for `object_double('ConstName')` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:147 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:106 - 1065) RSpec::Mocks::Space#ensure_registered returns the proxy for the given object + 1065) An object double when a loaded object constant has previously been stubbed with a class uses the original object to verify against for `object_double(ConstName)` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:138 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:96 - 1066) RSpec::Mocks::Space#any_instance_recorder_for returns the recorder for the given class + 1066) An object double when a loaded object constant has previously been stubbed with a class uses the original object to verify against for `object_double('ConstName')` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:206 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:90 - 1067) RSpec::Mocks::Space#any_instance_recorder_for can still return a recorder from a parent context + 1067) OrderGroup #consume returns the first ordered? expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:212 + # ./spec/rspec/mocks/order_group_spec.rb:18 - 1068) RSpec::Mocks::Space#any_instance_recorder_for does not store a parent's proxy in the child space + 1068) OrderGroup #consume keeps returning ordered? expectation until all are returned # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:219 + # ./spec/rspec/mocks/order_group_spec.rb:21 - 1069) RSpec::Mocks::Space#verify_all verifies all any_instance recorders within + 1069) Constant Mutating #stub_const requires a string argument # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:25 + # ./spec/rspec/mocks/mutate_const_spec.rb:221 - 1070) RSpec::Mocks::Space#verify_all does not reset the proxies (as that should be delayed until reset_all) + 1070) Constant Mutating #stub_const for an unloaded constant with nested name that matches a top-level constant behaves like unloaded constant stubbing returns the stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:39 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1071) RSpec::Mocks::Space#verify_all verifies all mocks within + 1071) Constant Mutating #stub_const for an unloaded constant with nested name that matches a top-level constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:9 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1072) RSpec::Mocks::Space#proxies_of(klass) looks in the parent space for matching proxies + 1072) Constant Mutating #stub_const for an unloaded constant with nested name that matches a top-level constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:97 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1073) RSpec::Mocks::Space#proxies_of(klass) returns only the proxies whose object is an instance of the given class + 1073) Constant Mutating #stub_const for an unloaded constant with nested name that matches a top-level constant behaves like unloaded constant stubbing allows it to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:86 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1074) RSpec::Mocks::Space#proxies_of(klass) returns proxies + 1074) Constant Mutating #stub_const for a loaded nested constant behaves like loaded constant stubbing allows it to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:69 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 1075) RSpec::Mocks::Space#constant_mutator_for returns the mutator for the given const name + 1075) Constant Mutating #stub_const for a loaded nested constant behaves like loaded constant stubbing returns the stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:182 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 1076) RSpec::Mocks::Space#constant_mutator_for can still return a mutator from a parent context + 1076) Constant Mutating #stub_const for a loaded nested constant behaves like loaded constant stubbing resets it to its original value when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:192 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 1077) RSpec::Mocks::Space#proxy_for returns the proxy for the given object + 1077) Constant Mutating #stub_const for an unloaded constant nested in a module that redefines `send` behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:138 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1078) RSpec::Mocks::Space#proxy_for can still return a proxy from a parent context + 1078) Constant Mutating #stub_const for an unloaded constant nested in a module that redefines `send` behaves like unloaded constant stubbing removes the constant when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:147 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1079) RSpec::Mocks::Space#proxy_for does not store a parent's proxy in the child space + 1079) Constant Mutating #stub_const for an unloaded constant nested in a module that redefines `send` behaves like unloaded constant stubbing allows it to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:154 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1080) A partial class mock that has been subclassed cleans up stubs during #reset to prevent leakage onto subclasses between examples + 1080) Constant Mutating #stub_const for an unloaded constant nested in a module that redefines `send` behaves like unloaded constant stubbing returns the stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:278 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1081) A partial class mock that has been subclassed stubbing a base class class method returns the value for the stub on the base class + 1081) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing allows it to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:292 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1082) A partial class mock that has been subclassed stubbing a base class class method returns the value for the descendent class + 1082) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing removes the constant when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:296 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1083) allow_any_instance_of(...).to receive_messages(:a => 1, :b => 2) updates stubs on instances with existing stubs + 1083) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:55 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1084) allow_any_instance_of(...).to receive_messages(:a => 1, :b => 2) allows the object to respond to multiple messages + 1084) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing returns the stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:49 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1085) allow_any_instance_of(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given + 1085) Constant Mutating #stub_const for a loaded unnested constant allows nested constants to be transferred to a stub module # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 + # ./spec/rspec/mocks/mutate_const_spec.rb:238 - 1086) allow_any_instance_of(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a do; end; block is given + 1086) Constant Mutating #stub_const for a loaded unnested constant removes the transferred constants on reset # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 + # ./spec/rspec/mocks/mutate_const_spec.rb:247 - 1087) RSpec::Mocks::Double#and_yield with eval context as block argument passes an eval context object to the supplied block + 1087) Constant Mutating #stub_const for a loaded unnested constant raises an error if asked to transfer nested constants on a constant that does not support nested constants # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_yield_spec.rb:29 + # ./spec/rspec/mocks/mutate_const_spec.rb:298 - 1088) RSpec::Mocks::Double#and_yield with eval context as block argument evaluates the block passed to the stubbed method in the context of the supplied eval context + 1088) Constant Mutating #stub_const for a loaded unnested constant does not transfer nested constants that are inherited from a superclass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_yield_spec.rb:35 + # ./spec/rspec/mocks/mutate_const_spec.rb:256 - 1089) RSpec::Mocks::Double#and_yield with eval context as block argument evaluates the supplied block as it is read + 1089) Constant Mutating #stub_const for a loaded unnested constant raises an error if asked to transfer a nested constant that is not defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_yield_spec.rb:21 + # ./spec/rspec/mocks/mutate_const_spec.rb:313 - 1090) RSpec::Mocks::Double#and_yield with eval context as block argument and no yielded arguments fails when expectations set on the eval context are not met + 1090) Constant Mutating #stub_const for a loaded unnested constant raises an error if asked to transfer nested constants but given an object that does not support them # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_yield_spec.rb:66 + # ./spec/rspec/mocks/mutate_const_spec.rb:282 - 1091) RSpec::Mocks::Double#and_yield with eval context as block argument and no yielded arguments passes when expectations set on the eval context are met + 1091) Constant Mutating #stub_const for a loaded unnested constant can be stubbed multiple times but still restores the original value properly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_yield_spec.rb:52 + # ./spec/rspec/mocks/mutate_const_spec.rb:228 - 1092) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments can yield to a block that uses `super` + 1092) Constant Mutating #stub_const for a loaded unnested constant raises an error when asked to transfer a nested inherited constant # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_yield_spec.rb:128 + # ./spec/rspec/mocks/mutate_const_spec.rb:264 - 1093) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments fails when expectations set on the eval context and yielded arguments are not met + 1093) Constant Mutating #stub_const for a loaded unnested constant allows nested constants to be selectively transferred to a stub module # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_yield_spec.rb:139 + # ./spec/rspec/mocks/mutate_const_spec.rb:274 - 1094) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments passes when expectations set on the eval context and yielded arguments are met + 1094) Constant Mutating #stub_const for a loaded unnested constant with global transfer_nested_constant option set allows nested constants to be transferred to a stub module # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_yield_spec.rb:84 + # ./spec/rspec/mocks/mutate_const_spec.rb:332 - 1095) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments that are optional yields given argument when the argument is given + 1095) Constant Mutating #stub_const for a loaded unnested constant with global transfer_nested_constant option set when stubbing a constant that is not a module or a class still raises an error when the `:transfer_nested_constants` option is provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_yield_spec.rb:114 + # ./spec/rspec/mocks/mutate_const_spec.rb:347 - 1096) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments that are optional yields the default argument when the argument is not given + 1096) Constant Mutating #stub_const for a loaded unnested constant with global transfer_nested_constant option set when stubbing a constant that is not a module or a class does not attempt to transfer constants # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_yield_spec.rb:103 + # ./spec/rspec/mocks/mutate_const_spec.rb:342 - 1097) RSpec::Mocks::Double#and_yield when the method double has been constrained by `with` uses the default stub if the provided args do not match + 1097) Constant Mutating #stub_const for a loaded unnested constant behaves like loaded constant stubbing allows it to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_yield_spec.rb:7 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 1098) .expect_message fails if never is specified and the message is called + 1098) Constant Mutating #stub_const for a loaded unnested constant behaves like loaded constant stubbing resets it to its original value when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:66 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 1099) .expect_message accepts a block implementation for the expected message + 1099) Constant Mutating #stub_const for a loaded unnested constant behaves like loaded constant stubbing returns the stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:85 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 1100) .expect_message does not get confused when the string and symbol message form are both used + 1100) Constant Mutating #stub_const for a loaded constant prefixed with :: behaves like loaded constant stubbing allows it to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:91 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 1101) .expect_message sets up basic message expectation, verifies as called + 1101) Constant Mutating #stub_const for a loaded constant prefixed with :: behaves like loaded constant stubbing resets it to its original value when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:73 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 1102) .expect_message sets up basic message expectation, verifies as uncalled + 1102) Constant Mutating #stub_const for a loaded constant prefixed with :: behaves like loaded constant stubbing returns the stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:56 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 1103) .expect_message sets up message expectation with params and return value + 1103) Constant Mutating #stub_const for an unloaded nested constant removes the root constant when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:79 + # ./spec/rspec/mocks/mutate_const_spec.rb:387 - 1104) .expect_message when target cannot be proxied raises ArgumentError with message + 1104) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing allows it to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:102 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1105) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher describes passed matchers + 1105) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:10 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1106) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher describes itself properly + 1106) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:6 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1107) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with a missing key when one pair is matching + 1107) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing returns the stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:87 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1108) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match when values are nil but keys are different + 1108) Constant Mutating #stub_const for an unloaded deeply nested constant removes the root constant when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:95 + # ./spec/rspec/mocks/mutate_const_spec.rb:398 - 1109) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match an empty hash with a given key + 1109) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:83 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1110) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with a missing key + 1110) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:75 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1111) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with an incorrect value + 1111) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing returns the stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:91 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1112) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with a missing key + 1112) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing allows it to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:79 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1113) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a non-hash + 1113) Constant Mutating #stub_const for a loaded deeply nested constant behaves like loaded constant stubbing allows it to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:71 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 1114) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing matches against classes inheriting from Hash + 1114) Constant Mutating #stub_const for a loaded deeply nested constant behaves like loaded constant stubbing resets it to its original value when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:25 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 1115) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing matches the same hash + 1115) Constant Mutating #stub_const for a loaded deeply nested constant behaves like loaded constant stubbing returns the stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:17 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 1116) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing matches a hash with extra stuff + 1116) Constant Mutating #stub_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant stubbing returns the stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:21 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 1117) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when matching against other matchers matches a string against anything() + 1117) Constant Mutating #stub_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant stubbing resets it to its original value when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:34 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 1118) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when matching against other matchers can match against arbitrary objects that implement #=== + 1118) Constant Mutating #stub_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant stubbing allows it to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:38 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 1119) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when matching against other matchers matches an int against anything() + 1119) Constant Mutating #stub_const for an unloaded constant nested within a loaded constant raises a helpful error if it cannot be stubbed due to an intermediary constant that is not a module # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:30 + # ./spec/rspec/mocks/mutate_const_spec.rb:418 - 1120) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches if passed many keys and one key/value pair + 1120) Constant Mutating #stub_const for an unloaded constant nested within a loaded constant removes the unloaded constant but leaves the loaded constant when rspec resets its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:60 + # ./spec/rspec/mocks/mutate_const_spec.rb:409 - 1121) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches if passed many keys and many key/value pairs + 1121) Constant Mutating #stub_const for an unloaded constant nested within a loaded constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:64 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1122) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches if passed one key and one key/value pair + 1122) Constant Mutating #stub_const for an unloaded constant nested within a loaded constant behaves like unloaded constant stubbing returns the stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:56 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1123) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches if more keys are present + 1123) Constant Mutating #stub_const for an unloaded constant nested within a loaded constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:48 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1124) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches a string against a given key + 1124) Constant Mutating #stub_const for an unloaded constant nested within a loaded constant behaves like unloaded constant stubbing allows it to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:52 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1125) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches if the key is present + 1125) Constant Mutating #stub_const for an unloaded constant nested deeply within a deeply nested loaded constant removes the first unloaded constant but leaves the loaded nested constant when rspec resets its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:44 + # ./spec/rspec/mocks/mutate_const_spec.rb:427 - 1126) a double stubbed with multiple return values can still set a message expectation with a single return value + 1126) Constant Mutating #stub_const for an unloaded constant nested deeply within a deeply nested loaded constant behaves like unloaded constant stubbing allows it to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_return_value_spec.rb:10 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1127) #thrice passes when called thrice with unspecified args + 1127) Constant Mutating #stub_const for an unloaded constant nested deeply within a deeply nested loaded constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/thrice_counts_spec.rb:20 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1128) #thrice fails when called with wrong args on the first call + 1128) Constant Mutating #stub_const for an unloaded constant nested deeply within a deeply nested loaded constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/thrice_counts_spec.rb:44 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1129) #thrice passes when called thrice + 1129) Constant Mutating #stub_const for an unloaded constant nested deeply within a deeply nested loaded constant behaves like unloaded constant stubbing returns the stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/thrice_counts_spec.rb:8 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1130) #thrice fails when called with wrong args on the second call + 1130) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/thrice_counts_spec.rb:52 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1131) #thrice passes when called thrice with specified args + 1131) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing returns the stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/thrice_counts_spec.rb:14 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1132) #thrice fails when call count is lower than expected + 1132) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing allows it to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/thrice_counts_spec.rb:36 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1133) #thrice fails when called with wrong args on the third call + 1133) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/thrice_counts_spec.rb:61 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1134) #thrice fails fast when call count is higher than expected + 1134) Constant Mutating #hide_const allows a constant to be hidden, then stubbed, restoring it to its original value properly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/thrice_counts_spec.rb:28 + # ./spec/rspec/mocks/mutate_const_spec.rb:202 - 1135) #thrice when called with negative expectation raises an error + 1135) Constant Mutating #hide_const can be hidden multiple times but still restores the original value properly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/thrice_counts_spec.rb:72 + # ./spec/rspec/mocks/mutate_const_spec.rb:193 - 1136) Loading rspec/mocks/standalone does not infect other objects with the RSpec::Mocks API + 1136) Constant Mutating #hide_const for an unloaded nested constant behaves like unloaded constant hiding allows it to be hidden, though the operation has no effect # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/standalone_spec.rb:20 + # ./spec/rspec/mocks/mutate_const_spec.rb:134 - 1137) Loading rspec/mocks/standalone exposes the RSpec::Mocks API on `main` + 1137) Constant Mutating #hide_const for an unloaded nested constant behaves like unloaded constant hiding returns nil # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/standalone_spec.rb:7 + # ./spec/rspec/mocks/mutate_const_spec.rb:145 - 1138) A chained method stub returns expected value from chaining four method calls + 1138) Constant Mutating #hide_const for an unloaded nested constant behaves like unloaded constant hiding remains undefined after rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_chain_spec.rb:96 + # ./spec/rspec/mocks/mutate_const_spec.rb:139 - 1139) A chained method stub returns expected value from two chains with shared messages at the beginning + 1139) Constant Mutating #hide_const for an unloaded unnested constant behaves like unloaded constant hiding remains undefined after rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_chain_spec.rb:152 + # ./spec/rspec/mocks/mutate_const_spec.rb:139 - 1140) A chained method stub handles private instance methods (like Object#select) in the middle of a chain + 1140) Constant Mutating #hide_const for an unloaded unnested constant behaves like unloaded constant hiding returns nil # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_chain_spec.rb:160 + # ./spec/rspec/mocks/mutate_const_spec.rb:145 - 1141) A chained method stub returns expected value when chain is a dot separated string, like stub_chain('msg1.msg2.msg3') + 1141) Constant Mutating #hide_const for an unloaded unnested constant behaves like unloaded constant hiding allows it to be hidden, though the operation has no effect # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_chain_spec.rb:147 + # ./spec/rspec/mocks/mutate_const_spec.rb:134 - 1142) A chained method stub does not get confused by symbol vs string usage for the messages + 1142) Constant Mutating #hide_const for an unloaded constant with nested name that matches a top-level constant does not hide the top-level constant # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_chain_spec.rb:6 + # ./spec/rspec/mocks/mutate_const_spec.rb:166 - 1143) A chained method stub with four methods in chain using and_return returns expected value from chaining two method calls + 1143) Constant Mutating #hide_const for an unloaded constant with nested name that matches a top-level constant behaves like unloaded constant hiding returns nil # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_chain_spec.rb:68 + # ./spec/rspec/mocks/mutate_const_spec.rb:145 - 1144) A chained method stub with four methods in chain using a hash returns the value of the key/value pair + 1144) Constant Mutating #hide_const for an unloaded constant with nested name that matches a top-level constant behaves like unloaded constant hiding remains undefined after rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_chain_spec.rb:82 + # ./spec/rspec/mocks/mutate_const_spec.rb:139 - 1145) A chained method stub with four methods in chain using a hash with a string key returns the value of the key/value pair + 1145) Constant Mutating #hide_const for an unloaded constant with nested name that matches a top-level constant behaves like unloaded constant hiding allows it to be hidden, though the operation has no effect # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_chain_spec.rb:89 + # ./spec/rspec/mocks/mutate_const_spec.rb:134 - 1146) A chained method stub with four methods in chain using a block returns the correct value + 1146) Constant Mutating #hide_const for a loaded nested constant behaves like loaded constant hiding returns nil # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_chain_spec.rb:75 + # ./spec/rspec/mocks/mutate_const_spec.rb:93 - 1147) A chained method stub with one method in chain using a hash returns the value of the key/value pair + 1147) Constant Mutating #hide_const for a loaded nested constant behaves like loaded constant hiding allows it to be hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_chain_spec.rb:30 + # ./spec/rspec/mocks/mutate_const_spec.rb:82 - 1148) A chained method stub with one method in chain using a block returns the correct value + 1148) Constant Mutating #hide_const for a loaded nested constant behaves like loaded constant hiding resets the constant when rspec clear its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_chain_spec.rb:23 + # ./spec/rspec/mocks/mutate_const_spec.rb:87 - 1149) A chained method stub with one method in chain using and_return returns expected value from chaining only one method call + 1149) Constant Mutating #hide_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant hiding resets the constant when rspec clear its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_chain_spec.rb:16 + # ./spec/rspec/mocks/mutate_const_spec.rb:87 - 1150) A chained method stub with messages shared across multiple chains using and_return starting with the different messages returns expected value + 1150) Constant Mutating #hide_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant hiding allows it to be hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_chain_spec.rb:114 + # ./spec/rspec/mocks/mutate_const_spec.rb:82 - 1151) A chained method stub with messages shared across multiple chains using and_return starting with the same message returns expected value + 1151) Constant Mutating #hide_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant hiding returns nil # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_chain_spec.rb:104 + # ./spec/rspec/mocks/mutate_const_spec.rb:93 - 1152) A chained method stub with messages shared across multiple chains using => value starting with the same message returns expected value + 1152) Constant Mutating #hide_const for a loaded constant prefixed with :: behaves like loaded constant hiding returns nil # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_chain_spec.rb:126 + # ./spec/rspec/mocks/mutate_const_spec.rb:93 - 1153) A chained method stub with messages shared across multiple chains using => value starting with different messages returns expected value + 1153) Constant Mutating #hide_const for a loaded constant prefixed with :: behaves like loaded constant hiding allows it to be hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_chain_spec.rb:136 + # ./spec/rspec/mocks/mutate_const_spec.rb:82 - 1154) A chained method stub with two methods in chain accepts any number of arguments to the stubbed messages in the chain + 1154) Constant Mutating #hide_const for a loaded constant prefixed with :: behaves like loaded constant hiding resets the constant when rspec clear its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_chain_spec.rb:38 + # ./spec/rspec/mocks/mutate_const_spec.rb:87 - 1155) A chained method stub with two methods in chain using and_return returns expected value from chaining two method calls + 1155) Constant Mutating #hide_const for a loaded deeply nested constant behaves like loaded constant hiding allows it to be hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_chain_spec.rb:45 + # ./spec/rspec/mocks/mutate_const_spec.rb:82 - 1156) A chained method stub with two methods in chain using a hash returns the value of the key/value pair + 1156) Constant Mutating #hide_const for a loaded deeply nested constant behaves like loaded constant hiding resets the constant when rspec clear its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_chain_spec.rb:59 + # ./spec/rspec/mocks/mutate_const_spec.rb:87 - 1157) A chained method stub with two methods in chain using a block returns the correct value + 1157) Constant Mutating #hide_const for a loaded deeply nested constant behaves like loaded constant hiding returns nil # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_chain_spec.rb:52 + # ./spec/rspec/mocks/mutate_const_spec.rb:93 - 1158) #twice fails when called with wrong args on the second call + 1158) negative expectation failure allow_any_instance_of(...).to_not receive_messages(:a => 1, :b => 2) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/twice_counts_spec.rb:54 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:132 - 1159) #twice fails when called with wrong args on the first call + 1159) negative expectation failure allow(...).to_not receive_messages(:a => 1, :b => 2) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/twice_counts_spec.rb:46 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:125 - 1160) #twice fails when call count is lower than expected + 1160) negative expectation failure expect(...).to_not receive_messages(:a => 1, :b => 2) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/twice_counts_spec.rb:38 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:139 - 1161) #twice passes when called twice with specified args + 1161) negative expectation failure expect_any_instance_of(...).to_not receive_messages(:a => 1, :b => 2) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/twice_counts_spec.rb:15 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:146 - 1162) #twice passes when called twice + 1162) A partial double can disallow messages from being received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/twice_counts_spec.rb:8 + # ./spec/rspec/mocks/partial_double_spec.rb:64 - 1163) #twice passes when called twice with unspecified args + 1163) A partial double does not conflict with @options in the object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/twice_counts_spec.rb:22 + # ./spec/rspec/mocks/partial_double_spec.rb:26 - 1164) #twice fails fast when call count is higher than expected + 1164) A partial double names the class in the failure message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/twice_counts_spec.rb:29 + # ./spec/rspec/mocks/partial_double_spec.rb:12 - 1165) #twice when called with the wrong number of times with the specified args and also called with different args mentions the wrong call count in the failure message rather than the different args + 1165) A partial double can accept a hash as a message argument # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/twice_counts_spec.rb:64 + # ./spec/rspec/mocks/partial_double_spec.rb:79 - 1166) #twice when called with negative expectation raises an error + 1166) A partial double shares message expectations with clone # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/twice_counts_spec.rb:89 + # ./spec/rspec/mocks/partial_double_spec.rb:160 - 1167) a double declaration with a block handed to: twice returns the value of executing the block + 1167) A partial double allows `class` to be stubbed even when `any_instance` has already been used # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/block_return_value_spec.rb:53 + # ./spec/rspec/mocks/partial_double_spec.rb:32 - 1168) a double declaration with a block handed to: allow(...).to receive returns the value of executing the block + 1168) A partial double can accept an inner hash as a message argument # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/block_return_value_spec.rb:19 + # ./spec/rspec/mocks/partial_double_spec.rb:86 - 1169) a double declaration with a block handed to: allow(...).to receive forwards all given args to the block, even when it receives a block + 1169) A partial double can create a positive message expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/block_return_value_spec.rb:27 + # ./spec/rspec/mocks/partial_double_spec.rb:95 - 1170) a double declaration with a block handed to: times returns the value of executing the block + 1170) A partial double allows `respond_to?` to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/block_return_value_spec.rb:71 + # ./spec/rspec/mocks/partial_double_spec.rb:46 - 1171) a double declaration with a block handed to: with returns the value of executing the block with given argument + 1171) A partial double can accept the string form of a message for a negative message expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/block_return_value_spec.rb:44 + # ./spec/rspec/mocks/partial_double_spec.rb:124 - 1172) a double declaration with a block handed to: with returns the value of executing the block + 1172) A partial double allows a class and a subclass to both be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/block_return_value_spec.rb:38 + # ./spec/rspec/mocks/partial_double_spec.rb:100 - 1173) a double declaration with a block handed to: once returns the value of executing the block + 1173) A partial double can expect a message and set a return value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/block_return_value_spec.rb:53 + # ./spec/rspec/mocks/partial_double_spec.rb:74 - 1174) a double declaration with a block handed to: ordered returns the value of executing the block + 1174) A partial double can accept the string form of a message for a positive message expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/block_return_value_spec.rb:62 + # ./spec/rspec/mocks/partial_double_spec.rb:119 - 1175) a double declaration with a block handed to: expect(...).to receive works when a multi-return stub has already been set + 1175) A partial double clears message expectations when `dup`ed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/block_return_value_spec.rb:9 + # ./spec/rspec/mocks/partial_double_spec.rb:168 - 1176) a double declaration with a block handed to: expect(...).to receive returns the value of executing the block + 1176) A partial double includes the class name in the error when mocking a class method that is called an extra time with the wrong args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/block_return_value_spec.rb:3 + # ./spec/rspec/mocks/partial_double_spec.rb:145 - 1177) expection set on previously stubbed method handles concurrent validation of expectations + 1177) A partial double uses reports nil in the error message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:26 + # ./spec/rspec/mocks/partial_double_spec.rb:132 - 1178) expection set on previously stubbed method indicates the site of expectation in the stacktrace when outputing arguments of similar calls + 1178) A partial double does not create an any_instance recorder when a message is allowed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:43 + # ./spec/rspec/mocks/partial_double_spec.rb:6 - 1179) expection set on previously stubbed method outputs arguments of similar calls + 1179) A partial double names the class in the failure message when expectation is on class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:9 + # ./spec/rspec/mocks/partial_double_spec.rb:19 - 1180) expection set on previously stubbed method fails if message is not received after expectation is set + 1180) A partial double verifies the method was called when expecting a message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:2 + # ./spec/rspec/mocks/partial_double_spec.rb:112 - 1181) expection set on previously stubbed method with argument constraint on stub matches specific args set on expectation + 1181) A method stub with args uses the correct stubbed response when responding to a mock expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:68 + # ./spec/rspec/mocks/stub_spec.rb:555 - 1182) expection set on previously stubbed method with argument constraint on stub distinguishes between duplicate individual values and arrays properly + 1182) A method stub with args does not complain if not called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:95 + # ./spec/rspec/mocks/stub_spec.rb:521 - 1183) expection set on previously stubbed method with argument constraint on stub distinguishes between individual values and arrays properly + 1183) A method stub with args complains if also mocked w/ different args AND called w/ a 3rd set of args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:84 + # ./spec/rspec/mocks/stub_spec.rb:546 - 1184) expection set on previously stubbed method with argument constraint on stub matches any args if no arg constraint set on expectation + 1184) A method stub with args does not complain if called with arg # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:60 + # ./spec/rspec/mocks/stub_spec.rb:524 - 1185) expection set on previously stubbed method with argument constraint on stub fails if expectation's arg constraint is not met + 1185) A method stub with args does not complain if also mocked w/ different args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:76 + # ./spec/rspec/mocks/stub_spec.rb:540 - 1186) Supporting Rails monkey patches works mocking any instance when Rails has monkey patched #with + 1186) A method stub with args complains if called with other arg # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/integration/rails_support_spec.rb:37 + # ./spec/rspec/mocks/stub_spec.rb:534 - 1187) Supporting Rails monkey patches works when Rails has monkey patched #with + 1187) A method stub with args complains if called with no arg # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/integration/rails_support_spec.rb:10 + # ./spec/rspec/mocks/stub_spec.rb:528 - 1188) RSpec::Mocks::Matchers::Receive has a description before being matched + 1188) ordering supports duplicate messages # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:636 + # ./spec/rspec/mocks/mock_ordering_spec.rb:100 - 1189) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation sets up a message expectation that formats argument matchers correctly + 1189) ordering fails when messages are received out of order (3rd message 2nd) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:611 + # ./spec/rspec/mocks/mock_ordering_spec.rb:56 - 1190) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation sets up a message expectation that passes if the message is received + 1190) ordering passes when messages are received in order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:254 + # ./spec/rspec/mocks/mock_ordering_spec.rb:7 - 1191) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation reports the line number of expectation of unreceived message + 1191) ordering fails when messages are received out of order (3rd message 1st) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:268 + # ./spec/rspec/mocks/mock_ordering_spec.rb:46 - 1192) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation provides a useful matcher description + 1192) ordering fails when messages are out of order across objects # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:278 + # ./spec/rspec/mocks/mock_ordering_spec.rb:66 - 1193) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation sets up a message expectation that fails if the message is not received + 1193) ordering ignores order of non ordered messages # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:260 + # ./spec/rspec/mocks/mock_ordering_spec.rb:80 - 1194) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher does not get confused by messages being passed as strings and symbols + 1194) ordering passes when messages are received in order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:203 + # ./spec/rspec/mocks/mock_ordering_spec.rb:16 - 1195) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher gives precedence to a `{ ... }` block when both forms are provided since that form actually binds to `receive` + 1195) ordering passes when messages are received in order across objects # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:182 + # ./spec/rspec/mocks/mock_ordering_spec.rb:27 - 1196) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows a `{ ... }` block implementation to be provided + 1196) ordering fails when messages are received out of order (2nd message 1st) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:177 + # ./spec/rspec/mocks/mock_ordering_spec.rb:38 - 1197) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows the caller to configure how the subject responds + 1197) receive_message_chain when the expect and should syntaxes are enabled stubs the message correctly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:49 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:241 - 1198) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher does not support other matchers + 1198) receive_message_chain with only the expect syntax enabled errors with a negative any_instance allowance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:191 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:26 - 1199) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows do...end blocks to be passed to the fluent interface methods without getting a warning + 1199) receive_message_chain with only the expect syntax enabled raises when expect is used and all but the last message in the chain are called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:211 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:135 - 1200) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows the caller to constrain the received arguments + 1200) receive_message_chain with only the expect syntax enabled works with and_return # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:54 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:54 - 1201) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher does support inherited matchers + 1201) receive_message_chain with only the expect syntax enabled errors with a negative any_instance expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:197 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:20 - 1202) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows chaining off a `do...end` block implementation to be provided + 1202) receive_message_chain with only the expect syntax enabled raises when expect is used and some of the messages in the chain aren't called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:169 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:127 - 1203) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows the caller to constrain the received arguments by matcher + 1203) receive_message_chain with only the expect syntax enabled works with a {} block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:63 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:40 - 1204) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher makes { } blocks trump do...end blocks when passed to a fluent interface method + 1204) receive_message_chain with only the expect syntax enabled works with a do block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:221 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:32 - 1205) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver expects to receive hash with a hash + 1205) receive_message_chain with only the expect syntax enabled affects previously stubbed instances when `expect_any_instance_of` is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:153 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:175 - 1206) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver expects to receive keyword args with a hash + 1206) receive_message_chain with only the expect syntax enabled provides a matcher description (when passing symbols and a hash) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:159 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:232 - 1207) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with optional keyword args to be provided + 1207) receive_message_chain with only the expect syntax enabled works with and_yield # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:98 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:97 - 1208) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with keyword args to be provided + 1208) receive_message_chain with only the expect syntax enabled works with a hash return as the last argument in the chain # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:90 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:109 - 1209) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver fails to expect to receive hash with keyword args + 1209) receive_message_chain with only the expect syntax enabled accepts any number of arguments to the stubbed messages # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:133 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:115 - 1210) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver allows a `do...end` block implementation to be provided + 1210) receive_message_chain with only the expect syntax enabled works with allow where the first level of the chain is already stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:81 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:214 - 1211) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with required keyword args + 1211) receive_message_chain with only the expect syntax enabled stubs already stubbed instances when using `allow_any_instance_of` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:118 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:159 - 1212) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver expects to receive keyword args + 1212) receive_message_chain with only the expect syntax enabled provides a matcher description (when passing a string) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:126 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:222 - 1213) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with optional keyword args to be provided + 1213) receive_message_chain with only the expect syntax enabled errors with a negative allowance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:106 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:8 - 1214) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like resets partial mocks of any instance cleanly removes the method double + 1214) receive_message_chain with only the expect syntax enabled works with allow_any_instance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:347 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:151 - 1215) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like resets partial mocks of any instance cleanly removes the method double + 1215) receive_message_chain with only the expect syntax enabled can constrain the return value by the argument to the last call # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:347 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:66 - 1216) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance does not expect the message to be received + 1216) receive_message_chain with only the expect syntax enabled fails when with expect_any_instance_of is used and the entire chain is not called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:233 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:168 - 1217) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher makes { } blocks trump do...end blocks when passed to a fluent interface method + 1217) receive_message_chain with only the expect syntax enabled works with expect where the first level of the chain is already expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:221 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:190 - 1218) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does not get confused by messages being passed as strings and symbols + 1218) receive_message_chain with only the expect syntax enabled works with allow where the first level of the chain is already expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:203 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:198 - 1219) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does not support other matchers + 1219) receive_message_chain with only the expect syntax enabled works with and_raise # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:191 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:85 - 1220) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows the caller to constrain the received arguments by matcher + 1220) receive_message_chain with only the expect syntax enabled passes when with expect_any_instance_of is used and the entire chain is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:63 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:183 - 1221) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher gives precedence to a `{ ... }` block when both forms are provided since that form actually binds to `receive` + 1221) receive_message_chain with only the expect syntax enabled works with and_invoke # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:182 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:60 - 1222) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows do...end blocks to be passed to the fluent interface methods without getting a warning + 1222) receive_message_chain with only the expect syntax enabled does not raise when expect is used and the entire chain is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:211 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:143 - 1223) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows chaining off a `do...end` block implementation to be provided + 1223) receive_message_chain with only the expect syntax enabled works with and_call_original # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:169 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:73 - 1224) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does support inherited matchers + 1224) receive_message_chain with only the expect syntax enabled errors with a negative expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:197 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:14 - 1225) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows the caller to constrain the received arguments + 1225) receive_message_chain with only the expect syntax enabled works with expect where the first level of the chain is already stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:54 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:206 - 1226) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows a `{ ... }` block implementation to be provided + 1226) receive_message_chain with only the expect syntax enabled works with and_throw # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:177 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:91 - 1227) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows the caller to configure how the subject responds + 1227) receive_message_chain with only the expect syntax enabled provides a matcher description (when passing symbols) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:49 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:227 - 1228) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with required keyword args + 1228) receive_message_chain with only the expect syntax enabled works with a string of messages to chain # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:118 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:103 - 1229) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with optional keyword args to be provided + 1229) receive_message_chain with only the expect syntax enabled accepts any number of arguments to the stubbed messages with an inline hash return value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:98 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:121 - 1230) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with keyword args to be provided + 1230) receive_message_chain with only the expect syntax enabled fails with and_call_original when the entire chain is not called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:90 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:79 - 1231) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver allows a `do...end` block implementation to be provided + 1231) receive_message_chain with only the expect syntax enabled gives the { } block precedence over the do block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:81 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:46 - 1232) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver expects to receive keyword args + 1232) PartialDoubleUsingMocksDirectly fails when message is received with incorrect args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:126 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:35 - 1233) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver expects to receive keyword args with a hash + 1233) PartialDoubleUsingMocksDirectly fails when expected message is not received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:159 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:28 - 1234) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver expects to receive hash with a hash + 1234) PartialDoubleUsingMocksDirectly passes when expected message is received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:153 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:43 - 1235) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver fails to expect to receive hash with keyword args + 1235) PartialDoubleUsingMocksDirectly passes when message is received with correct args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:133 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:49 - 1236) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with optional keyword args to be provided + 1236) PartialDoubleUsingMocksDirectly restores the original method if it existed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:106 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:55 - 1237) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like handles frozen objects cleanly when adding the method double raises clear error + 1237) PartialDoubleUsingMocksDirectly with an instance method handled by method_missing restores the original behavior # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:360 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:64 - 1238) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like handles frozen objects cleanly when removing the method double warns about being unable to remove the method double + 1238) PartialDoubleUsingMocksDirectly with a class method handled by method_missing restores the original behavior # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:375 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:74 - 1239) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like handles frozen objects cleanly when removing the method double includes the spec location in the warning + 1239) at_least passes when at least twice method is called twice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:382 + # ./spec/rspec/mocks/at_least_spec.rb:94 - 1240) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like handles frozen objects cleanly with fake frozen object allows the caller to configure how the subject responds + 1240) at_least returns the value given by a block when the at least once method is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:395 + # ./spec/rspec/mocks/at_least_spec.rb:118 - 1241) RSpec::Mocks::Matchers::Receive allow(...).to receive ordered with receive counts is not supported + 1241) at_least passes when at least once method is called twice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:417 + # ./spec/rspec/mocks/at_least_spec.rb:79 - 1242) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance does not expect the message to be received + 1242) at_least fails when called less than n times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:233 + # ./spec/rspec/mocks/at_least_spec.rb:13 - 1243) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does not get confused by messages being passed as strings and symbols + 1243) at_least passes when at least once method is called once # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:203 + # ./spec/rspec/mocks/at_least_spec.rb:73 - 1244) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does support inherited matchers + 1244) at_least passes when at least twice method is called three times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:197 + # ./spec/rspec/mocks/at_least_spec.rb:86 - 1245) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does not support other matchers + 1245) at_least passes when at least n times method is called exactly n times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:191 + # ./spec/rspec/mocks/at_least_spec.rb:54 - 1246) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows the caller to configure how the subject responds + 1246) at_least fails when at least once method is never called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:49 + # ./spec/rspec/mocks/at_least_spec.rb:23 - 1247) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows do...end blocks to be passed to the fluent interface methods without getting a warning + 1247) at_least passes when at least thrice method is called four times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:211 + # ./spec/rspec/mocks/at_least_spec.rb:109 - 1248) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows chaining off a `do...end` block implementation to be provided + 1248) at_least fails when at least thrice method is called less than three times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:169 + # ./spec/rspec/mocks/at_least_spec.rb:45 - 1249) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows a `{ ... }` block implementation to be provided + 1249) at_least uses a stub value if no value set # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:177 + # ./spec/rspec/mocks/at_least_spec.rb:132 - 1250) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher gives precedence to a `{ ... }` block when both forms are provided since that form actually binds to `receive` + 1250) at_least passes when at least thrice method is called three times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:182 + # ./spec/rspec/mocks/at_least_spec.rb:101 - 1251) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows the caller to constrain the received arguments + 1251) at_least fails if method is never called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:54 + # ./spec/rspec/mocks/at_least_spec.rb:6 - 1252) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher makes { } blocks trump do...end blocks when passed to a fluent interface method + 1252) at_least fails when at least twice method is never called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:221 + # ./spec/rspec/mocks/at_least_spec.rb:38 - 1253) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows the caller to constrain the received arguments by matcher + 1253) at_least passes when at least n times method is called n plus 1 times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:63 + # ./spec/rspec/mocks/at_least_spec.rb:63 - 1254) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with optional keyword args to be provided + 1254) at_least prefers its own return value over a stub # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:98 + # ./spec/rspec/mocks/at_least_spec.rb:139 - 1255) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver allows a `do...end` block implementation to be provided + 1255) at_least fails when at least twice method is called once # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:81 + # ./spec/rspec/mocks/at_least_spec.rb:30 - 1256) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with keyword args to be provided + 1256) at_least when sent with 0 outputs a removal message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:90 + # ./spec/rspec/mocks/at_least_spec.rb:125 - 1257) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver expects to receive keyword args + 1257) at_least when called with negative expectation raises an error # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:126 + # ./spec/rspec/mocks/at_least_spec.rb:147 - 1258) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver fails to expect to receive hash with keyword args + 1258) RSpec::Mocks::Constant.original for a previously defined hidden constant exposes its name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:133 + # ./spec/rspec/mocks/mutate_const_spec.rb:549 - 1259) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver expects to receive hash with a hash + 1259) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates the name is valid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:153 + # ./spec/rspec/mocks/mutate_const_spec.rb:550 - 1260) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver expects to receive keyword args with a hash + 1260) RSpec::Mocks::Constant.original for a previously defined hidden constant exposes its original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:159 + # ./spec/rspec/mocks/mutate_const_spec.rb:555 - 1261) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with required keyword args + 1261) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it was previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:118 + # ./spec/rspec/mocks/mutate_const_spec.rb:551 - 1262) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with optional keyword args to be provided + 1262) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:106 + # ./spec/rspec/mocks/mutate_const_spec.rb:552 - 1263) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like resets partial mocks cleanly removes the method double + 1263) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:337 + # ./spec/rspec/mocks/mutate_const_spec.rb:554 - 1264) RSpec::Mocks::Matchers::Receive allow(...).to receive on a class method, from a class with subclasses can stub the same method simultaneously in the superclass and subclasses + 1264) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has not been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:451 + # ./spec/rspec/mocks/mutate_const_spec.rb:553 - 1265) RSpec::Mocks::Matchers::Receive allow(...).to receive on a class method, from a class with subclasses creates stub which can be called using `super` in a subclass + 1265) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it has not been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:446 + # ./spec/rspec/mocks/mutate_const_spec.rb:498 - 1266) RSpec::Mocks::Matchers::Receive allow(...).to receive on a class method, from a class with subclasses if the method is redefined in the subclass does not stub the method in the subclass + 1266) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates the name is valid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:431 + # ./spec/rspec/mocks/mutate_const_spec.rb:496 - 1267) RSpec::Mocks::Matchers::Receive allow(...).to receive on a class method, from a class with subclasses if the method is not redefined in the subclass stubs the method in the subclass + 1267) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it was not previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:439 + # ./spec/rspec/mocks/mutate_const_spec.rb:497 - 1268) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework first with a nonsense allowance it fails with a reasonable error message + 1268) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it has not been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:736 + # ./spec/rspec/mocks/mutate_const_spec.rb:499 - 1269) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework first can use `expect` with any matcher + 1269) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant exposes its name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:730 + # ./spec/rspec/mocks/mutate_const_spec.rb:495 - 1270) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework first behaves like using rspec-mocks in another test framework expects the method to be called when `expect` is used + 1270) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant returns nil for the original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:652 + # ./spec/rspec/mocks/mutate_const_spec.rb:501 - 1271) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework first behaves like using rspec-mocks in another test framework can use the `expect` syntax + 1271) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it has not been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:642 + # ./spec/rspec/mocks/mutate_const_spec.rb:500 - 1272) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework first behaves like using rspec-mocks in another test framework supports `expect(...).not_to receive` + 1272) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates the name is valid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:662 + # ./spec/rspec/mocks/mutate_const_spec.rb:524 - 1273) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework first behaves like using rspec-mocks in another test framework supports `expect(...).to_not receive` + 1273) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has not been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:672 + # ./spec/rspec/mocks/mutate_const_spec.rb:528 - 1274) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation sets up a negative message expectation that passes if the message is not received + 1274) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice exposes its name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:288 + # ./spec/rspec/mocks/mutate_const_spec.rb:523 - 1275) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation prevents confusing double-negative expressions involving `never` + 1275) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it was not previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:322 + # ./spec/rspec/mocks/mutate_const_spec.rb:525 - 1276) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation supports `to_not` as an alias for `not_to` + 1276) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:301 + # ./spec/rspec/mocks/mutate_const_spec.rb:526 - 1277) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation allows the caller to constrain the received arguments + 1277) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:309 + # ./spec/rspec/mocks/mutate_const_spec.rb:527 - 1278) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation sets up a negative message expectation that fails if the message is received + 1278) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice returns nil for the original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:293 + # ./spec/rspec/mocks/mutate_const_spec.rb:529 - 1279) RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations cannot use `expect` with another matcher + 1279) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates the name is valid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:696 + # ./spec/rspec/mocks/mutate_const_spec.rb:510 - 1280) RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations can toggle the available syntax + 1280) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has not been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:704 + # ./spec/rspec/mocks/mutate_const_spec.rb:514 - 1281) RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations behaves like using rspec-mocks in another test framework expects the method to be called when `expect` is used + 1281) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:652 + # ./spec/rspec/mocks/mutate_const_spec.rb:512 - 1282) RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations behaves like using rspec-mocks in another test framework can use the `expect` syntax + 1282) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice exposes its name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:642 + # ./spec/rspec/mocks/mutate_const_spec.rb:509 - 1283) RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations behaves like using rspec-mocks in another test framework supports `expect(...).to_not receive` + 1283) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it was previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:672 + # ./spec/rspec/mocks/mutate_const_spec.rb:511 - 1284) RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations behaves like using rspec-mocks in another test framework supports `expect(...).not_to receive` + 1284) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice exposes its original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:662 + # ./spec/rspec/mocks/mutate_const_spec.rb:515 - 1285) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like handles frozen objects cleanly when adding the method double raises clear error + 1285) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:360 + # ./spec/rspec/mocks/mutate_const_spec.rb:513 - 1286) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like handles frozen objects cleanly with fake frozen object allows the caller to configure how the subject responds + 1286) RSpec::Mocks::Constant.original for a previously defined stubbed constant exposes its original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:395 + # ./spec/rspec/mocks/mutate_const_spec.rb:463 - 1287) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like handles frozen objects cleanly when removing the method double includes the spec location in the warning + 1287) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has not been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:382 + # ./spec/rspec/mocks/mutate_const_spec.rb:462 - 1288) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like handles frozen objects cleanly when removing the method double warns about being unable to remove the method double + 1288) RSpec::Mocks::Constant.original for a previously defined stubbed constant exposes its name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:375 + # ./spec/rspec/mocks/mutate_const_spec.rb:457 - 1289) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation reports the line number of expectation of unreceived message + 1289) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:268 + # ./spec/rspec/mocks/mutate_const_spec.rb:461 - 1290) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation provides a useful matcher description + 1290) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:278 + # ./spec/rspec/mocks/mutate_const_spec.rb:460 - 1291) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation sets up a message expectation that fails if the message is not received + 1291) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates the name is valid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:260 + # ./spec/rspec/mocks/mutate_const_spec.rb:458 - 1292) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation sets up a message expectation that passes if the message is received + 1292) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it was previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:254 + # ./spec/rspec/mocks/mutate_const_spec.rb:459 - 1293) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation when a message is received the wrong number of times sets up a message expectation that formats argument matchers correctly + 1293) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:502 + # ./spec/rspec/mocks/mutate_const_spec.rb:474 - 1294) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation when a message is not received sets up a message expectation that formats argument matchers correctly + 1294) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it was not previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:493 + # ./spec/rspec/mocks/mutate_const_spec.rb:472 - 1295) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows the caller to configure how the subject responds + 1295) RSpec::Mocks::Constant.original for a previously undefined stubbed constant exposes its name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:49 + # ./spec/rspec/mocks/mutate_const_spec.rb:470 - 1296) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher does not get confused by messages being passed as strings and symbols + 1296) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates the name is valid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:203 + # ./spec/rspec/mocks/mutate_const_spec.rb:471 - 1297) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher makes { } blocks trump do...end blocks when passed to a fluent interface method + 1297) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has not been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:221 + # ./spec/rspec/mocks/mutate_const_spec.rb:475 - 1298) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows the caller to constrain the received arguments + 1298) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:54 + # ./spec/rspec/mocks/mutate_const_spec.rb:473 - 1299) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows a `{ ... }` block implementation to be provided + 1299) RSpec::Mocks::Constant.original for a previously undefined stubbed constant returns nil for the original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:177 + # ./spec/rspec/mocks/mutate_const_spec.rb:476 - 1300) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows the caller to constrain the received arguments by matcher + 1300) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates the name is valid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:63 + # ./spec/rspec/mocks/mutate_const_spec.rb:537 - 1301) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows chaining off a `do...end` block implementation to be provided + 1301) RSpec::Mocks::Constant.original for a previously undefined hidden constant exposes its name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:169 + # ./spec/rspec/mocks/mutate_const_spec.rb:536 - 1302) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher gives precedence to a `{ ... }` block when both forms are provided since that form actually binds to `receive` + 1302) RSpec::Mocks::Constant.original for a previously undefined hidden constant returns nil for the original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:182 + # ./spec/rspec/mocks/mutate_const_spec.rb:542 - 1303) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows do...end blocks to be passed to the fluent interface methods without getting a warning + 1303) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not not been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:211 + # ./spec/rspec/mocks/mutate_const_spec.rb:540 - 1304) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver expects to receive keyword args with a hash + 1304) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:159 + # ./spec/rspec/mocks/mutate_const_spec.rb:541 - 1305) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver fails to expect to receive hash with keyword args + 1305) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:133 + # ./spec/rspec/mocks/mutate_const_spec.rb:539 - 1306) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with optional keyword args to be provided + 1306) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it was previously undefined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:98 + # ./spec/rspec/mocks/mutate_const_spec.rb:538 - 1307) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver allows a `do...end` block implementation to be provided + 1307) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) returns nil for its original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:81 + # ./spec/rspec/mocks/mutate_const_spec.rb:582 - 1308) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with optional keyword args to be provided + 1308) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:106 + # ./spec/rspec/mocks/mutate_const_spec.rb:580 - 1309) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with keyword args to be provided + 1309) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:90 + # ./spec/rspec/mocks/mutate_const_spec.rb:579 - 1310) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver expects to receive keyword args + 1310) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates the name is invalid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:126 + # ./spec/rspec/mocks/mutate_const_spec.rb:577 - 1311) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with required keyword args + 1311) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it was not previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:118 + # ./spec/rspec/mocks/mutate_const_spec.rb:578 - 1312) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver expects to receive hash with a hash + 1312) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) exposes the provided string as the name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:153 + # ./spec/rspec/mocks/mutate_const_spec.rb:576 - 1313) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts passes with at most when the ordering is correct + 1313) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:568 + # ./spec/rspec/mocks/mutate_const_spec.rb:581 - 1314) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts fails with exact receive counts when the ordering is incorrect + 1314) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:533 + # ./spec/rspec/mocks/mutate_const_spec.rb:447 - 1315) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts passes with at least when the ordering is correct + 1315) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it was previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:546 + # ./spec/rspec/mocks/mutate_const_spec.rb:446 - 1316) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts does not result in infinite recursion when `respond_to?` is stubbed + 1316) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:590 + # ./spec/rspec/mocks/mutate_const_spec.rb:448 - 1317) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts passes with exact receive counts when the ordering is correct + 1317) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:524 + # ./spec/rspec/mocks/mutate_const_spec.rb:449 - 1318) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like resets partial mocks cleanly removes the method double + 1318) RSpec::Mocks::Constant.original for a previously defined unstubbed constant exposes its name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:337 + # ./spec/rspec/mocks/mutate_const_spec.rb:444 - 1319) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).not_to receive behaves like an expect syntax negative allowance is disabled since this expression is confusing + 1319) RSpec::Mocks::Constant.original for a previously defined unstubbed constant exposes its original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:240 + # ./spec/rspec/mocks/mutate_const_spec.rb:450 - 1320) RSpec::Mocks::Matchers::Receive allow(...).not_to receive behaves like an expect syntax negative allowance is disabled since this expression is confusing + 1320) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates the name is valid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:240 + # ./spec/rspec/mocks/mutate_const_spec.rb:445 - 1321) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework last can use `expect` with any matcher + 1321) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:758 + # ./spec/rspec/mocks/mutate_const_spec.rb:487 - 1322) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework last behaves like using rspec-mocks in another test framework expects the method to be called when `expect` is used + 1322) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:652 + # ./spec/rspec/mocks/mutate_const_spec.rb:486 - 1323) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework last behaves like using rspec-mocks in another test framework can use the `expect` syntax + 1323) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant returns nil for the original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:642 + # ./spec/rspec/mocks/mutate_const_spec.rb:489 - 1324) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework last behaves like using rspec-mocks in another test framework supports `expect(...).not_to receive` + 1324) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates the name is valid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:662 + # ./spec/rspec/mocks/mutate_const_spec.rb:484 - 1325) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework last behaves like using rspec-mocks in another test framework supports `expect(...).to_not receive` + 1325) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has not been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:672 + # ./spec/rspec/mocks/mutate_const_spec.rb:488 - 1326) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders warns about expect(Klass.any_instance).to receive... + 1326) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it was not previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:19 + # ./spec/rspec/mocks/mutate_const_spec.rb:485 - 1327) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders includes the correct call site in the allow warning + 1327) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant exposes its name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:14 + # ./spec/rspec/mocks/mutate_const_spec.rb:483 - 1328) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders includes the correct call site in the expect warning + 1328) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:26 + # ./spec/rspec/mocks/mutate_const_spec.rb:566 - 1329) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders warns about allow(Klass.any_instance).to receive... + 1329) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has not been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:9 + # ./spec/rspec/mocks/mutate_const_spec.rb:567 - 1330) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).not_to receive behaves like an expect syntax negative expectation allows the caller to constrain the received arguments + 1330) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates the name is valid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:309 + # ./spec/rspec/mocks/mutate_const_spec.rb:564 - 1331) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).not_to receive behaves like an expect syntax negative expectation sets up a negative message expectation that fails if the message is received + 1331) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice exposes its original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:293 + # ./spec/rspec/mocks/mutate_const_spec.rb:569 - 1332) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).not_to receive behaves like an expect syntax negative expectation sets up a negative message expectation that passes if the message is not received + 1332) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:288 + # ./spec/rspec/mocks/mutate_const_spec.rb:568 - 1333) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).not_to receive behaves like an expect syntax negative expectation prevents confusing double-negative expressions involving `never` + 1333) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice exposes its name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:322 + # ./spec/rspec/mocks/mutate_const_spec.rb:563 - 1334) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).not_to receive behaves like an expect syntax negative expectation supports `to_not` as an alias for `not_to` + 1334) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it was previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:301 + # ./spec/rspec/mocks/mutate_const_spec.rb:565 - 1335) at_least fails when called less than n times + 1335) expection set on previously stubbed method outputs arguments of similar calls # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_least_spec.rb:13 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:9 - 1336) at_least passes when at least twice method is called three times + 1336) expection set on previously stubbed method indicates the site of expectation in the stacktrace when outputing arguments of similar calls # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_least_spec.rb:86 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:43 - 1337) at_least fails when at least once method is never called + 1337) expection set on previously stubbed method handles concurrent validation of expectations # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_least_spec.rb:23 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:26 - 1338) at_least passes when at least n times method is called n plus 1 times + 1338) expection set on previously stubbed method fails if message is not received after expectation is set # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_least_spec.rb:63 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:2 - 1339) at_least passes when at least once method is called once + 1339) expection set on previously stubbed method with argument constraint on stub distinguishes between individual values and arrays properly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_least_spec.rb:73 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:84 - 1340) at_least returns the value given by a block when the at least once method is called + 1340) expection set on previously stubbed method with argument constraint on stub matches any args if no arg constraint set on expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_least_spec.rb:118 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:60 - 1341) at_least passes when at least n times method is called exactly n times + 1341) expection set on previously stubbed method with argument constraint on stub matches specific args set on expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_least_spec.rb:54 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:68 - 1342) at_least prefers its own return value over a stub + 1342) expection set on previously stubbed method with argument constraint on stub distinguishes between duplicate individual values and arrays properly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_least_spec.rb:139 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:95 - 1343) at_least passes when at least thrice method is called three times + 1343) expection set on previously stubbed method with argument constraint on stub fails if expectation's arg constraint is not met # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_least_spec.rb:101 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:76 - 1344) at_least fails when at least twice method is never called + 1344) allow_any_instance_of(...).to receive_messages(:a => 1, :b => 2) allows the object to respond to multiple messages # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_least_spec.rb:38 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:49 - 1345) at_least fails when at least thrice method is called less than three times + 1345) allow_any_instance_of(...).to receive_messages(:a => 1, :b => 2) updates stubs on instances with existing stubs # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_least_spec.rb:45 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:55 - 1346) at_least passes when at least twice method is called twice + 1346) allow_any_instance_of(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a do; end; block is given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_least_spec.rb:94 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 - 1347) at_least passes when at least thrice method is called four times + 1347) allow_any_instance_of(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_least_spec.rb:109 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 - 1348) at_least fails when at least twice method is called once + 1348) Method visibility when using partial mocks keeps private methods private # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_least_spec.rb:30 + # ./spec/rspec/mocks/partial_double_spec.rb:324 - 1349) at_least fails if method is never called + 1349) Method visibility when using partial mocks keeps protected methods protected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_least_spec.rb:6 + # ./spec/rspec/mocks/partial_double_spec.rb:330 - 1350) at_least passes when at least once method is called twice + 1350) Method visibility when using partial mocks keeps public methods public # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_least_spec.rb:79 + # ./spec/rspec/mocks/partial_double_spec.rb:318 - 1351) at_least uses a stub value if no value set + 1351) Loading rspec/mocks/standalone does not infect other objects with the RSpec::Mocks API # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_least_spec.rb:132 + # ./spec/rspec/mocks/standalone_spec.rb:20 - 1352) at_least when sent with 0 outputs a removal message + 1352) Loading rspec/mocks/standalone exposes the RSpec::Mocks API on `main` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_least_spec.rb:125 + # ./spec/rspec/mocks/standalone_spec.rb:7 - 1353) at_least when called with negative expectation raises an error + 1353) expect_any_instance_of(...).to receive_messages(:a => 1, :b => 2) sets up multiple expectations # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_least_spec.rb:147 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:112 - 1354) A method stub with args complains if called with other arg + 1354) expect_any_instance_of(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:534 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 - 1355) A method stub with args complains if called with no arg + 1355) expect_any_instance_of(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a do; end; block is given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:528 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 - 1356) A method stub with args does not complain if also mocked w/ different args + 1356) when using the :expect syntax still supports null object doubles # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:540 + # ./spec/rspec/mocks/null_object_double_spec.rb:129 - 1357) A method stub with args does not complain if not called + 1357) a double acting as a null object allows unexpected message sends using `send` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:521 + # ./spec/rspec/mocks/null_object_double_spec.rb:74 - 1358) A method stub with args does not complain if called with arg + 1358) a double acting as a null object returns an explicitly stubbed value from an expectation with no implementation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:524 + # ./spec/rspec/mocks/null_object_double_spec.rb:56 - 1359) A method stub with args uses the correct stubbed response when responding to a mock expectation + 1359) a double acting as a null object allows explicit expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:555 + # ./spec/rspec/mocks/null_object_double_spec.rb:42 - 1360) A method stub with args complains if also mocked w/ different args AND called w/ a 3rd set of args + 1360) a double acting as a null object fails verification when explicit exception not met # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:546 + # ./spec/rspec/mocks/null_object_double_spec.rb:62 - 1361) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks on any_instance before verifying a double allowance + 1361) a double acting as a null object does not allow null objects to be used outside of examples # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:517 + # ./spec/rspec/mocks/null_object_double_spec.rb:104 - 1362) when verify_partial_doubles configuration option is set does not allow missing methods to be called on any_instance + 1362) a double acting as a null object allows expected message with different args second # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:547 + # ./spec/rspec/mocks/null_object_double_spec.rb:90 - 1363) when verify_partial_doubles configuration option is set allows stubbing and calls the stubbed implementation + 1363) a double acting as a null object allows unexpected message sends using `__send__` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:572 + # ./spec/rspec/mocks/null_object_double_spec.rb:79 - 1364) when verify_partial_doubles configuration option is set allows valid methods to be expected on any_instance + 1364) a double acting as a null object says it responds to everything # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:507 + # ./spec/rspec/mocks/null_object_double_spec.rb:33 - 1365) when verify_partial_doubles configuration option is set does not allow a non-existing method to be called on any_instance + 1365) a double acting as a null object continues to return self from an explicit expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:541 + # ./spec/rspec/mocks/null_object_double_spec.rb:51 - 1366) when verify_partial_doubles configuration option is set verifies arity range when matching arguments + 1366) a double acting as a null object returns a string from `to_str` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:497 + # ./spec/rspec/mocks/null_object_double_spec.rb:47 - 1367) when verify_partial_doubles configuration option is set verifies arity range when receiving a message + 1367) a double acting as a null object can be interpolated in a string as an integer # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:556 + # ./spec/rspec/mocks/null_object_double_spec.rb:96 - 1368) when verify_partial_doubles configuration option is set allows a method defined with method_missing to be expected + 1368) a double acting as a null object ignores unexpected methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:502 + # ./spec/rspec/mocks/null_object_double_spec.rb:69 - 1369) when verify_partial_doubles configuration option is set allows private methods to be expected on any_instance expectation + 1369) a double acting as a null object allows explicit stubs # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:512 + # ./spec/rspec/mocks/null_object_double_spec.rb:37 - 1370) when verify_partial_doubles configuration option is set avoids deadlocks when a proxy is accessed from within a `before_verifying_doubles` callback + 1370) a double acting as a null object allows expected message with different args first # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:443 + # ./spec/rspec/mocks/null_object_double_spec.rb:84 - 1371) when verify_partial_doubles configuration option is set can be temporarily supressed and nested + 1371) Diffs printed when arguments don't match with a matcher object that does not define #description for a matcher object that does not implement #description # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:398 + # ./spec/rspec/mocks/diffing_spec.rb:287 - 1372) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks before verifying an expectation + 1372) Diffs printed when arguments don't match with a matcher object that defines #description uses the object's description # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:421 + # ./spec/rspec/mocks/diffing_spec.rb:270 - 1373) when verify_partial_doubles configuration option is set allows private methods to be expected + 1373) Diffs printed when arguments don't match with a non matcher object prints a diff with array args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:380 + # ./spec/rspec/mocks/diffing_spec.rb:241 - 1374) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks on any_instance before verifying a double + 1374) Diffs printed when arguments don't match with a non matcher object prints a diff of the args lists for multiple mismatched string arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:529 + # ./spec/rspec/mocks/diffing_spec.rb:57 - 1375) when verify_partial_doubles configuration option is set does not allow a non-existing method to be expected + 1375) Diffs printed when arguments don't match with a non matcher object prints a diff with an expected hash arg and a non-hash actual arg # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:487 + # ./spec/rspec/mocks/diffing_spec.rb:90 - 1376) when verify_partial_doubles configuration option is set allows valid methods to be expected + 1376) Diffs printed when arguments don't match with a non matcher object does not print a diff when differ returns a string of only whitespace when colour is enabled # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:375 + # ./spec/rspec/mocks/diffing_spec.rb:33 - 1377) when verify_partial_doubles configuration option is set does not allow a spy on unimplemented method + 1377) Diffs printed when arguments don't match with a non matcher object does not print a diff when differ returns a string of only whitespace # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:491 + # ./spec/rspec/mocks/diffing_spec.rb:21 - 1378) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks before verifying an allowance + 1378) Diffs printed when arguments don't match with a non matcher object prints a diff of the strings for individual mismatched multi-line string arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:432 + # ./spec/rspec/mocks/diffing_spec.rb:46 - 1379) when verify_partial_doubles configuration option is set can be temporarily supressed + 1379) Diffs printed when arguments don't match with a non matcher object does not print a diff when single line arguments are mismatched # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:385 + # ./spec/rspec/mocks/diffing_spec.rb:12 - 1380) when verify_partial_doubles configuration option is set allows the mock to raise an error with yield + 1380) Diffs printed when arguments don't match with a non matcher object does not print a diff when multiple single-line string arguments are mismatched # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:566 + # ./spec/rspec/mocks/diffing_spec.rb:68 - 1381) when verify_partial_doubles configuration option is set temporarily supressing partial doubles does not affect normal verifying doubles + 1381) Diffs printed when arguments don't match with a non matcher object prints a diff with hash args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:413 + # ./spec/rspec/mocks/diffing_spec.rb:81 - 1382) when verify_partial_doubles configuration option is set when `.new` is stubbed uses the method signature from `#initialize` for arg verification + 1382) Diffs printed when arguments don't match with a non matcher object with keyword arguments on normal doubles prints a diff when keyword argument were expected but got an option hash (using splat) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:582 + # ./spec/rspec/mocks/diffing_spec.rb:102 - 1383) when verify_partial_doubles configuration option is set when `.new` is stubbed on a class that has redefined `self.method` allows the stubbing of :new + 1383) Diffs printed when arguments don't match with a non matcher object with keyword arguments on normal doubles prints a diff when keyword argument were expected but got an option hash (literal) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:640 + # ./spec/rspec/mocks/diffing_spec.rb:117 - 1384) when verify_partial_doubles configuration option is set when `.new` is stubbed on a class that has undefined `new` prevents it from being stubbed + 1384) Diffs printed when arguments don't match with a non matcher object with keyword arguments on normal doubles prints a diff when the positional argument doesnt match # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:599 + # ./spec/rspec/mocks/diffing_spec.rb:133 - 1385) when verify_partial_doubles configuration option is set when `.new` is stubbed on a class that has redefined `new` uses the method signature of the redefined `new` for arg verification + 1385) Diffs printed when arguments don't match with a non matcher object with keyword arguments on partial doubles prints a diff when keyword argument were expected but got an option hash (literal) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:588 + # ./spec/rspec/mocks/diffing_spec.rb:187 - 1386) when verify_partial_doubles configuration option is set when `.new` is stubbed on a class with a twice-aliased `new` uses the method signature from `#initialize` for arg verification + 1386) Diffs printed when arguments don't match with a non matcher object with keyword arguments on partial doubles prints a diff when the positional argument doesnt match # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:626 + # ./spec/rspec/mocks/diffing_spec.rb:201 - 1387) when verify_partial_doubles configuration option is set when `.new` is stubbed on a class with a private `new` uses the method signature from `#initialize` for arg verification + 1387) Diffs printed when arguments don't match with a non matcher object with keyword arguments on partial doubles prints a diff when keyword argument were expected but got an option hash (using splat) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:611 + # ./spec/rspec/mocks/diffing_spec.rb:174 - 1388) when verify_partial_doubles configuration option is set for a class only runs the `before_verifying_doubles` callback for the class (not for superclasses) + 1388) Diffs printed when arguments don't match with a non matcher object that defines #description does not use the object's description for a non-matcher object that implements #description # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:462 + # ./spec/rspec/mocks/diffing_spec.rb:251 - 1389) when verify_partial_doubles configuration option is set for a class can be temporarily supressed + 1389) Verified double naming object_spy behaves like a named verifying double when no name is given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:474 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1390) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available allow_any_instance_of(...).to have_received fails because it's nonsensical + 1390) Verified double naming object_spy behaves like a named verifying double when a name is given as a string # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:637 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1391) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received does not allow once to be used because it creates confusion + 1391) Verified double naming object_spy behaves like a named verifying double when a name is given as a symbol # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1392) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received passes when the double has not received the given message + 1392) Verified double naming instance_spy behaves like a named verifying double when a name is given as a symbol # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:571 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1393) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received does not allow times to be used because it creates confusion + 1393) Verified double naming instance_spy behaves like a named verifying double when a name is given as a string # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1394) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received does not allow at_least to be used because it creates confusion + 1394) Verified double naming instance_spy behaves like a named verifying double when no name is given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1395) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received does not allow twice to be used because it creates confusion + 1395) Verified double naming instance_double behaves like a named verifying double when no name is given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1396) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received does not allow exactly to be used because it creates confusion + 1396) Verified double naming instance_double behaves like a named verifying double when a name is given as a string # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1397) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received notifies failures via rspec-support's failure notification system + 1397) Verified double naming instance_double behaves like a named verifying double when a name is given as a symbol # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:584 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1398) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received fails when the double has received the given message + 1398) Verified double naming class_double behaves like a named verifying double when a name is given as a symbol # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:576 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1399) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received fails when the method has not been previously stubbed + 1399) Verified double naming class_double behaves like a named verifying double when a name is given as a string # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:595 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1400) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received does not allow at_most to be used because it creates confusion + 1400) Verified double naming class_double behaves like a named verifying double when no name is given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1401) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received with passes when the given args do not match the args used with the message + 1401) Verified double naming object_double behaves like a named verifying double when a name is given as a symbol # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:604 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1402) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).not_to have_received with fails when the given args match the args used with the message + 1402) Verified double naming object_double behaves like a named verifying double when no name is given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:609 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1403) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect_any_instance_of(...).to have_received fails because we dont want to support it + 1403) Verified double naming object_double behaves like a named verifying double when a name is given as a string # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:645 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1404) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available allow(...).to have_received fails because it's nonsensical + 1404) Verified double naming class_spy behaves like a named verifying double when no name is given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:629 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1405) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect_any_instance_of(...).not_to have_received fails because we dont want to support it + 1405) Verified double naming class_spy behaves like a named verifying double when a name is given as a symbol # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:653 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1406) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received notifies failures via rspec-support's failure notification system + 1406) Verified double naming class_spy behaves like a named verifying double when a name is given as a string # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:43 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1407) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received can generate a description after mocks have been torn down (e.g. when rspec-core requests it) + 1407) Using the legacy should syntax #should_not_receive returns a negative message expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:188 + # ./spec/rspec/mocks/should_syntax_spec.rb:190 - 1408) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received passes if expectations against the yielded arguments pass + 1408) Using the legacy should syntax #should_not_receive does not fail on verification if the message is not received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:100 + # ./spec/rspec/mocks/should_syntax_spec.rb:201 - 1409) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received resets expectations on class methods when mocks are reset + 1409) Using the legacy should syntax #should_not_receive raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:156 + # ./spec/support/before_all_shared_example_group.rb:11 - 1410) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received fails if expectations against the yielded arguments fail + 1410) Using the legacy should syntax #should_not_receive fails when the message is received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:124 + # ./spec/rspec/mocks/should_syntax_spec.rb:194 - 1411) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received passes if expectations against yielded keyword arguments pass + 1411) Using the legacy should syntax #stub sets up a canned response # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:111 + # ./spec/rspec/mocks/should_syntax_spec.rb:40 - 1412) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received forwards any block passed during method invocation to the `have_received` block + 1412) Using the legacy should syntax #stub returns `nil` from all terminal actions to discourage further configuration # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:146 + # ./spec/rspec/mocks/should_syntax_spec.rb:34 - 1413) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received takes a curly-bracket block and yields the arguments given to the stubbed method call + 1413) Using the legacy should syntax #stub raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:80 + # ./spec/support/before_all_shared_example_group.rb:11 - 1414) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received generates a useful description + 1414) Using the legacy should syntax #stub can stub multiple messages using a hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:183 + # ./spec/rspec/mocks/should_syntax_spec.rb:46 - 1415) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received produces an error message that matches the expected method if another method was called + 1415) Using the legacy should syntax #stub supports options # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:195 + # ./spec/rspec/mocks/should_syntax_spec.rb:30 - 1416) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received fails when a null object has not received the given message + 1416) Using the legacy should syntax #stub_chain raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:54 + # ./spec/support/before_all_shared_example_group.rb:11 - 1417) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received passes when a null object has received the given message + 1417) Using the legacy should syntax #stub_chain can stub a sequence of messages # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:30 + # ./spec/rspec/mocks/should_syntax_spec.rb:61 - 1418) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received gives precedence to a `{ ... }` block when both forms are provided since that form actually binds to `receive` + 1418) Using the legacy should syntax #any_instance affects previously stubbed instances when stubbing a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:134 + # ./spec/rspec/mocks/should_syntax_spec.rb:255 - 1419) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received fails when the double has not received the given message + 1419) Using the legacy should syntax #any_instance can get method objects for the fluent interface # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:35 + # ./spec/rspec/mocks/should_syntax_spec.rb:248 - 1420) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received fails when the method has been mocked + 1420) Using the legacy should syntax #any_instance can stub a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:70 + # ./spec/rspec/mocks/should_syntax_spec.rb:237 - 1421) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received takes a do-end block and yields the arguments given to the stubbed method call + 1421) Using the legacy should syntax #any_instance can mock a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:90 + # ./spec/rspec/mocks/should_syntax_spec.rb:242 - 1422) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received passes when the double has received the given message + 1422) Using the legacy should syntax #any_instance adds a class to the current space # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:25 + # ./spec/rspec/mocks/should_syntax_spec.rb:231 - 1423) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received fails when the method has not been previously stubbed + 1423) Using the legacy should syntax #any_instance raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:62 + # ./spec/support/before_all_shared_example_group.rb:11 - 1424) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered passes when the messages were received in order + 1424) Using the legacy should syntax #any_instance affects previously stubbed instances when mocking a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:447 + # ./spec/rspec/mocks/should_syntax_spec.rb:263 - 1425) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered fails when the messages are received out of order + 1425) Using the legacy should syntax #any_instance invocation order #should_receive raises an error if 'should_receive' follows 'with' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:517 + # ./spec/rspec/mocks/should_syntax_spec.rb:335 - 1426) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered passes with exact receive counts when received in order + 1426) Using the legacy should syntax #any_instance invocation order #unstub removes stubs from sub class after Invocation when super class was originally stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:455 + # ./spec/rspec/mocks/should_syntax_spec.rb:411 - 1427) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered fails with exact receive counts when received out of order + 1427) Using the legacy should syntax #any_instance invocation order #unstub removes stubs set directly on an instance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:484 + # ./spec/rspec/mocks/should_syntax_spec.rb:419 - 1428) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered when used on individually allowed messages fails when the messages are received out of order + 1428) Using the legacy should syntax #any_instance invocation order #unstub does not remove any expectations with the same method name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:560 + # ./spec/rspec/mocks/should_syntax_spec.rb:435 - 1429) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered when used on individually allowed messages passes when the messages were received in order + 1429) Using the legacy should syntax #any_instance invocation order #unstub does not get confused about string vs symbol usage for the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:555 + # ./spec/rspec/mocks/should_syntax_spec.rb:449 - 1430) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered when used with `with` passes when the order lines up + 1430) Using the legacy should syntax #any_instance invocation order #unstub removes stubs even if they have already been invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:533 + # ./spec/rspec/mocks/should_syntax_spec.rb:403 - 1431) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered when used with `with` fails when the order is not matched + 1431) Using the legacy should syntax #any_instance invocation order #unstub replaces the stubbed method with the original method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:538 + # ./spec/rspec/mocks/should_syntax_spec.rb:390 - 1432) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received with passes when the given args match the args used with the message + 1432) Using the legacy should syntax #any_instance invocation order #unstub does not remove message expectations set directly on an instance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:169 + # ./spec/rspec/mocks/should_syntax_spec.rb:427 - 1433) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received with fails when the given args do not match the args used with the message + 1433) Using the legacy should syntax #any_instance invocation order #unstub raises a MockExpectationError if the method has not been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:174 + # ./spec/rspec/mocks/should_syntax_spec.rb:443 - 1434) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts thrice passes when the message was received thrice + 1434) Using the legacy should syntax #any_instance invocation order #unstub removes all stubs with the supplied method name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:411 + # ./spec/rspec/mocks/should_syntax_spec.rb:396 - 1435) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts thrice fails when the message was received more than three times + 1435) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'stub' follows 'with' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:430 + # ./spec/rspec/mocks/should_syntax_spec.rb:273 - 1436) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts thrice fails when the message was received less than three times + 1436) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_return' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:420 + # ./spec/rspec/mocks/should_syntax_spec.rb:277 - 1437) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts exactly passes when the message was received the given number of times + 1437) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_raise' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:297 + # ./spec/rspec/mocks/should_syntax_spec.rb:281 - 1438) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts exactly fails when the message was received fewer times + 1438) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_yield' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:315 + # ./spec/rspec/mocks/should_syntax_spec.rb:285 - 1439) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts exactly fails when the message was received more times than expected + 1439) Using the legacy should syntax #any_instance invocation order #stub behaves as 'every instance' handles `unstub` on subclasses # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:301 + # ./spec/rspec/mocks/should_syntax_spec.rb:293 - 1440) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts at_least fails when the message was received fewer times + 1440) Using the legacy should syntax #any_instance invocation order #should_not_receive prevents confusing double-negative expressions involving `never` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:331 + # ./spec/rspec/mocks/should_syntax_spec.rb:382 - 1441) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts at_least passes when the message was received more times + 1441) Using the legacy should syntax #any_instance invocation order #should_not_receive passes if no method is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:327 + # ./spec/rspec/mocks/should_syntax_spec.rb:349 - 1442) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts at_least passes when the message was received the given number of times + 1442) Using the legacy should syntax #any_instance invocation order #should_not_receive fails if the method is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:323 + # ./spec/rspec/mocks/should_syntax_spec.rb:341 - 1443) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` only considers the calls with matching args + 1443) Using the legacy should syntax #any_instance invocation order #should_not_receive passes if only a different method is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:215 + # ./spec/rspec/mocks/should_syntax_spec.rb:353 - 1444) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` when the message is received too few times includes the counts of calls with matching args in the error message + 1444) Using the legacy should syntax #any_instance invocation order #should_not_receive with constraints passes if the method is called with different parameters # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:239 + # ./spec/rspec/mocks/should_syntax_spec.rb:367 - 1445) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` when the message is received without any args matching includes unmatched args in the error message + 1445) Using the legacy should syntax #any_instance invocation order #should_not_receive with constraints fails if the method is called with the specified parameters # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:221 + # ./spec/rspec/mocks/should_syntax_spec.rb:359 - 1446) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` when the message is received too many times includes the counts of calls with matching args in the error message + 1446) Using the legacy should syntax #any_instance invocation order #should_not_receive when used in combination with should_receive passes if only the expected message is received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:231 + # ./spec/rspec/mocks/should_syntax_spec.rb:374 - 1447) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` when constrained with grouped arguments `with` keeps the array combinations distinguished in the group + 1447) Using the legacy should syntax #any_instance invocation order #stub_chain affects previously stubbed instances # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:273 + # ./spec/rspec/mocks/should_syntax_spec.rb:324 - 1448) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` when constrained with grouped arguments `with` groups the "got" arguments based on the method call that included them + 1448) Using the legacy should syntax #any_instance invocation order #stub_chain raises an error if 'stub_chain' follows 'and_return' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:247 + # ./spec/rspec/mocks/should_syntax_spec.rb:303 - 1449) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` when constrained with grouped arguments `with` includes single arguments based on the method call that included them + 1449) Using the legacy should syntax #any_instance invocation order #stub_chain allows a chain of methods to be stubbed using #stub_chain given symbols representing the methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:264 + # ./spec/rspec/mocks/should_syntax_spec.rb:308 - 1450) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` when constrained with grouped arguments `with` does not group counts on repeated arguments for a single message + 1450) Using the legacy should syntax #any_instance invocation order #stub_chain allows a chain of methods to be stubbed using #stub_chain given a hash as the last argument uses the value as the expected return value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:285 + # ./spec/rspec/mocks/should_syntax_spec.rb:313 - 1451) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts at_most passes when the message was received the given number of times + 1451) Using the legacy should syntax #any_instance invocation order #stub_chain allows a chain of methods to be stubbed using #stub_chain given a string of '.' separated method names representing the chain # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:339 + # ./spec/rspec/mocks/should_syntax_spec.rb:318 - 1452) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts at_most passes when the message was received fewer times + 1452) Using the legacy should syntax #should_receive raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:343 + # ./spec/support/before_all_shared_example_group.rb:11 - 1453) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts at_most fails when the message was received more times + 1453) Using the legacy should syntax #should_receive fails on verification if the message is not received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:347 + # ./spec/rspec/mocks/should_syntax_spec.rb:133 - 1454) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts once fails when the message was received twice + 1454) Using the legacy should syntax #should_receive does not fail on verification if the message is received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:369 + # ./spec/rspec/mocks/should_syntax_spec.rb:139 - 1455) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts once fails when the message was never received + 1455) Using the legacy should syntax #should_receive can set a canned response # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:361 + # ./spec/rspec/mocks/should_syntax_spec.rb:146 - 1456) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts once passes when the message was received once + 1456) Using the legacy should syntax #should_receive with an options hash uses the message supplied with :message after a similar stub # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:355 + # ./spec/rspec/mocks/should_syntax_spec.rb:178 - 1457) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts twice fails when the message was received once + 1457) Using the legacy should syntax #should_receive with an options hash reports the file and line submitted with :expected_from # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:389 + # ./spec/rspec/mocks/should_syntax_spec.rb:159 - 1458) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts twice fails when the message was received thrice + 1458) Using the legacy should syntax #should_receive with an options hash uses the message supplied with :message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:398 + # ./spec/rspec/mocks/should_syntax_spec.rb:170 - 1459) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts twice passes when the message was received twice + 1459) Using the legacy should syntax #received_message? answers true for received_message? when message received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:381 + # ./spec/rspec/mocks/should_syntax_spec.rb:13 - 1460) and_invoke when calling passed callables passes the arguments into the callable + 1460) Using the legacy should syntax #received_message? answers false for received_message? when message received with incorrect args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_invoke_spec.rb:35 + # ./spec/rspec/mocks/should_syntax_spec.rb:23 - 1461) and_invoke when a non-callable are passed in any position raises ArgumentError + 1461) Using the legacy should syntax #received_message? answers true for received_message? when message received with correct args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_invoke_spec.rb:24 + # ./spec/rspec/mocks/should_syntax_spec.rb:18 - 1462) and_invoke when no argument is passed raises ArgumentError + 1462) Using the legacy should syntax #received_message? answers false for received_message? when no messages received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_invoke_spec.rb:15 + # ./spec/rspec/mocks/should_syntax_spec.rb:9 - 1463) and_invoke when a block is passed raises ArgumentError + 1463) Using the legacy should syntax #unstub replaces the stubbed method with the original method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_invoke_spec.rb:7 + # ./spec/rspec/mocks/should_syntax_spec.rb:84 - 1464) OrderGroup #consume keeps returning ordered? expectation until all are returned + 1464) Using the legacy should syntax #unstub removes all stubs with the supplied method name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/order_group_spec.rb:21 + # ./spec/rspec/mocks/should_syntax_spec.rb:92 - 1465) OrderGroup #consume returns the first ordered? expectation + 1465) Using the legacy should syntax #unstub raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/order_group_spec.rb:18 + # ./spec/support/before_all_shared_example_group.rb:11 - 1466) stub implementation with no args execs the block when called + 1466) Using the legacy should syntax #unstub raises a MockExpectationError if the method has not been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_implementation_spec.rb:5 + # ./spec/rspec/mocks/should_syntax_spec.rb:124 - 1467) stub implementation with one arg execs the block with that arg when called + 1467) Using the legacy should syntax #unstub does not remove any expectations with the same method name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_implementation_spec.rb:13 + # ./spec/rspec/mocks/should_syntax_spec.rb:101 - 1468) stub implementation with variable args execs the block when called + 1468) Using the legacy should syntax #unstub restores the correct implementations when stubbed and unstubbed on a parent and child class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_implementation_spec.rb:21 + # ./spec/rspec/mocks/should_syntax_spec.rb:111 - 1469) the spy family of methods instance_spy when passing a class object takes a class and a hash of method names and return values + 1469) RSpec::Mocks::Matchers::Receive has a description before being matched # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:66 + # ./spec/rspec/mocks/matchers/receive_spec.rb:636 - 1470) the spy family of methods instance_spy when passing a class object behaves like a verifying spy with a foo method does not respond to methods that are not on the verified object + 1470) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders includes the correct call site in the allow warning # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:31 + # ./spec/rspec/mocks/matchers/receive_spec.rb:14 - 1471) the spy family of methods instance_spy when passing a class object behaves like a verifying spy with a foo method records called methods + 1471) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders warns about allow(Klass.any_instance).to receive... # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:35 + # ./spec/rspec/mocks/matchers/receive_spec.rb:9 - 1472) the spy family of methods instance_spy when passing a class object behaves like a verifying spy with a foo method fails fast when negative `have_received` is passed an undefined method name + 1472) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders warns about expect(Klass.any_instance).to receive... # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:45 + # ./spec/rspec/mocks/matchers/receive_spec.rb:19 - 1473) the spy family of methods instance_spy when passing a class object behaves like a verifying spy with a foo method fails fast when `have_received` is passed an undefined method name + 1473) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders includes the correct call site in the expect warning # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:39 + # ./spec/rspec/mocks/matchers/receive_spec.rb:26 - 1474) the spy family of methods instance_spy when passing a class object behaves like a verifying spy with a foo method responds to methods on the verified object + 1474) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).not_to receive behaves like an expect syntax negative allowance is disabled since this expression is confusing # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:27 + # ./spec/rspec/mocks/matchers/receive_spec.rb:240 - 1475) the spy family of methods instance_spy passing a class by string reference takes a class name string and a hash of method names and return values + 1475) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework last can use `expect` with any matcher # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:84 + # ./spec/rspec/mocks/matchers/receive_spec.rb:758 - 1476) the spy family of methods instance_spy passing a class by string reference behaves like a verifying spy with a foo method does not respond to methods that are not on the verified object + 1476) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework last behaves like using rspec-mocks in another test framework can use the `expect` syntax # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:31 + # ./spec/rspec/mocks/matchers/receive_spec.rb:642 - 1477) the spy family of methods instance_spy passing a class by string reference behaves like a verifying spy with a foo method records called methods + 1477) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework last behaves like using rspec-mocks in another test framework expects the method to be called when `expect` is used # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:35 + # ./spec/rspec/mocks/matchers/receive_spec.rb:652 - 1478) the spy family of methods instance_spy passing a class by string reference behaves like a verifying spy with a foo method responds to methods on the verified object + 1478) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework last behaves like using rspec-mocks in another test framework supports `expect(...).to_not receive` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:27 + # ./spec/rspec/mocks/matchers/receive_spec.rb:672 - 1479) the spy family of methods instance_spy passing a class by string reference behaves like a verifying spy with a foo method fails fast when negative `have_received` is passed an undefined method name + 1479) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework last behaves like using rspec-mocks in another test framework supports `expect(...).not_to receive` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:45 + # ./spec/rspec/mocks/matchers/receive_spec.rb:662 - 1480) the spy family of methods instance_spy passing a class by string reference behaves like a verifying spy with a foo method fails fast when `have_received` is passed an undefined method name + 1480) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework first with a nonsense allowance it fails with a reasonable error message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:39 + # ./spec/rspec/mocks/matchers/receive_spec.rb:736 - 1481) the spy family of methods spy takes a hash of method names and return values + 1481) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework first can use `expect` with any matcher # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:17 + # ./spec/rspec/mocks/matchers/receive_spec.rb:730 - 1482) the spy family of methods spy records called methods + 1482) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework first behaves like using rspec-mocks in another test framework expects the method to be called when `expect` is used # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:13 + # ./spec/rspec/mocks/matchers/receive_spec.rb:652 - 1483) the spy family of methods spy responds to arbitrary methods + 1483) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework first behaves like using rspec-mocks in another test framework supports `expect(...).to_not receive` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:5 + # ./spec/rspec/mocks/matchers/receive_spec.rb:672 - 1484) the spy family of methods spy takes a name and a hash of method names and return values + 1484) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework first behaves like using rspec-mocks in another test framework supports `expect(...).not_to receive` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:21 + # ./spec/rspec/mocks/matchers/receive_spec.rb:662 - 1485) the spy family of methods spy takes a name + 1485) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework first behaves like using rspec-mocks in another test framework can use the `expect` syntax # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:9 + # ./spec/rspec/mocks/matchers/receive_spec.rb:642 - 1486) the spy family of methods class_spy takes a class and a hash of method names and return values + 1486) RSpec::Mocks::Matchers::Receive allow(...).not_to receive behaves like an expect syntax negative allowance is disabled since this expression is confusing # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:123 + # ./spec/rspec/mocks/matchers/receive_spec.rb:240 - 1487) the spy family of methods class_spy behaves like a verifying spy with a foo method fails fast when negative `have_received` is passed an undefined method name + 1487) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).not_to receive behaves like an expect syntax negative expectation prevents confusing double-negative expressions involving `never` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:45 + # ./spec/rspec/mocks/matchers/receive_spec.rb:322 - 1488) the spy family of methods class_spy behaves like a verifying spy with a foo method does not respond to methods that are not on the verified object + 1488) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).not_to receive behaves like an expect syntax negative expectation allows the caller to constrain the received arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:31 + # ./spec/rspec/mocks/matchers/receive_spec.rb:309 - 1489) the spy family of methods class_spy behaves like a verifying spy with a foo method fails fast when `have_received` is passed an undefined method name + 1489) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).not_to receive behaves like an expect syntax negative expectation supports `to_not` as an alias for `not_to` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:39 + # ./spec/rspec/mocks/matchers/receive_spec.rb:301 - 1490) the spy family of methods class_spy behaves like a verifying spy with a foo method records called methods + 1490) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).not_to receive behaves like an expect syntax negative expectation sets up a negative message expectation that fails if the message is received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:35 + # ./spec/rspec/mocks/matchers/receive_spec.rb:293 - 1491) the spy family of methods class_spy behaves like a verifying spy with a foo method responds to methods on the verified object + 1491) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).not_to receive behaves like an expect syntax negative expectation sets up a negative message expectation that passes if the message is not received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:27 + # ./spec/rspec/mocks/matchers/receive_spec.rb:288 - 1492) the spy family of methods object_spy takes an instance and a hash of method names and return values + 1492) RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations can toggle the available syntax # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:105 + # ./spec/rspec/mocks/matchers/receive_spec.rb:704 - 1493) the spy family of methods object_spy behaves like a verifying spy with a foo method fails fast when negative `have_received` is passed an undefined method name + 1493) RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations cannot use `expect` with another matcher # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:45 + # ./spec/rspec/mocks/matchers/receive_spec.rb:696 - 1494) the spy family of methods object_spy behaves like a verifying spy with a foo method does not respond to methods that are not on the verified object + 1494) RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations behaves like using rspec-mocks in another test framework can use the `expect` syntax # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:31 + # ./spec/rspec/mocks/matchers/receive_spec.rb:642 - 1495) the spy family of methods object_spy behaves like a verifying spy with a foo method fails fast when `have_received` is passed an undefined method name + 1495) RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations behaves like using rspec-mocks in another test framework expects the method to be called when `expect` is used # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:39 + # ./spec/rspec/mocks/matchers/receive_spec.rb:652 - 1496) the spy family of methods object_spy behaves like a verifying spy with a foo method responds to methods on the verified object + 1496) RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations behaves like using rspec-mocks in another test framework supports `expect(...).not_to receive` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:27 + # ./spec/rspec/mocks/matchers/receive_spec.rb:662 - 1497) the spy family of methods object_spy behaves like a verifying spy with a foo method records called methods + 1497) RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations behaves like using rspec-mocks in another test framework supports `expect(...).to_not receive` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:35 + # ./spec/rspec/mocks/matchers/receive_spec.rb:672 - 1498) #null_object? defaults to false + 1498) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation sets up a negative message expectation that fails if the message is received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/null_object_double_spec.rb:120 + # ./spec/rspec/mocks/matchers/receive_spec.rb:293 - 1499) at_most fails fast when at_most(:thrice) and is called four times + 1499) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation supports `to_not` as an alias for `not_to` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_most_spec.rb:117 + # ./spec/rspec/mocks/matchers/receive_spec.rb:301 - 1500) at_most passes when at_most(:twice) is called twice + 1500) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation sets up a negative message expectation that passes if the message is not received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_most_spec.rb:49 + # ./spec/rspec/mocks/matchers/receive_spec.rb:288 - 1501) at_most passes when at_most(n) is called exactly 1 time + 1501) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation allows the caller to constrain the received arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_most_spec.rb:8 + # ./spec/rspec/mocks/matchers/receive_spec.rb:309 - 1502) at_most passes when at_most(:twice) is called once + 1502) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation prevents confusing double-negative expressions involving `never` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_most_spec.rb:43 + # ./spec/rspec/mocks/matchers/receive_spec.rb:322 - 1503) at_most fails fast when at_most(:twice) and is called three times + 1503) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts fails with exact receive counts when the ordering is incorrect # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_most_spec.rb:108 + # ./spec/rspec/mocks/matchers/receive_spec.rb:533 - 1504) at_most fails fast when at_most(:once) and is called twice + 1504) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts passes with exact receive counts when the ordering is correct # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_most_spec.rb:100 + # ./spec/rspec/mocks/matchers/receive_spec.rb:524 - 1505) at_most passes when at_most(n) is called exactly n times + 1505) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts passes with at most when the ordering is correct # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_most_spec.rb:14 + # ./spec/rspec/mocks/matchers/receive_spec.rb:568 - 1506) at_most fails fast when at_most(n) times method is called n plus 1 time + 1506) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts does not result in infinite recursion when `respond_to?` is stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_most_spec.rb:91 + # ./spec/rspec/mocks/matchers/receive_spec.rb:590 - 1507) at_most passes when at_most(n) is called less than n times + 1507) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts passes with at least when the ordering is correct # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_most_spec.rb:21 + # ./spec/rspec/mocks/matchers/receive_spec.rb:546 - 1508) at_most fails fast when at_most(n) times method is called n plus 1 times + 1508) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like handles frozen objects cleanly with fake frozen object allows the caller to configure how the subject responds # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_most_spec.rb:81 + # ./spec/rspec/mocks/matchers/receive_spec.rb:395 - 1509) at_most passes when at_most(:once) is never called + 1509) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like handles frozen objects cleanly when adding the method double raises clear error # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_most_spec.rb:38 + # ./spec/rspec/mocks/matchers/receive_spec.rb:360 - 1510) at_most returns the value given by a block when at_most(:once) method is called + 1510) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like handles frozen objects cleanly when removing the method double warns about being unable to remove the method double # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_most_spec.rb:75 + # ./spec/rspec/mocks/matchers/receive_spec.rb:375 - 1511) at_most passes when at_most(:once) is called once + 1511) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like handles frozen objects cleanly when removing the method double includes the spec location in the warning # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_most_spec.rb:32 + # ./spec/rspec/mocks/matchers/receive_spec.rb:382 - 1512) at_most passes when at_most(:twice) is never called + 1512) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation provides a useful matcher description # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_most_spec.rb:56 + # ./spec/rspec/mocks/matchers/receive_spec.rb:278 - 1513) at_most passes when at_most(n) is never called + 1513) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation sets up a message expectation that passes if the message is received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_most_spec.rb:27 + # ./spec/rspec/mocks/matchers/receive_spec.rb:254 - 1514) at_most passes when at_most(:thrice) is called less than three times + 1514) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation sets up a message expectation that fails if the message is not received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_most_spec.rb:61 + # ./spec/rspec/mocks/matchers/receive_spec.rb:260 - 1515) at_most passes when at_most(:thrice) is called thrice + 1515) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation reports the line number of expectation of unreceived message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_most_spec.rb:67 + # ./spec/rspec/mocks/matchers/receive_spec.rb:268 - 1516) at_most when called with negative expectation raises an error + 1516) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation when a message is not received sets up a message expectation that formats argument matchers correctly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/at_most_spec.rb:128 + # ./spec/rspec/mocks/matchers/receive_spec.rb:493 - 1517) a message expectation with multiple invoke handlers with a specified count equal to the number of values returns values in order to consecutive calls + 1517) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation when a message is received the wrong number of times sets up a message expectation that formats argument matchers correctly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:47 + # ./spec/rspec/mocks/matchers/receive_spec.rb:502 - 1518) an expectation set on nil does not issue a warning when expectations are set to be allowed + 1518) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows the caller to constrain the received arguments by matcher # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:24 + # ./spec/rspec/mocks/matchers/receive_spec.rb:63 - 1519) an expectation set on nil issues a warning when the expectation is negative + 1519) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows the caller to configure how the subject responds # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:15 + # ./spec/rspec/mocks/matchers/receive_spec.rb:49 - 1520) an expectation set on nil does not call #nil? on a double extra times + 1520) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher does not get confused by messages being passed as strings and symbols # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:60 + # ./spec/rspec/mocks/matchers/receive_spec.rb:203 - 1521) an expectation set on nil issues a warning with file and line number information + 1521) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows the caller to constrain the received arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:4 + # ./spec/rspec/mocks/matchers/receive_spec.rb:54 - 1522) an expectation set on nil configured to allow expectation on nil does not issue a warning when expectations are set to be allowed + 1522) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher makes { } blocks trump do...end blocks when passed to a fluent interface method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:38 + # ./spec/rspec/mocks/matchers/receive_spec.rb:221 - 1523) an expectation set on nil configured to disallow expectations on nil raises an error when expectations on nil are disallowed + 1523) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows chaining off a `do...end` block implementation to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:53 + # ./spec/rspec/mocks/matchers/receive_spec.rb:169 - 1524) RSpec::Mocks::MessageExpectation has a nice string representation for a message expectation constrained by `with` + 1524) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher gives precedence to a `{ ... }` block when both forms are provided since that form actually binds to `receive` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/message_expectation_string_representation_spec.rb:18 + # ./spec/rspec/mocks/matchers/receive_spec.rb:182 - 1525) RSpec::Mocks::MessageExpectation has a nice string representation for a raw message expectation on a test double + 1525) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows do...end blocks to be passed to the fluent interface methods without getting a warning # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/message_expectation_string_representation_spec.rb:6 + # ./spec/rspec/mocks/matchers/receive_spec.rb:211 - 1526) RSpec::Mocks::MessageExpectation has a nice string representation for a raw message expectation on a partial double + 1526) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows a `{ ... }` block implementation to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/message_expectation_string_representation_spec.rb:12 + # ./spec/rspec/mocks/matchers/receive_spec.rb:177 - 1527) RSpec::Mocks::TestDouble copies the `as_null_object` state when clone'd + 1527) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver expects to receive hash with a hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/test_double_spec.rb:34 + # ./spec/rspec/mocks/matchers/receive_spec.rb:153 - 1528) RSpec::Mocks::TestDouble copies the `as_null_object` state when dup'd + 1528) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with required keyword args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/test_double_spec.rb:34 + # ./spec/rspec/mocks/matchers/receive_spec.rb:118 - 1529) RSpec::Mocks::TestDouble with syntax [:should, :expect] stubs the methods passed in the stubs hash + 1529) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver allows a `do...end` block implementation to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/test_double_spec.rb:48 + # ./spec/rspec/mocks/matchers/receive_spec.rb:81 - 1530) RSpec::Mocks::TestDouble with syntax [:expect] stubs the methods passed in the stubs hash + 1530) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver expects to receive keyword args with a hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/test_double_spec.rb:48 + # ./spec/rspec/mocks/matchers/receive_spec.rb:159 - 1531) RSpec::Mocks::TestDouble#freeze returns the instance of the test double + 1531) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver fails to expect to receive hash with keyword args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/test_double_spec.rb:27 + # ./spec/rspec/mocks/matchers/receive_spec.rb:133 - 1532) RSpec::Mocks::TestDouble#freeze gives the correct call site for the warning + 1532) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver expects to receive keyword args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/test_double_spec.rb:12 + # ./spec/rspec/mocks/matchers/receive_spec.rb:126 - 1533) RSpec::Mocks::TestDouble#freeze doesn't freeze the object + 1533) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with optional keyword args to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/test_double_spec.rb:17 + # ./spec/rspec/mocks/matchers/receive_spec.rb:98 - 1534) RSpec::Mocks::TestDouble#freeze gives a warning + 1534) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with keyword args to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/test_double_spec.rb:7 + # ./spec/rspec/mocks/matchers/receive_spec.rb:90 - 1535) RSpec::Mocks::TestDouble with syntax [:should] stubs the methods passed in the stubs hash + 1535) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with optional keyword args to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/test_double_spec.rb:48 + # ./spec/rspec/mocks/matchers/receive_spec.rb:106 - 1536) ordering passes when messages are received in order + 1536) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like resets partial mocks cleanly removes the method double # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mock_ordering_spec.rb:16 + # ./spec/rspec/mocks/matchers/receive_spec.rb:337 - 1537) ordering fails when messages are received out of order (3rd message 2nd) + 1537) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like resets partial mocks of any instance cleanly removes the method double # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mock_ordering_spec.rb:56 + # ./spec/rspec/mocks/matchers/receive_spec.rb:347 - 1538) ordering supports duplicate messages + 1538) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation reports the line number of expectation of unreceived message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mock_ordering_spec.rb:100 + # ./spec/rspec/mocks/matchers/receive_spec.rb:268 - 1539) ordering fails when messages are out of order across objects + 1539) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation sets up a message expectation that fails if the message is not received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mock_ordering_spec.rb:66 + # ./spec/rspec/mocks/matchers/receive_spec.rb:260 - 1540) ordering passes when messages are received in order across objects + 1540) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation provides a useful matcher description # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mock_ordering_spec.rb:27 + # ./spec/rspec/mocks/matchers/receive_spec.rb:278 - 1541) ordering fails when messages are received out of order (2nd message 1st) + 1541) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation sets up a message expectation that formats argument matchers correctly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mock_ordering_spec.rb:38 + # ./spec/rspec/mocks/matchers/receive_spec.rb:611 - 1542) ordering passes when messages are received in order + 1542) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation sets up a message expectation that passes if the message is received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mock_ordering_spec.rb:7 + # ./spec/rspec/mocks/matchers/receive_spec.rb:254 - 1543) ordering ignores order of non ordered messages + 1543) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher does support inherited matchers # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mock_ordering_spec.rb:80 + # ./spec/rspec/mocks/matchers/receive_spec.rb:197 - 1544) ordering fails when messages are received out of order (3rd message 1st) + 1544) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher does not support other matchers # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mock_ordering_spec.rb:46 + # ./spec/rspec/mocks/matchers/receive_spec.rb:191 - 1545) #once fails when called with wrong args + 1545) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher gives precedence to a `{ ... }` block when both forms are provided since that form actually binds to `receive` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/once_counts_spec.rb:26 + # ./spec/rspec/mocks/matchers/receive_spec.rb:182 - 1546) #once passes when called once + 1546) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows the caller to constrain the received arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/once_counts_spec.rb:8 + # ./spec/rspec/mocks/matchers/receive_spec.rb:54 - 1547) #once fails when not called + 1547) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher makes { } blocks trump do...end blocks when passed to a fluent interface method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/once_counts_spec.rb:42 + # ./spec/rspec/mocks/matchers/receive_spec.rb:221 - 1548) #once passes when called once with specified args + 1548) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows the caller to constrain the received arguments by matcher # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/once_counts_spec.rb:14 + # ./spec/rspec/mocks/matchers/receive_spec.rb:63 - 1549) #once fails fast when called twice + 1549) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows the caller to configure how the subject responds # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/once_counts_spec.rb:34 + # ./spec/rspec/mocks/matchers/receive_spec.rb:49 - 1550) #once passes when called once with unspecified args + 1550) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher does not get confused by messages being passed as strings and symbols # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/once_counts_spec.rb:20 + # ./spec/rspec/mocks/matchers/receive_spec.rb:203 - 1551) #once when called with negative expectation raises an error + 1551) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows do...end blocks to be passed to the fluent interface methods without getting a warning # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/once_counts_spec.rb:73 + # ./spec/rspec/mocks/matchers/receive_spec.rb:211 - 1552) #once when called with the wrong number of times with the specified args and also called with different args mentions the wrong call count in the failure message rather than the different args + 1552) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows chaining off a `do...end` block implementation to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/once_counts_spec.rb:50 + # ./spec/rspec/mocks/matchers/receive_spec.rb:169 - 1553) Using rspec-mocks features in before(:all) blocks #hide_const(for an undefined const) raises an error with a useful message + 1553) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows a `{ ... }` block implementation to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_spec.rb:177 - 1554) Using rspec-mocks features in before(:all) blocks #stub_const raises an error with a useful message + 1554) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver fails to expect to receive hash with keyword args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_spec.rb:133 - 1555) Using rspec-mocks features in before(:all) blocks #stub_const does not stub the const + 1555) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver expects to receive hash with a hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/before_all_spec.rb:10 + # ./spec/rspec/mocks/matchers/receive_spec.rb:153 - 1556) Using rspec-mocks features in before(:all) blocks allow(...).to receive_message_chain raises an error with a useful message + 1556) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver expects to receive keyword args with a hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_spec.rb:159 - 1557) Using rspec-mocks features in before(:all) blocks #expect(...).to receive raises an error with a useful message + 1557) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with required keyword args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_spec.rb:118 - 1558) Using rspec-mocks features in before(:all) blocks #allow(...).to receive raises an error with a useful message + 1558) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with optional keyword args to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_spec.rb:98 - 1559) Using rspec-mocks features in before(:all) blocks #expect_any_instance_of(...).to receive raises an error with a useful message + 1559) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with optional keyword args to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_spec.rb:106 - 1560) Using rspec-mocks features in before(:all) blocks #hide_const(for a defined const) raises an error with a useful message + 1560) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with keyword args to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_spec.rb:90 - 1561) Using rspec-mocks features in before(:all) blocks #hide_const(for a defined const) does not hide the const + 1561) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver allows a `do...end` block implementation to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/before_all_spec.rb:30 + # ./spec/rspec/mocks/matchers/receive_spec.rb:81 - 1562) Using rspec-mocks features in before(:all) blocks #allow_any_instance_of(...).to receive raises an error with a useful message + 1562) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation behaves like a receive matcher without yielding receiver expects to receive keyword args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_spec.rb:126 - 1563) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original raises a name error if the method does not exist + 1563) RSpec::Mocks::Matchers::Receive allow(...).to receive ordered with receive counts is not supported # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:22 + # ./spec/rspec/mocks/matchers/receive_spec.rb:417 - 1564) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original allows us to modify the results of the original method + 1564) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance does not expect the message to be received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:14 + # ./spec/rspec/mocks/matchers/receive_spec.rb:233 - 1565) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original works for methods that accept keyword arguments, using a keyword argument block + 1565) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher makes { } blocks trump do...end blocks when passed to a fluent interface method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:66 + # ./spec/rspec/mocks/matchers/receive_spec.rb:221 - 1566) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along the original method + 1566) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does not get confused by messages being passed as strings and symbols # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:29 + # ./spec/rspec/mocks/matchers/receive_spec.rb:203 - 1567) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along any supplied block + 1567) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does not support other matchers # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:45 + # ./spec/rspec/mocks/matchers/receive_spec.rb:191 - 1568) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along the message arguments + 1568) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows a `{ ... }` block implementation to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:38 + # ./spec/rspec/mocks/matchers/receive_spec.rb:177 - 1569) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original ignores previous stubs + 1569) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows the caller to constrain the received arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:52 + # ./spec/rspec/mocks/matchers/receive_spec.rb:54 - 1570) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original can be constrained by specific arguments + 1570) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows chaining off a `do...end` block implementation to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:58 + # ./spec/rspec/mocks/matchers/receive_spec.rb:169 - 1571) and_wrap_original on a partial double allow_any_instance_of(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along the original method + 1571) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does support inherited matchers # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:29 + # ./spec/rspec/mocks/matchers/receive_spec.rb:197 - 1572) and_wrap_original on a partial double allow_any_instance_of(...).to receive(...).and_wrap_original behaves like using and_wrap_original raises a name error if the method does not exist + 1572) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows the caller to configure how the subject responds # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:22 + # ./spec/rspec/mocks/matchers/receive_spec.rb:49 - 1573) and_wrap_original on a partial double allow_any_instance_of(...).to receive(...).and_wrap_original behaves like using and_wrap_original can be constrained by specific arguments + 1573) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows the caller to constrain the received arguments by matcher # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:58 + # ./spec/rspec/mocks/matchers/receive_spec.rb:63 - 1574) and_wrap_original on a partial double allow_any_instance_of(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along the message arguments + 1574) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher gives precedence to a `{ ... }` block when both forms are provided since that form actually binds to `receive` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:38 + # ./spec/rspec/mocks/matchers/receive_spec.rb:182 - 1575) and_wrap_original on a partial double allow_any_instance_of(...).to receive(...).and_wrap_original behaves like using and_wrap_original works for methods that accept keyword arguments, using a keyword argument block + 1575) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows do...end blocks to be passed to the fluent interface methods without getting a warning # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:66 + # ./spec/rspec/mocks/matchers/receive_spec.rb:211 - 1576) and_wrap_original on a partial double allow_any_instance_of(...).to receive(...).and_wrap_original behaves like using and_wrap_original ignores previous stubs + 1576) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver expects to receive keyword args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:52 + # ./spec/rspec/mocks/matchers/receive_spec.rb:126 - 1577) and_wrap_original on a partial double allow_any_instance_of(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along any supplied block + 1577) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with required keyword args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:45 + # ./spec/rspec/mocks/matchers/receive_spec.rb:118 - 1578) and_wrap_original on a partial double allow_any_instance_of(...).to receive(...).and_wrap_original behaves like using and_wrap_original allows us to modify the results of the original method + 1578) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver allows a `do...end` block implementation to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:14 + # ./spec/rspec/mocks/matchers/receive_spec.rb:81 - 1579) and_wrap_original on a pure test double raises an error even if the double object responds to the message + 1579) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with optional keyword args to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:100 + # ./spec/rspec/mocks/matchers/receive_spec.rb:98 - 1580) and_wrap_original on a pure test double raises an error + 1580) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver expects to receive hash with a hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:92 + # ./spec/rspec/mocks/matchers/receive_spec.rb:153 - 1581) An instance double with the doubled class loaded suggests using `class_double` when a class method is stubbed + 1581) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver expects to receive keyword args with a hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:33 + # ./spec/rspec/mocks/matchers/receive_spec.rb:159 - 1582) An instance double with the doubled class loaded only allows instance methods that exist to be stubbed + 1582) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with keyword args to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:12 + # ./spec/rspec/mocks/matchers/receive_spec.rb:90 - 1583) An instance double with the doubled class loaded only allows instance methods that exist to be expected + 1583) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver fails to expect to receive hash with keyword args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:20 + # ./spec/rspec/mocks/matchers/receive_spec.rb:133 - 1584) An instance double with the doubled class loaded checks that stubbed methods with required keyword args are invoked with the required arguments + 1584) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with optional keyword args to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:133 + # ./spec/rspec/mocks/matchers/receive_spec.rb:106 - 1585) An instance double with the doubled class loaded does not allow dynamic methods to be expected + 1585) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like handles frozen objects cleanly with fake frozen object allows the caller to configure how the subject responds # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:57 + # ./spec/rspec/mocks/matchers/receive_spec.rb:395 - 1586) An instance double with the doubled class loaded allows keyword arguments + 1586) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like handles frozen objects cleanly when removing the method double warns about being unable to remove the method double # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:87 + # ./spec/rspec/mocks/matchers/receive_spec.rb:375 - 1587) An instance double with the doubled class loaded validates `with` args against the method signature when stubbing a method + 1587) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like handles frozen objects cleanly when removing the method double includes the spec location in the warning # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:142 + # ./spec/rspec/mocks/matchers/receive_spec.rb:382 - 1588) An instance double with the doubled class loaded gives a descriptive error message for NoMethodError + 1588) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like handles frozen objects cleanly when adding the method double raises clear error # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:49 + # ./spec/rspec/mocks/matchers/receive_spec.rb:360 - 1589) An instance double with the doubled class loaded allows class to be specified by constant + 1589) RSpec::Mocks::Matchers::Receive allow(...).to receive on a class method, from a class with subclasses creates stub which can be called using `super` in a subclass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:149 + # ./spec/rspec/mocks/matchers/receive_spec.rb:446 - 1590) An instance double with the doubled class loaded allows `send` to be stubbed if it is defined on the class + 1590) RSpec::Mocks::Matchers::Receive allow(...).to receive on a class method, from a class with subclasses can stub the same method simultaneously in the superclass and subclasses # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:43 + # ./spec/rspec/mocks/matchers/receive_spec.rb:451 - 1591) An instance double with the doubled class loaded checks that stubbed methods are invoked with the correct arity + 1591) RSpec::Mocks::Matchers::Receive allow(...).to receive on a class method, from a class with subclasses if the method is not redefined in the subclass stubs the method in the subclass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:79 + # ./spec/rspec/mocks/matchers/receive_spec.rb:439 - 1592) An instance double with the doubled class loaded doesn't suggest `class_double` when a non-class method is stubbed + 1592) RSpec::Mocks::Matchers::Receive allow(...).to receive on a class method, from a class with subclasses if the method is redefined in the subclass does not stub the method in the subclass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:38 + # ./spec/rspec/mocks/matchers/receive_spec.rb:431 - 1593) An instance double with the doubled class loaded checks the arity of stubbed methods + 1593) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like resets partial mocks cleanly removes the method double # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:70 + # ./spec/rspec/mocks/matchers/receive_spec.rb:337 - 1594) An instance double with the doubled class loaded for a method that only accepts keyword args does not allow matchers to be used in an actual method call + 1594) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance does not expect the message to be received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:115 + # ./spec/rspec/mocks/matchers/receive_spec.rb:233 - 1595) An instance double with the doubled class loaded for a method that only accepts keyword args allows hash matchers like `hash_including` to be used in place of the keywords arg hash + 1595) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows do...end blocks to be passed to the fluent interface methods without getting a warning # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:93 + # ./spec/rspec/mocks/matchers/receive_spec.rb:211 - 1596) An instance double with the doubled class loaded for a method that only accepts keyword args allows anything matcher to be used in place of the keywords arg hash + 1596) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows the caller to constrain the received arguments by matcher # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:100 + # ./spec/rspec/mocks/matchers/receive_spec.rb:63 - 1597) An instance double with the doubled class loaded for a method that only accepts keyword args still checks positional arguments when matchers used for keyword args + 1597) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does not support other matchers # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:106 + # ./spec/rspec/mocks/matchers/receive_spec.rb:191 - 1598) An instance double with the doubled class loaded when given a class that has an overridden `#name` method properly verifies + 1598) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows chaining off a `do...end` block implementation to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:171 + # ./spec/rspec/mocks/matchers/receive_spec.rb:169 - 1599) An instance double with the doubled class loaded for a method that accepts a mix of optional keyword and positional args allows hash matchers like `hash_including` to be used in place of the keywords arg hash + 1599) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher makes { } blocks trump do...end blocks when passed to a fluent interface method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:126 + # ./spec/rspec/mocks/matchers/receive_spec.rb:221 - 1600) An instance double with the doubled class loaded for null objects includes the double's name in a private method error + 1600) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows the caller to constrain the received arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:194 + # ./spec/rspec/mocks/matchers/receive_spec.rb:54 - 1601) An instance double with the doubled class loaded for null objects reports what public messages it responds to accurately + 1601) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows a `{ ... }` block implementation to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:200 + # ./spec/rspec/mocks/matchers/receive_spec.rb:177 - 1602) An instance double with the doubled class loaded for null objects verifies arguments + 1602) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher gives precedence to a `{ ... }` block when both forms are provided since that form actually binds to `receive` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:188 + # ./spec/rspec/mocks/matchers/receive_spec.rb:182 - 1603) An instance double with the doubled class loaded for null objects reports that it responds to defined private methods when the appropriate arg is passed + 1603) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does support inherited matchers # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:210 + # ./spec/rspec/mocks/matchers/receive_spec.rb:197 - 1604) An instance double with the doubled class loaded for null objects reports that it responds to protected methods when the appropriate arg is passed + 1604) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does not get confused by messages being passed as strings and symbols # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:223 + # ./spec/rspec/mocks/matchers/receive_spec.rb:203 - 1605) An instance double with the doubled class loaded for null objects only allows defined methods + 1605) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows the caller to configure how the subject responds # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:181 + # ./spec/rspec/mocks/matchers/receive_spec.rb:49 - 1606) An instance double with the doubled class loaded when the class const has been previously stubbed uses the original class to verify against for `instance_double(LoadedClass)` + 1606) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver fails to expect to receive hash with keyword args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:163 + # ./spec/rspec/mocks/matchers/receive_spec.rb:133 - 1607) An instance double with the doubled class loaded when the class const has been previously stubbed uses the original class to verify against for `instance_double('LoadedClass')` + 1607) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver expects to receive hash with a hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:157 + # ./spec/rspec/mocks/matchers/receive_spec.rb:153 - 1608) A method stub yields a specified object + 1608) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with optional keyword args to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:462 + # ./spec/rspec/mocks/matchers/receive_spec.rb:106 - 1609) A method stub handles multiple stubbed methods + 1609) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with required keyword args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:72 + # ./spec/rspec/mocks/matchers/receive_spec.rb:118 - 1610) A method stub yields a specified object and return another specified object + 1610) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver expects to receive keyword args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:479 + # ./spec/rspec/mocks/matchers/receive_spec.rb:126 - 1611) A method stub is retained when stubbed object is `clone`d + 1611) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with optional keyword args to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:78 + # ./spec/rspec/mocks/matchers/receive_spec.rb:98 - 1612) A method stub keeps returning last value in consecutive calls + 1612) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver allows a `do...end` block implementation to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:453 + # ./spec/rspec/mocks/matchers/receive_spec.rb:81 - 1613) A method stub instructs an instance to respond_to the message + 1613) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver expects to receive keyword args with a hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:39 + # ./spec/rspec/mocks/matchers/receive_spec.rb:159 - 1614) A method stub ignores when expected message is received with no args + 1614) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver allows a `do...end` block implementation with keyword args to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:49 + # ./spec/rspec/mocks/matchers/receive_spec.rb:90 - 1615) A method stub overrides a pre-existing stub + 1615) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like resets partial mocks of any instance cleanly removes the method double # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:501 + # ./spec/rspec/mocks/matchers/receive_spec.rb:347 - 1616) A method stub overrides a pre-existing method + 1616) Marshal extensions #dump when rspec-mocks has been fully initialized does not duplicate other objects before serialization # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:496 + # ./spec/rspec/mocks/marshal_extension_spec.rb:24 - 1617) A method stub allows a stub and an expectation + 1617) Marshal extensions #dump when rspec-mocks has been fully initialized duplicates objects with stubbed or mocked implementations before serialization # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:507 + # ./spec/rspec/mocks/marshal_extension_spec.rb:17 - 1618) A method stub ignores when message is received with args + 1618) Marshal extensions #dump when rspec-mocks has been fully initialized does not duplicate nil before serialization # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:57 + # ./spec/rspec/mocks/marshal_extension_spec.rb:31 - 1619) A method stub is cleared when stubbed object when `dup`ed + 1619) Marshal extensions #dump when rspec-mocks has been fully initialized applying and unapplying patch is idempotent # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:83 + # ./spec/rspec/mocks/marshal_extension_spec.rb:36 - 1620) A method stub yields multiple times with multiple calls to and_yield + 1620) Marshal extensions #dump outside the per-test lifecycle does not duplicate the object before serialization # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:470 + # ./spec/rspec/mocks/marshal_extension_spec.rb:58 - 1621) A method stub remains private when it stubs a private instance method + 1621) and_wrap_original on a pure test double raises an error # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:88 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:92 - 1622) A method stub remains private when it stubs a private class method + 1622) and_wrap_original on a pure test double raises an error even if the double object responds to the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:93 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:100 - 1623) A method stub returns values in order to consecutive calls + 1623) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original allows us to modify the results of the original method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:446 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:14 - 1624) A method stub ignores when expected message is not received + 1624) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original works for methods that accept keyword arguments, using a keyword argument block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:65 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:66 - 1625) A method stub throws with argument when told to + 1625) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original raises a name error if the method does not exist # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:491 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:22 - 1626) A method stub instructs a class object to respond_to the message + 1626) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original can be constrained by specific arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:44 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:58 - 1627) A method stub throws when told to + 1627) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along any supplied block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:486 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:45 - 1628) A method stub #rspec_reset restores existing instance methods + 1628) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original ignores previous stubs # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:259 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:52 - 1629) A method stub #rspec_reset correctly restores the visibility of methods whose visibility has been tweaked on the singleton class + 1629) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along the original method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:334 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:29 - 1630) A method stub #rspec_reset correctly handles stubbing inherited mixed in class methods + 1630) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along the message arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:353 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:38 - 1631) A method stub #rspec_reset does not remove existing methods that have been stubbed twice + 1631) and_wrap_original on a partial double allow_any_instance_of(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along the original method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:325 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:29 - 1632) A method stub #rspec_reset restores existing class methods + 1632) and_wrap_original on a partial double allow_any_instance_of(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along any supplied block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:292 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:45 - 1633) A method stub #rspec_reset restores existing private instance methods + 1633) and_wrap_original on a partial double allow_any_instance_of(...).to receive(...).and_wrap_original behaves like using and_wrap_original ignores previous stubs # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:285 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:52 - 1634) A method stub #rspec_reset restores existing aliased module_function methods + 1634) and_wrap_original on a partial double allow_any_instance_of(...).to receive(...).and_wrap_original behaves like using and_wrap_original allows us to modify the results of the original method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:299 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:14 - 1635) A method stub #rspec_reset removes stubbed methods that didn't exist + 1635) and_wrap_original on a partial double allow_any_instance_of(...).to receive(...).and_wrap_original behaves like using and_wrap_original works for methods that accept keyword arguments, using a keyword argument block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:253 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:66 - 1636) A method stub #rspec_reset restores existing private class methods + 1636) and_wrap_original on a partial double allow_any_instance_of(...).to receive(...).and_wrap_original behaves like using and_wrap_original can be constrained by specific arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:318 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:58 - 1637) A method stub #rspec_reset restores existing singleton methods with the appropriate context + 1637) and_wrap_original on a partial double allow_any_instance_of(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along the message arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:266 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:38 - 1638) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores prepended instance methods + 1638) and_wrap_original on a partial double allow_any_instance_of(...).to receive(...).and_wrap_original behaves like using and_wrap_original raises a name error if the method does not exist # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:400 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:22 - 1639) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores non-prepended instance methods + 1639) a double _not_ acting as a null object says it does not respond to messages it doesn't understand # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:408 + # ./spec/rspec/mocks/null_object_double_spec.rb:8 - 1640) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores prepended object singleton methods + 1640) a double _not_ acting as a null object raises an error when interpolated in a string as an integer # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:431 + # ./spec/rspec/mocks/null_object_double_spec.rb:17 - 1641) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores prepended class methods + 1641) a double _not_ acting as a null object says it responds to messages it does understand # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:416 + # ./spec/rspec/mocks/null_object_double_spec.rb:12 - 1642) A method stub using `with` determines which value is returned + 1642) #as_null_object sets the object to null_object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:99 + # ./spec/rspec/mocks/null_object_double_spec.rb:113 - 1643) A method stub using `with` allows differing arities + 1643) A partial class mock that has been subclassed cleans up stubs during #reset to prevent leakage onto subclasses between examples # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:107 + # ./spec/rspec/mocks/partial_double_spec.rb:278 - 1644) A method stub when the stubbed method is called does not call any methods on the passed args, since that could mutate them + 1644) A partial class mock that has been subclassed stubbing a base class class method returns the value for the descendent class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:117 + # ./spec/rspec/mocks/partial_double_spec.rb:296 - 1645) A method stub stubbing with prepend does not unnecessarily prepend a module when the module was included + 1645) A partial class mock that has been subclassed stubbing a base class class method returns the value for the stub on the base class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:189 + # ./spec/rspec/mocks/partial_double_spec.rb:292 - 1646) A method stub stubbing with prepend reuses our prepend module so as not to keep mutating the ancestors + 1646) Serialization of mocked objects marshals the same with and without stubbing # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:199 + # ./spec/rspec/mocks/serialization_spec.rb:84 - 1647) A method stub stubbing with prepend does not unnecessarily prepend a module when stubbing a method on a module extended onto itself + 1647) Serialization of mocked objects without YAML loaded does not add #to_yaml to the stubbed object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:178 + # ./spec/rspec/mocks/serialization_spec.rb:77 - 1648) A method stub stubbing with prepend does not unnecessarily prepend a module when the prepended module does not override the stubbed method + 1648) Serialization of mocked objects with YAML loaded using Psych as the YAML engine behaves like normal YAML serialization serializes to yaml the same with and without stubbing, using YAML.dump # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:168 + # ./spec/rspec/mocks/serialization_spec.rb:47 - 1649) A method stub stubbing with prepend handles stubbing prepended methods on an object's singleton class + 1649) Serialization of mocked objects with YAML loaded using Psych as the YAML engine behaves like normal YAML serialization serializes to yaml the same with and without stubbing, using #to_yaml # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:158 + # ./spec/rspec/mocks/serialization_spec.rb:43 - 1650) A method stub stubbing with prepend handles stubbing prepended methods on a class's singleton class + 1650) A method stub remains private when it stubs a private instance method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:151 + # ./spec/rspec/mocks/stub_spec.rb:88 - 1651) A method stub stubbing with prepend handles stubbing prepended methods + 1651) A method stub overrides a pre-existing stub # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:143 + # ./spec/rspec/mocks/stub_spec.rb:501 - 1652) A method stub stubbing with prepend when a module with a method override is prepended after reset can still be stubbed again + 1652) A method stub yields a specified object and return another specified object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:231 + # ./spec/rspec/mocks/stub_spec.rb:479 - 1653) A method stub stubbing with prepend when multiple modules are prepended, only one of which overrides the stubbed method can still be stubbed and reset + 1653) A method stub keeps returning last value in consecutive calls # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:214 + # ./spec/rspec/mocks/stub_spec.rb:453 - 1654) A method stub using `and_return` returns declared value when message is received + 1654) A method stub yields multiple times with multiple calls to and_yield # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:32 + # ./spec/rspec/mocks/stub_spec.rb:470 - 1655) Expected argument verification (when `#with` is called) when doubling an unloaded class allows any arguments + 1655) A method stub handles multiple stubbed methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:11 + # ./spec/rspec/mocks/stub_spec.rb:72 - 1656) Expected argument verification (when `#with` is called) when doubling a loaded class does not cover required args when `any_args` is not used + 1656) A method stub allows a stub and an expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:97 + # ./spec/rspec/mocks/stub_spec.rb:507 - 1657) Expected argument verification (when `#with` is called) when doubling a loaded class when `no_args` is used allows a method expectation on a method that accepts no arguments + 1657) A method stub is cleared when stubbed object when `dup`ed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:58 + # ./spec/rspec/mocks/stub_spec.rb:83 - 1658) Expected argument verification (when `#with` is called) when doubling a loaded class when `no_args` is used allows a method expectation on a method that has defaults for all arguments + 1658) A method stub instructs an instance to respond_to the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:66 + # ./spec/rspec/mocks/stub_spec.rb:39 - 1659) Expected argument verification (when `#with` is called) when doubling a loaded class when `no_args` is used does not allow a method expectation on a method that has required arguments + 1659) A method stub ignores when expected message is received with no args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:72 + # ./spec/rspec/mocks/stub_spec.rb:49 - 1660) Expected argument verification (when `#with` is called) when doubling a loaded class when `no_args` is used for a method with required keyword args covers the required args when `any_args` is last + 1660) A method stub returns values in order to consecutive calls # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:80 + # ./spec/rspec/mocks/stub_spec.rb:446 - 1661) Expected argument verification (when `#with` is called) when doubling a loaded class when `no_args` is used for a method with required keyword args does not cover the required args when there are args after `any_args` + 1661) A method stub ignores when expected message is not received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:86 + # ./spec/rspec/mocks/stub_spec.rb:65 - 1662) Expected argument verification (when `#with` is called) when doubling a loaded class when `with` is called with no args fails with an error suggesting the user use `no_args` instead + 1662) A method stub ignores when message is received with args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:119 + # ./spec/rspec/mocks/stub_spec.rb:57 - 1663) Expected argument verification (when `#with` is called) when doubling a loaded class when `any_args` is used as the first argument, with an allowed number of additional args is allowed + 1663) A method stub overrides a pre-existing method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:45 + # ./spec/rspec/mocks/stub_spec.rb:496 - 1664) Expected argument verification (when `#with` is called) when doubling a loaded class when `any_args` is used as the first argument, with too many additional args is disallowed + 1664) A method stub throws with argument when told to # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:37 + # ./spec/rspec/mocks/stub_spec.rb:491 - 1665) Expected argument verification (when `#with` is called) when doubling a loaded class when `any_args` is used as the only argument is allowed regardless of how many args the method requires + 1665) A method stub yields a specified object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:29 + # ./spec/rspec/mocks/stub_spec.rb:462 - 1666) Expected argument verification (when `#with` is called) when doubling a loaded class when a list of args is provided does not allow a method expectation with an arity mismatch + 1666) A method stub remains private when it stubs a private class method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:111 + # ./spec/rspec/mocks/stub_spec.rb:93 - 1667) Expected argument verification (when `#with` is called) when doubling a loaded class when a list of args is provided allows a method expectation when the arity matches + 1667) A method stub instructs a class object to respond_to the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:105 + # ./spec/rspec/mocks/stub_spec.rb:44 - 1668) Expected argument verification (when `#with` is called) when doubling a loaded class for a method with keyword args matches against a hash submitted as keyword arguments and received as positional argument (in both Ruby 2 and Ruby 3) + 1668) A method stub throws when told to # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:128 + # ./spec/rspec/mocks/stub_spec.rb:486 - 1669) Expected argument verification (when `#with` is called) when doubling a loaded class for a method with keyword args fails to match against a hash submitted as a positional argument and received as keyword arguments in Ruby 3.0 or later + 1669) A method stub is retained when stubbed object is `clone`d # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:134 + # ./spec/rspec/mocks/stub_spec.rb:78 - 1670) Expected argument verification (when `#with` is called) when doubling a loaded class for a method with keyword args when using `send` matches against keyword arguments + 1670) A method stub #rspec_reset restores existing class methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:150 + # ./spec/rspec/mocks/stub_spec.rb:292 - 1671) Methods added to every object limits the number of methods that get added to all objects + 1671) A method stub #rspec_reset correctly handles stubbing inherited mixed in class methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/methods_spec.rb:13 + # ./spec/rspec/mocks/stub_spec.rb:353 - 1672) Marshal extensions #dump when rspec-mocks has been fully initialized does not duplicate other objects before serialization + 1672) A method stub #rspec_reset restores existing aliased module_function methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/marshal_extension_spec.rb:24 + # ./spec/rspec/mocks/stub_spec.rb:299 - 1673) Marshal extensions #dump when rspec-mocks has been fully initialized applying and unapplying patch is idempotent + 1673) A method stub #rspec_reset removes stubbed methods that didn't exist # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/marshal_extension_spec.rb:36 + # ./spec/rspec/mocks/stub_spec.rb:253 - 1674) Marshal extensions #dump when rspec-mocks has been fully initialized duplicates objects with stubbed or mocked implementations before serialization + 1674) A method stub #rspec_reset restores existing private class methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/marshal_extension_spec.rb:17 + # ./spec/rspec/mocks/stub_spec.rb:318 - 1675) Marshal extensions #dump when rspec-mocks has been fully initialized does not duplicate nil before serialization + 1675) A method stub #rspec_reset restores existing instance methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/marshal_extension_spec.rb:31 + # ./spec/rspec/mocks/stub_spec.rb:259 - 1676) Marshal extensions #dump outside the per-test lifecycle does not duplicate the object before serialization + 1676) A method stub #rspec_reset restores existing private instance methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/marshal_extension_spec.rb:58 + # ./spec/rspec/mocks/stub_spec.rb:285 - 1677) Using the legacy should syntax #unstub raises a MockExpectationError if the method has not been stubbed + 1677) A method stub #rspec_reset restores existing singleton methods with the appropriate context # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:124 + # ./spec/rspec/mocks/stub_spec.rb:266 - 1678) Using the legacy should syntax #unstub does not remove any expectations with the same method name + 1678) A method stub #rspec_reset correctly restores the visibility of methods whose visibility has been tweaked on the singleton class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:101 + # ./spec/rspec/mocks/stub_spec.rb:334 - 1679) Using the legacy should syntax #unstub replaces the stubbed method with the original method + 1679) A method stub #rspec_reset does not remove existing methods that have been stubbed twice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:84 + # ./spec/rspec/mocks/stub_spec.rb:325 - 1680) Using the legacy should syntax #unstub restores the correct implementations when stubbed and unstubbed on a parent and child class + 1680) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores non-prepended instance methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:111 + # ./spec/rspec/mocks/stub_spec.rb:408 - 1681) Using the legacy should syntax #unstub raises an error with a useful message + 1681) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores prepended object singleton methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/stub_spec.rb:431 - 1682) Using the legacy should syntax #unstub removes all stubs with the supplied method name + 1682) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores prepended class methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:92 + # ./spec/rspec/mocks/stub_spec.rb:416 - 1683) Using the legacy should syntax #received_message? answers true for received_message? when message received + 1683) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores prepended instance methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:13 + # ./spec/rspec/mocks/stub_spec.rb:400 - 1684) Using the legacy should syntax #received_message? answers false for received_message? when message received with incorrect args + 1684) A method stub stubbing with prepend does not unnecessarily prepend a module when stubbing a method on a module extended onto itself # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:23 + # ./spec/rspec/mocks/stub_spec.rb:178 - 1685) Using the legacy should syntax #received_message? answers true for received_message? when message received with correct args + 1685) A method stub stubbing with prepend reuses our prepend module so as not to keep mutating the ancestors # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:18 + # ./spec/rspec/mocks/stub_spec.rb:199 - 1686) Using the legacy should syntax #received_message? answers false for received_message? when no messages received + 1686) A method stub stubbing with prepend handles stubbing prepended methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:9 + # ./spec/rspec/mocks/stub_spec.rb:143 - 1687) Using the legacy should syntax #any_instance can mock a method + 1687) A method stub stubbing with prepend handles stubbing prepended methods on a class's singleton class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:242 + # ./spec/rspec/mocks/stub_spec.rb:151 - 1688) Using the legacy should syntax #any_instance raises an error with a useful message + 1688) A method stub stubbing with prepend does not unnecessarily prepend a module when the module was included # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/stub_spec.rb:189 - 1689) Using the legacy should syntax #any_instance can stub a method + 1689) A method stub stubbing with prepend does not unnecessarily prepend a module when the prepended module does not override the stubbed method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:237 + # ./spec/rspec/mocks/stub_spec.rb:168 - 1690) Using the legacy should syntax #any_instance affects previously stubbed instances when mocking a method + 1690) A method stub stubbing with prepend handles stubbing prepended methods on an object's singleton class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:263 + # ./spec/rspec/mocks/stub_spec.rb:158 - 1691) Using the legacy should syntax #any_instance adds a class to the current space + 1691) A method stub stubbing with prepend when a module with a method override is prepended after reset can still be stubbed again # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:231 + # ./spec/rspec/mocks/stub_spec.rb:231 - 1692) Using the legacy should syntax #any_instance affects previously stubbed instances when stubbing a method + 1692) A method stub stubbing with prepend when multiple modules are prepended, only one of which overrides the stubbed method can still be stubbed and reset # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:255 + # ./spec/rspec/mocks/stub_spec.rb:214 - 1693) Using the legacy should syntax #any_instance can get method objects for the fluent interface + 1693) A method stub using `with` determines which value is returned # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:248 + # ./spec/rspec/mocks/stub_spec.rb:99 - 1694) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_yield' + 1694) A method stub using `with` allows differing arities # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:285 + # ./spec/rspec/mocks/stub_spec.rb:107 - 1695) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'stub' follows 'with' + 1695) A method stub when the stubbed method is called does not call any methods on the passed args, since that could mutate them # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:273 + # ./spec/rspec/mocks/stub_spec.rb:117 - 1696) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_return' + 1696) A method stub using `and_return` returns declared value when message is received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:277 + # ./spec/rspec/mocks/stub_spec.rb:32 - 1697) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_raise' + 1697) allow(...).to receive_messages(:a => 1, :b => 2) allows the object to respond to multiple messages # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:281 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:35 - 1698) Using the legacy should syntax #any_instance invocation order #stub behaves as 'every instance' handles `unstub` on subclasses + 1698) allow(...).to receive_messages(:a => 1, :b => 2) behaves like handles partially mocked objects correctly resets partially mocked objects correctly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:293 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:22 - 1699) Using the legacy should syntax #any_instance invocation order #should_not_receive passes if only a different method is called + 1699) allow(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:353 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 - 1700) Using the legacy should syntax #any_instance invocation order #should_not_receive fails if the method is called + 1700) allow(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a do; end; block is given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:341 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 - 1701) Using the legacy should syntax #any_instance invocation order #should_not_receive passes if no method is called + 1701) A class double with the doubled class not loaded allows any method to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:349 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:19 - 1702) Using the legacy should syntax #any_instance invocation order #should_not_receive prevents confusing double-negative expressions involving `never` + 1702) A class double with the doubled class not loaded trying to raise a class_double raises a TypeError # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:382 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:25 - 1703) Using the legacy should syntax #any_instance invocation order #should_not_receive with constraints fails if the method is called with the specified parameters + 1703) A class double with the doubled class not loaded includes the double name in errors for unexpected messages # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:359 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:12 - 1704) Using the legacy should syntax #any_instance invocation order #should_not_receive with constraints passes if the method is called with different parameters + 1704) A class double with the doubled class not loaded when stubbing a private module method can mock private module methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:367 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:46 - 1705) Using the legacy should syntax #any_instance invocation order #should_not_receive when used in combination with should_receive passes if only the expected message is received + 1705) A class double with the doubled class not loaded when the class const has been previously stubbed treats the class as being unloaded for `class_double('NonLoadedClass')` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:374 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:60 - 1706) Using the legacy should syntax #any_instance invocation order #unstub removes all stubs with the supplied method name + 1706) A class double with the doubled class not loaded when the class const has been previously stubbed treats the class as being unloaded for `instance_double(NonLoadedClass)` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:396 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:65 - 1707) Using the legacy should syntax #any_instance invocation order #unstub removes stubs from sub class after Invocation when super class was originally stubbed + 1707) MockExpectationError is not caught by StandardError rescue blocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:411 + # ./spec/rspec/mocks/mock_expectation_error_spec.rb:12 - 1708) Using the legacy should syntax #any_instance invocation order #unstub does not remove any expectations with the same method name + 1708) Constructing a verifying double can only be named with a string or a module # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:435 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:162 - 1709) Using the legacy should syntax #any_instance invocation order #unstub does not get confused about string vs symbol usage for the message + 1709) Constructing a verifying double instance doubles cannot be constructed with a non-module object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:449 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:18 - 1710) Using the legacy should syntax #any_instance invocation order #unstub removes stubs even if they have already been invoked + 1710) Constructing a verifying double instance doubles can be constructed with a struct # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:403 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:24 - 1711) Using the legacy should syntax #any_instance invocation order #unstub does not remove message expectations set directly on an instance + 1711) Constructing a verifying double instance doubles allows named constants to be looked up and declared to verifying double callbacks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:427 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:29 - 1712) Using the legacy should syntax #any_instance invocation order #unstub replaces the stubbed method with the original method + 1712) Constructing a verifying double instance doubles allows anonymous constants to be looked up and declared to verifying double callbacks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:390 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:40 - 1713) Using the legacy should syntax #any_instance invocation order #unstub raises a MockExpectationError if the method has not been stubbed + 1713) Constructing a verifying double instance doubles allows classes to be customised # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:443 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:52 - 1714) Using the legacy should syntax #any_instance invocation order #unstub removes stubs set directly on an instance + 1714) Constructing a verifying double instance doubles any_instance calls the callback for expect_any_instance_of # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:419 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:77 - 1715) Using the legacy should syntax #any_instance invocation order #stub_chain affects previously stubbed instances + 1715) Constructing a verifying double instance doubles any_instance should not call the callback if verify_partial_doubles is off # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:324 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:93 - 1716) Using the legacy should syntax #any_instance invocation order #stub_chain raises an error if 'stub_chain' follows 'and_return' + 1716) Constructing a verifying double instance doubles any_instance calls the callback for allow_any_instance_of # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:303 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:85 - 1717) Using the legacy should syntax #any_instance invocation order #stub_chain allows a chain of methods to be stubbed using #stub_chain given a string of '.' separated method names representing the chain + 1717) Constructing a verifying double object doubles declares the class to verifying double callbacks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:318 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:131 - 1718) Using the legacy should syntax #any_instance invocation order #stub_chain allows a chain of methods to be stubbed using #stub_chain given a hash as the last argument uses the value as the expected return value + 1718) Constructing a verifying double when verify_doubled_constant_names config option is set prevents creation of class doubles for unloaded constants # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:313 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:155 - 1719) Using the legacy should syntax #any_instance invocation order #stub_chain allows a chain of methods to be stubbed using #stub_chain given symbols representing the methods + 1719) Constructing a verifying double when verify_doubled_constant_names config option is set prevents creation of instance doubles for unloaded constants # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:308 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:149 - 1720) Using the legacy should syntax #any_instance invocation order #should_receive raises an error if 'should_receive' follows 'with' + 1720) Constructing a verifying double class doubles declares named modules to verifying double callbacks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:335 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:110 - 1721) Using the legacy should syntax #stub_chain raises an error with a useful message + 1721) Constructing a verifying double class doubles declares anonymous modules to verifying double callbacks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:119 - 1722) Using the legacy should syntax #stub_chain can stub a sequence of messages + 1722) Constructing a verifying double class doubles cannot be constructed with a non-module object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:61 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:104 - 1723) Using the legacy should syntax #should_receive does not fail on verification if the message is received + 1723) Reraising eager raises during the verify step does not reraise when a double receives a message that hasn't been allowed/expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:139 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:4 - 1724) Using the legacy should syntax #should_receive fails on verification if the message is not received + 1724) Reraising eager raises during the verify step when a negative expectation receives a call notifies with a different `source_id` than that for the same double and a different message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:133 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:27 - 1725) Using the legacy should syntax #should_receive raises an error with a useful message + 1725) Reraising eager raises during the verify step when a negative expectation receives a call reraises during verification # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:12 - 1726) Using the legacy should syntax #should_receive can set a canned response + 1726) Reraising eager raises during the verify step when a negative expectation receives a call notifies both exceptions using the same `:source_id` so `aggregate_failures` can de-dup # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:146 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:20 - 1727) Using the legacy should syntax #should_receive with an options hash reports the file and line submitted with :expected_from + 1727) Reraising eager raises during the verify step when a negative expectation receives a call notifies with a different `source_id` than a different double expecting that message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:159 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:42 - 1728) Using the legacy should syntax #should_receive with an options hash uses the message supplied with :message after a similar stub + 1728) Reraising eager raises during the verify step when an expectation with a count is exceeded notifies both exceptions using the same `:source_id` so `aggregate_failures` can de-dup # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:178 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:72 - 1729) Using the legacy should syntax #should_receive with an options hash uses the message supplied with :message + 1729) Reraising eager raises during the verify step when an expectation with a count is exceeded reraises during verification # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:170 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:63 - 1730) Using the legacy should syntax #should_not_receive does not fail on verification if the message is not received + 1730) Reraising eager raises during the verify step when an expectation is called with the wrong arguments reraises during verification # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:201 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:81 - 1731) Using the legacy should syntax #should_not_receive raises an error with a useful message + 1731) Reraising eager raises during the verify step when an expectation is called with the wrong arguments notifies both exceptions using the same `:source_id` so `aggregate_failures` can de-dup # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:89 - 1732) Using the legacy should syntax #should_not_receive fails when the message is received + 1732) Reraising eager raises during the verify step when an expectation is called out of order reraises during verification # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:194 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:99 - 1733) Using the legacy should syntax #should_not_receive returns a negative message expectation + 1733) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher describes itself properly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:190 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:6 - 1734) Using the legacy should syntax #stub supports options + 1734) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher describes passed matchers # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:30 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:10 - 1735) Using the legacy should syntax #stub sets up a canned response + 1735) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with a missing key # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:40 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:79 - 1736) Using the legacy should syntax #stub can stub multiple messages using a hash + 1736) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with a missing key # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:46 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:75 - 1737) Using the legacy should syntax #stub returns `nil` from all terminal actions to discourage further configuration + 1737) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with a missing key when one pair is matching # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:34 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:87 - 1738) Using the legacy should syntax #stub raises an error with a useful message + 1738) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a non-hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:71 - 1739) when the should syntax is enabled on a non-default syntax host continues to warn about the should syntax + 1739) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with an incorrect value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:574 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:91 - 1740) a message expectation with multiple return values specifying at_least less than the number of values fails when called less than the specified number + 1740) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match when values are nil but keys are different # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_return_value_spec.rb:81 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:95 - 1741) a message expectation with multiple return values specifying at_least less than the number of values uses the last return value for subsequent calls + 1741) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match an empty hash with a given key # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_return_value_spec.rb:74 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:83 - 1742) a message expectation with multiple return values specifying at_least less than the number of values when method is stubbed too uses the last value for subsequent calls + 1742) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing matches the same hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_return_value_spec.rb:89 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:17 - 1743) a message expectation with multiple return values specifying at_least less than the number of values when method is stubbed too fails when called less than the specified number + 1743) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing matches against classes inheriting from Hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_return_value_spec.rb:96 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:25 - 1744) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the at_most method is called, indicating the expectation has already been invoked + 1744) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing matches a hash with extra stuff # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:21 - 1745) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the at_least method is called, indicating the expectation has already been invoked + 1745) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches if the key is present # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:44 - 1746) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the and_raise method is called, indicating the expectation has already been invoked + 1746) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches if passed many keys and one key/value pair # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:60 - 1747) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the exactly method is called, indicating the expectation has already been invoked + 1747) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches if more keys are present # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:48 - 1748) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the and_throw method is called, indicating the expectation has already been invoked + 1748) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches if passed many keys and many key/value pairs # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:64 - 1749) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the with method is called, indicating the expectation has already been invoked + 1749) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches if passed one key and one key/value pair # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:56 - 1750) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the and_yield method is called, indicating the expectation has already been invoked + 1750) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches a string against a given key # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:52 - 1751) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the and_return method is called, indicating the expectation has already been invoked + 1751) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when matching against other matchers can match against arbitrary objects that implement #=== # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:38 - 1752) a message expectation with multiple return values with a specified count larger than the number of values fails fast when called greater than the specified number + 1752) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when matching against other matchers matches a string against anything() # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_return_value_spec.rb:122 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:34 - 1753) a message expectation with multiple return values with a specified count larger than the number of values uses the last return value for subsequent calls + 1753) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when matching against other matchers matches an int against anything() # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_return_value_spec.rb:109 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:30 - 1754) a message expectation with multiple return values with a specified count larger than the number of values fails when called less than the specified number + 1754) RSpec::Mocks::Configuration adds stub and should_receive to the given modules # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_return_value_spec.rb:116 + # ./spec/rspec/mocks/configuration_spec.rb:12 - 1755) expect_any_instance_of(...).to receive_messages(:a => 1, :b => 2) sets up multiple expectations + 1755) RSpec::Mocks::Configuration#when_declaring_verifying_double captures the supplied blocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:112 + # ./spec/rspec/mocks/configuration_spec.rb:177 - 1756) expect_any_instance_of(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given + 1756) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax defaults to enabling both the :should and :expect syntaxes # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 + # ./spec/rspec/mocks/configuration_spec.rb:36 - 1757) expect_any_instance_of(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a do; end; block is given + 1757) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] reports that both syntaxes are enabled # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 + # ./spec/rspec/mocks/configuration_spec.rb:119 - 1758) PreciseCounts fails fast when exactly n times method is called more than n times + 1758) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] adds `any_instance` to every class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/precise_counts_spec.rb:17 + # ./spec/rspec/mocks/configuration_spec.rb:111 - 1759) PreciseCounts passes if exactly n times method is called exactly n times + 1759) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] adds the expect methods to the example group context # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/precise_counts_spec.rb:34 + # ./spec/rspec/mocks/configuration_spec.rb:115 - 1760) PreciseCounts fails when exactly n times method is never called + 1760) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] adds the should methods to every object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/precise_counts_spec.rb:27 + # ./spec/rspec/mocks/configuration_spec.rb:107 - 1761) PreciseCounts passes multiple calls with different args and counts + 1761) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] does not warn about the should syntax # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/precise_counts_spec.rb:56 + # ./spec/rspec/mocks/configuration_spec.rb:123 - 1762) PreciseCounts passes multiple calls with different args + 1762) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should adds `any_instance` to every class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/precise_counts_spec.rb:48 + # ./spec/rspec/mocks/configuration_spec.rb:80 - 1763) PreciseCounts returns the value given by a block when the exactly once method is called + 1763) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should removes the expect methods from the example group context # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/precise_counts_spec.rb:42 + # ./spec/rspec/mocks/configuration_spec.rb:84 - 1764) PreciseCounts fails when exactly n times method is called less than n times + 1764) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should is a no-op when configured a second time # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/precise_counts_spec.rb:8 + # ./spec/rspec/mocks/configuration_spec.rb:97 - 1765) A class double with the doubled class loaded correctly verifies expectations when constant is removed + 1765) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should reports that the syntax is :should # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:99 + # ./spec/rspec/mocks/configuration_spec.rb:88 - 1766) A class double with the doubled class loaded only allows class methods that exist to be expected + 1766) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should adds the should methods to every object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:20 + # ./spec/rspec/mocks/configuration_spec.rb:76 - 1767) A class double with the doubled class loaded doesn't suggest `instance_double` when a non-instance method is stubbed' + 1767) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should does not warn about the should syntax # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:38 + # ./spec/rspec/mocks/configuration_spec.rb:92 - 1768) A class double with the doubled class loaded can transfer nested constants to the double + 1768) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect adds the expect methods to the example group context # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:92 + # ./spec/rspec/mocks/configuration_spec.rb:58 - 1769) A class double with the doubled class loaded suggests using `instance_double` when an instance method is stubbed + 1769) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect removes `any_instance` from every class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:33 + # ./spec/rspec/mocks/configuration_spec.rb:54 - 1770) A class double with the doubled class loaded allows class to be specified by constant + 1770) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect reports that the syntax is :expect # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:76 + # ./spec/rspec/mocks/configuration_spec.rb:62 - 1771) A class double with the doubled class loaded allows dynamically defined class methods to be expected + 1771) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect is a no-op when configured a second time # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:71 + # ./spec/rspec/mocks/configuration_spec.rb:66 - 1772) A class double with the doubled class loaded only allows defined methods for null objects + 1772) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect removes the should methods from every object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:108 + # ./spec/rspec/mocks/configuration_spec.rb:50 - 1773) A class double with the doubled class loaded allows dynamically defined class method stubs with arguments + 1773) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax defaults to enabling both the :should and :expect syntaxes # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:57 + # ./spec/rspec/mocks/configuration_spec.rb:36 - 1774) A class double with the doubled class loaded verifies arguments for null objects + 1774) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :should removes the expect methods from the example group context # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:115 + # ./spec/rspec/mocks/configuration_spec.rb:84 - 1775) A class double with the doubled class loaded gives a descriptive error message for NoMethodError + 1775) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :should reports that the syntax is :should # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:43 + # ./spec/rspec/mocks/configuration_spec.rb:88 - 1776) A class double with the doubled class loaded checks that stubbed methods are invoked with the correct arity + 1776) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :should is a no-op when configured a second time # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:50 + # ./spec/rspec/mocks/configuration_spec.rb:97 - 1777) A class double with the doubled class loaded only allows class methods that exist to be stubbed + 1777) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :should adds `any_instance` to every class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:12 + # ./spec/rspec/mocks/configuration_spec.rb:80 - 1778) A class double with the doubled class loaded allows dynamically defined class method mocks with arguments + 1778) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :should does not warn about the should syntax # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:64 + # ./spec/rspec/mocks/configuration_spec.rb:92 - 1779) A class double with the doubled class loaded validates `with` args against the method signature when stubbing a method + 1779) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :should adds the should methods to every object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:123 + # ./spec/rspec/mocks/configuration_spec.rb:76 - 1780) A class double with the doubled class loaded can replace existing constants for the duration of the test + 1780) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to [:should, :expect] does not warn about the should syntax # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:81 + # ./spec/rspec/mocks/configuration_spec.rb:123 - 1781) A class double with the doubled class loaded when `.new` is stubbed uses the method signature from `#initialize` for arg verification + 1781) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to [:should, :expect] adds `any_instance` to every class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:135 + # ./spec/rspec/mocks/configuration_spec.rb:111 - 1782) A class double with the doubled class loaded when `.new` is stubbed on a class with a private `new` uses the method signature from `#initialize` for arg verification + 1782) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to [:should, :expect] adds the should methods to every object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:167 + # ./spec/rspec/mocks/configuration_spec.rb:107 - 1783) A class double with the doubled class loaded when `.new` is stubbed on a class that has redefined `new` uses the method signature of the redefined `new` for arg verification + 1783) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to [:should, :expect] adds the expect methods to the example group context # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:142 + # ./spec/rspec/mocks/configuration_spec.rb:115 - 1784) A class double with the doubled class loaded when `.new` is stubbed on a class that has undefined `new` prevents it from being stubbed + 1784) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to [:should, :expect] reports that both syntaxes are enabled # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:154 + # ./spec/rspec/mocks/configuration_spec.rb:119 - 1785) A class double with the doubled class loaded when the class const has been previously stubbed uses the original class to verify against for `class_double('ClassName')` + 1785) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :expect adds the expect methods to the example group context # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:211 + # ./spec/rspec/mocks/configuration_spec.rb:58 - 1786) A class double with the doubled class loaded when the class const has been previously stubbed uses the original class to verify against for `instance_double(ClassName)` + 1786) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :expect reports that the syntax is :expect # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:217 + # ./spec/rspec/mocks/configuration_spec.rb:62 - 1787) A class double with the doubled class loaded when given a class that has an overridden `#name` method properly verifies + 1787) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :expect is a no-op when configured a second time # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:193 + # ./spec/rspec/mocks/configuration_spec.rb:66 - 1788) A class double with the doubled class loaded when given a class that has an overridden `#name` method can still stub the const + 1788) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :expect removes `any_instance` from every class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:197 + # ./spec/rspec/mocks/configuration_spec.rb:54 - 1789) A class double with the doubled class loaded when given an anonymous class properly verifies + 1789) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :expect removes the should methods from every object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:184 + # ./spec/rspec/mocks/configuration_spec.rb:50 -Finished in 1.16 seconds (files took 0.57068 seconds to load) +Finished in 1.12 seconds (files took 0.58794 seconds to load) 1789 examples, 0 failures, 1789 pending -Randomized with seed 52424 +Randomized with seed 60294 cd - @@ -8714,9 +8749,9 @@ cd rspec-support /usr/bin/ruby3.1 -S rspec spec/rspec/support/caller_filter_spec.rb spec/rspec/support/comparable_version_spec.rb spec/rspec/support/deprecation_helpers_spec.rb spec/rspec/support/differ_spec.rb spec/rspec/support/directory_maker_spec.rb spec/rspec/support/encoded_string_spec.rb spec/rspec/support/fuzzy_matcher_spec.rb spec/rspec/support/matcher_definition_spec.rb spec/rspec/support/method_signature_verifier_spec.rb spec/rspec/support/mutex_spec.rb spec/rspec/support/object_formatter_spec.rb spec/rspec/support/recursive_const_methods_spec.rb spec/rspec/support/reentrant_mutex_spec.rb spec/rspec/support/ruby_features_spec.rb spec/rspec/support/source/node_spec.rb spec/rspec/support/source/token_spec.rb spec/rspec/support/source_spec.rb spec/rspec/support/spec/in_sub_process_spec.rb spec/rspec/support/spec/shell_out_spec.rb spec/rspec/support/spec/stderr_splitter_spec.rb spec/rspec/support/spec/with_isolated_std_err_spec.rb spec/rspec/support/warnings_spec.rb spec/rspec/support/with_keywords_when_needed_spec.rb spec/rspec/support_spec.rb -Randomized with seed 48813 -..........................................................................................*.....................................................................................................................................*..............................fatal: not a git repository (or any of the parent directories): .git -.......................................................................................................................................................................................................................................................................................................................... +Randomized with seed 49445 +.........................................................................................................................................................................................................................................................................................................................................................................................................................................*.........................................................................................................................fatal: not a git repository (or any of the parent directories): .git +.....................* Pending: (Failures listed here are expected and do not affect your suite's status) @@ -8731,10 +8766,10 @@ # ./spec/rspec/support/deprecation_helpers_spec.rb:66:in `block (4 levels) in ' # ./spec/rspec/support/deprecation_helpers_spec.rb:65:in `block (3 levels) in ' -Finished in 1.84 seconds (files took 0.24649 seconds to load) +Finished in 1.74 seconds (files took 0.25036 seconds to load) 569 examples, 0 failures, 2 pending -Randomized with seed 48813 +Randomized with seed 49445 cd - @@ -8767,24 +8802,24 @@ dh_ruby_fixdepends -O--buildsystem=ruby dh_installdeb -O--buildsystem=ruby dh_gencontrol -O--buildsystem=ruby +dpkg-gencontrol: warning: Depends field of package ruby-rspec-expectations: substitution variable ${shlibs:Depends} used, but is not defined +dpkg-gencontrol: warning: package ruby-rspec-expectations: substitution variable ${ruby:Versions} used, but is not defined +dpkg-gencontrol: warning: package ruby-rspec-expectations: substitution variable ${ruby:Depends} unused, but is defined dpkg-gencontrol: warning: Depends field of package ruby-rspec-mocks: substitution variable ${shlibs:Depends} used, but is not defined dpkg-gencontrol: warning: package ruby-rspec-mocks: substitution variable ${ruby:Versions} used, but is not defined dpkg-gencontrol: warning: package ruby-rspec-mocks: substitution variable ${ruby:Depends} unused, but is defined -dpkg-gencontrol: warning: Depends field of package ruby-rspec-core: substitution variable ${shlibs:Depends} used, but is not defined -dpkg-gencontrol: warning: package ruby-rspec-core: substitution variable ${ruby:Versions} used, but is not defined -dpkg-gencontrol: warning: package ruby-rspec-core: substitution variable ${ruby:Depends} unused, but is defined dpkg-gencontrol: warning: Depends field of package ruby-rspec: substitution variable ${shlibs:Depends} used, but is not defined -dpkg-gencontrol: warning: package ruby-rspec: substitution variable ${ruby:Versions} used, but is not defined dpkg-gencontrol: warning: Depends field of package ruby-rspec-support: substitution variable ${shlibs:Depends} used, but is not defined -dpkg-gencontrol: warning: package ruby-rspec: substitution variable ${ruby:Depends} unused, but is defined dpkg-gencontrol: warning: package ruby-rspec-support: substitution variable ${ruby:Versions} used, but is not defined -dpkg-gencontrol: warning: Depends field of package ruby-rspec-expectations: substitution variable ${shlibs:Depends} used, but is not defined -dpkg-gencontrol: warning: package ruby-rspec-expectations: substitution variable ${ruby:Versions} used, but is not defined -dpkg-gencontrol: warning: package ruby-rspec-expectations: substitution variable ${ruby:Depends} unused, but is defined +dpkg-gencontrol: warning: package ruby-rspec: substitution variable ${ruby:Versions} used, but is not defined +dpkg-gencontrol: warning: package ruby-rspec: substitution variable ${ruby:Depends} unused, but is defined +dpkg-gencontrol: warning: Depends field of package ruby-rspec-core: substitution variable ${shlibs:Depends} used, but is not defined +dpkg-gencontrol: warning: package ruby-rspec-core: substitution variable ${ruby:Versions} used, but is not defined +dpkg-gencontrol: warning: package ruby-rspec-core: substitution variable ${ruby:Depends} unused, but is defined dh_md5sums -O--buildsystem=ruby dh_builddeb -O--buildsystem=ruby -dpkg-deb: building package 'ruby-rspec' in '../ruby-rspec_3.13.0c0e0m0s1-2_all.deb'. dpkg-deb: building package 'ruby-rspec-core' in '../ruby-rspec-core_3.13.0c0e0m0s1-2_all.deb'. +dpkg-deb: building package 'ruby-rspec' in '../ruby-rspec_3.13.0c0e0m0s1-2_all.deb'. dpkg-deb: building package 'ruby-rspec-expectations' in '../ruby-rspec-expectations_3.13.0c0e0m0s1-2_all.deb'. dpkg-deb: building package 'ruby-rspec-mocks' in '../ruby-rspec-mocks_3.13.0c0e0m0s1-2_all.deb'. dpkg-deb: building package 'ruby-rspec-support' in '../ruby-rspec-support_3.13.0c0e0m0s1-2_all.deb'. @@ -8795,12 +8830,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/1158064/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1158064/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/2740164 and its subdirectories -I: Current time: Wed Oct 30 15:55:08 -12 2024 -I: pbuilder-time-stamp: 1730346908 +I: removing directory /srv/workspace/pbuilder/1158064 and its subdirectories +I: Current time: Thu Dec 4 00:19:32 +14 2025 +I: pbuilder-time-stamp: 1764757172