Diff of the two buildlogs: -- --- b1/build.log 2024-05-07 23:00:13.899884858 +0000 +++ b2/build.log 2024-05-07 23:13:52.261035193 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue May 7 10:53:52 -12 2024 -I: pbuilder-time-stamp: 1715122432 +I: Current time: Wed May 8 13:00:27 +14 2024 +I: pbuilder-time-stamp: 1715122827 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/6948/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/18057/tmp/hooks/D01_modify_environment starting +debug: Running on cbxi4a. +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 May 7 23:01 /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/18057/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/18057/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='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=3 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='armhf' + 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]="21" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=4 ' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='dd9623bbe1804f7c92677f3463cb9319' - 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='6948' - PS1='# ' - PS2='> ' + INVOCATION_ID=ba6205ce47be46bbaa7a1f68d5ea69ee + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + 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=18057 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.w06UOts9/pbuilderrc_XcKi --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.w06UOts9/b1 --logfile b1/build.log ruby-rspec_3.13.0c0e0m0s1-2.dsc' - SUDO_GID='113' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:3142/' + 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.w06UOts9/pbuilderrc_GVL0 --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.w06UOts9/b2 --logfile b2/build.log ruby-rspec_3.13.0c0e0m0s1-2.dsc' + SUDO_GID=113 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:3142/ I: uname -a - Linux virt64c 6.1.0-21-arm64 #1 SMP Debian 6.1.90-1 (2024-05-03) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-21-armmp #1 SMP Debian 6.1.90-1 (2024-05-03) armv7l GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 7 11:24 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/6948/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 May 6 11:27 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/18057/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -322,7 +354,7 @@ Get: 167 http://deb.debian.org/debian trixie/main armhf ruby-nokogiri armhf 1.16.2+dfsg-1 [247 kB] Get: 168 http://deb.debian.org/debian trixie/main armhf ruby-rr all 3.1.0-1 [40.2 kB] Get: 169 http://deb.debian.org/debian trixie/main armhf ruby-thread-order all 1.1.0-1.1 [5336 B] -Fetched 56.7 MB in 3s (21.5 MB/s) +Fetched 56.7 MB in 4s (13.4 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.11-minimal:armhf. (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 ... 19444 files and directories currently installed.) @@ -882,8 +914,8 @@ Setting up tzdata (2024a-3) ... Current default time zone: 'Etc/UTC' -Local time is now: Tue May 7 22:56:04 UTC 2024. -Universal Time is now: Tue May 7 22:56:04 UTC 2024. +Local time is now: Tue May 7 23:03:03 UTC 2024. +Universal Time is now: Tue May 7 23:03:03 UTC 2024. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up liberror-perl (0.17029-2) ... @@ -1032,7 +1064,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/18057/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/18057/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 @@ -1071,13 +1107,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/d20240507-19590-gi6hun/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240508-27184-611lbe/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/d20240507-19590-gi6hun/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/d20240508-27184-611lbe/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 @@ -1096,7 +1132,7 @@ find lib/ -type d -empty -delete cd - cd - -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240507-19590-dn32oc/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240508-27184-ugwaig/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: @@ -1106,7 +1142,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/d20240507-19590-dn32oc/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/d20240508-27184-ugwaig/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 @@ -1203,7 +1239,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/d20240507-19590-cismi8/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240508-27184-4vfbys/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: @@ -1216,7 +1252,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/d20240507-19590-cismi8/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/d20240508-27184-4vfbys/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 @@ -1282,7 +1318,7 @@ find lib/ -type d -empty -delete cd - cd - -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240507-19590-ezs4ci/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240508-27184-gbbjuk/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: @@ -1295,7 +1331,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/d20240507-19590-ezs4ci/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/d20240508-27184-gbbjuk/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 @@ -1353,7 +1389,7 @@ find lib/ -type d -empty -delete cd - cd - -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240507-19590-53h7l8/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240508-27184-if2jrb/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: @@ -1363,7 +1399,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/d20240507-19590-53h7l8/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/d20240508-27184-if2jrb/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 @@ -1430,7 +1466,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/arm-linux-gnueabihf/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/arm-linux-gnueabihf/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 ∙∙∙∙∙∙∙∙∙∙∙∙∙∙ @@ -1441,20 +1477,16 @@ /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 47509 -.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*............................................................................................................................................................................................................................................................................................................................................................................................................*...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*........................................................................................................................... +Randomized with seed 50993 +.................................................................................................................................................................................................................................................................................................................................................................................................................................................*......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*........................................................... Pending: (Failures listed here are expected and do not affect your suite's status) - 1) 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 - - 2) RSpec::Core::Formatters::HtmlFormatter produced HTML with mathn loaded is identical to the one we designed manually + 1) RSpec::Core::Formatters::HtmlFormatter produced HTML with mathn loaded is identical to the one we designed manually # lib/mathn.rb is deprecated in Ruby 2.2 # ./spec/rspec/core/formatters/html_formatter_spec.rb:68 - 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") @@ -1463,10 +1495,14 @@ (compared using ==) -Finished in 1 minute 16.35 seconds (files took 4.45 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 4 minutes 0.7 seconds (files took 16.77 seconds to load) 2198 examples, 0 failures, 3 pending -Randomized with seed 47509 +Randomized with seed 50993 cd - @@ -1477,15 +1513,14 @@ 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 59056 -.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................fatal: not a git repository (or any of the parent directories): .git -..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................********................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. +Randomized with seed 55214 +....................................................................................********.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 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 fails if target doesn't have a key and we expect nil + 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 # 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 2) #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 @@ -1495,32 +1530,32 @@ # 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 - 4) #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 + 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 # 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:78 - 5) #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 + 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 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:78 + # ./spec/rspec/matchers/built_in/include_spec.rb:129 - 6) #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 + 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 # 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:89 7) #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:82 - 8) #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 + 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 # 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:101 22 deprecation warnings total -Finished in 18.79 seconds (files took 3.32 seconds to load) +Finished in 59.58 seconds (files took 8.54 seconds to load) 2400 examples, 0 failures, 8 pending -Randomized with seed 59056 +Randomized with seed 55214 cd - @@ -1532,7171 +1567,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 2246 +Randomized with seed 48562 ************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************* Pending: (Failures listed here are expected and do not affect your suite's status) - 1) A partial double names the class in the failure message + 1) 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/partial_double_spec.rb:12 + # ./spec/rspec/mocks/space_spec.rb:241 - 2) A partial double clears message expectations when `dup`ed + 2) 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/partial_double_spec.rb:168 + # ./spec/rspec/mocks/space_spec.rb:108 - 3) A partial double shares message expectations with clone + 3) 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/partial_double_spec.rb:160 + # ./spec/rspec/mocks/space_spec.rb:229 - 4) A partial double allows `respond_to?` to be stubbed + 4) 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/partial_double_spec.rb:46 + # ./spec/rspec/mocks/space_spec.rb:120 - 5) A partial double can create a positive message expectation + 5) 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/partial_double_spec.rb:95 + # ./spec/rspec/mocks/space_spec.rb:154 - 6) A partial double can accept a hash as a message argument + 6) 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/partial_double_spec.rb:79 + # ./spec/rspec/mocks/space_spec.rb:147 - 7) A partial double does not conflict with @options in the object + 7) 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/partial_double_spec.rb:26 + # ./spec/rspec/mocks/space_spec.rb:138 - 8) A partial double verifies the method was called when expecting a message + 8) 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/partial_double_spec.rb:112 + # ./spec/rspec/mocks/space_spec.rb:154 - 9) 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 + 9) 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/partial_double_spec.rb:145 + # ./spec/rspec/mocks/space_spec.rb:138 - 10) A partial double allows a class and a subclass to both be stubbed + 10) 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/partial_double_spec.rb:100 + # ./spec/rspec/mocks/space_spec.rb:147 - 11) A partial double names the class in the failure message when expectation is on class + 11) 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/partial_double_spec.rb:19 + # ./spec/rspec/mocks/space_spec.rb:86 - 12) A partial double allows `class` to be stubbed even when `any_instance` has already been used + 12) 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/partial_double_spec.rb:32 + # ./spec/rspec/mocks/space_spec.rb:97 - 13) A partial double uses reports nil in the error message + 13) 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/partial_double_spec.rb:132 + # ./spec/rspec/mocks/space_spec.rb:69 - 14) A partial double can disallow messages from being received + 14) 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/partial_double_spec.rb:64 + # ./spec/rspec/mocks/space_spec.rb:50 - 15) A partial double can expect a message and set a return value + 15) 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/partial_double_spec.rb:74 + # ./spec/rspec/mocks/space_spec.rb:61 - 16) A partial double does not create an any_instance recorder when a message is allowed + 16) 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/partial_double_spec.rb:6 + # ./spec/rspec/mocks/space_spec.rb:166 - 17) A partial double can accept an inner hash as a message argument + 17) 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/partial_double_spec.rb:86 + # ./spec/rspec/mocks/space_spec.rb:171 - 18) A partial double can accept the string form of a message for a positive message expectation + 18) 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/partial_double_spec.rb:119 + # ./spec/rspec/mocks/space_spec.rb:176 - 19) A partial double can accept the string form of a message for a negative message expectation + 19) 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/partial_double_spec.rb:124 + # ./spec/rspec/mocks/space_spec.rb:192 - 20) A class double with the doubled class not loaded allows any method to be stubbed + 20) 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/verifying_doubles/class_double_with_class_not_loaded_spec.rb:19 + # ./spec/rspec/mocks/space_spec.rb:182 - 21) A class double with the doubled class not loaded trying to raise a class_double raises a TypeError + 21) 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/verifying_doubles/class_double_with_class_not_loaded_spec.rb:25 + # ./spec/rspec/mocks/space_spec.rb:219 - 22) A class double with the doubled class not loaded includes the double name in errors for unexpected messages + 22) 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/verifying_doubles/class_double_with_class_not_loaded_spec.rb:12 + # ./spec/rspec/mocks/space_spec.rb:212 - 23) A class double with the doubled class not loaded when stubbing a private module method can mock private module methods + 23) 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/verifying_doubles/class_double_with_class_not_loaded_spec.rb:46 + # ./spec/rspec/mocks/space_spec.rb:206 - 24) 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)` + 24) 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/verifying_doubles/class_double_with_class_not_loaded_spec.rb:65 + # ./spec/rspec/mocks/space_spec.rb:25 - 25) 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')` + 25) 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/verifying_doubles/class_double_with_class_not_loaded_spec.rb:60 + # ./spec/rspec/mocks/space_spec.rb:39 - 26) and_wrap_original on a pure test double raises an error + 26) 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/and_wrap_original_spec.rb:92 + # ./spec/rspec/mocks/space_spec.rb:9 - 27) and_wrap_original on a pure test double raises an error even if the double object responds to the message + 27) 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/and_wrap_original_spec.rb:100 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:100 - 28) 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 + 28) 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/and_wrap_original_spec.rb:38 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:106 - 29) 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 + 29) 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/and_wrap_original_spec.rb:66 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:93 - 30) 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 + 30) 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/and_wrap_original_spec.rb:29 + # ./spec/rspec/mocks/mutate_const_spec.rb:221 - 31) 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 + 31) 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/and_wrap_original_spec.rb:22 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 32) 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 + 32) 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/and_wrap_original_spec.rb:58 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 33) 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 + 33) 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/and_wrap_original_spec.rb:52 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 34) 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 + 34) 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/and_wrap_original_spec.rb:14 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 35) 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 + 35) 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/and_wrap_original_spec.rb:45 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 36) 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 + 36) 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/and_wrap_original_spec.rb:58 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 37) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along the message arguments + 37) 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/and_wrap_original_spec.rb:38 + # ./spec/rspec/mocks/mutate_const_spec.rb:398 - 38) 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 + 38) 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/and_wrap_original_spec.rb:14 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 39) 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 + 39) 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/and_wrap_original_spec.rb:22 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 40) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along any supplied block + 40) 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/and_wrap_original_spec.rb:45 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 41) 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 + 41) 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/and_wrap_original_spec.rb:66 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 42) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original ignores previous stubs + 42) 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/and_wrap_original_spec.rb:52 + # ./spec/rspec/mocks/mutate_const_spec.rb:387 - 43) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along the original method + 43) 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/and_wrap_original_spec.rb:29 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 44) a double _not_ acting as a null object says it does not respond to messages it doesn't understand + 44) 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/null_object_double_spec.rb:8 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 45) a double _not_ acting as a null object raises an error when interpolated in a string as an integer + 45) 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/null_object_double_spec.rb:17 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 46) a double _not_ acting as a null object says it responds to messages it does understand + 46) 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/null_object_double_spec.rb:12 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 47) A partial class mock that has been subclassed cleans up stubs during #reset to prevent leakage onto subclasses between examples + 47) 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/partial_double_spec.rb:278 + # ./spec/rspec/mocks/mutate_const_spec.rb:427 - 48) A partial class mock that has been subclassed stubbing a base class class method returns the value for the stub on the base class + 48) 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/partial_double_spec.rb:292 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 49) A partial class mock that has been subclassed stubbing a base class class method returns the value for the descendent class + 49) 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/partial_double_spec.rb:296 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 50) Expected argument verification (when `#with` is called) when doubling an unloaded class allows any arguments + 50) 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/verifying_doubles/expected_arg_verification_spec.rb:11 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 51) Expected argument verification (when `#with` is called) when doubling a loaded class does not cover required args when `any_args` is not used + 51) 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/verifying_doubles/expected_arg_verification_spec.rb:97 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 52) 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 + 52) 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/verifying_doubles/expected_arg_verification_spec.rb:72 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 53) 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 + 53) 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/verifying_doubles/expected_arg_verification_spec.rb:58 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 54) 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 + 54) 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/verifying_doubles/expected_arg_verification_spec.rb:66 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 55) 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` + 55) 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/verifying_doubles/expected_arg_verification_spec.rb:86 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 56) 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 + 56) 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/verifying_doubles/expected_arg_verification_spec.rb:80 + # ./spec/rspec/mocks/mutate_const_spec.rb:409 - 57) 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 + 57) 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/verifying_doubles/expected_arg_verification_spec.rb:119 + # ./spec/rspec/mocks/mutate_const_spec.rb:418 - 58) 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 + 58) 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/verifying_doubles/expected_arg_verification_spec.rb:29 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 59) 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 + 59) 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/verifying_doubles/expected_arg_verification_spec.rb:37 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 60) 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 + 60) 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/verifying_doubles/expected_arg_verification_spec.rb:45 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 61) 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 + 61) 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/verifying_doubles/expected_arg_verification_spec.rb:134 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 62) 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) + 62) 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/verifying_doubles/expected_arg_verification_spec.rb:128 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 63) 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 + 63) 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/verifying_doubles/expected_arg_verification_spec.rb:150 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 64) 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 + 64) 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/verifying_doubles/expected_arg_verification_spec.rb:105 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 65) 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 + 65) 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/verifying_doubles/expected_arg_verification_spec.rb:111 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 66) a message expectation with multiple invoke handlers with a specified count equal to the number of values returns values in order to consecutive calls + 66) 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/multiple_invoke_handler_spec.rb:47 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 67) only stashing the original method keeps the original method intact after multiple expectations are added on the same method + 67) 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/stash_spec.rb:12 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 68) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher describes itself properly + 68) 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/hash_excluding_matcher_spec.rb:6 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 69) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches against classes inheriting from Hash + 69) 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/hash_excluding_matcher_spec.rb:31 + # ./spec/rspec/mocks/mutate_const_spec.rb:274 - 70) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash with the specified key, but different value + 70) 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/hash_excluding_matcher_spec.rb:15 + # ./spec/rspec/mocks/mutate_const_spec.rb:256 - 71) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches an empty hash + 71) 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/hash_excluding_matcher_spec.rb:23 + # ./spec/rspec/mocks/mutate_const_spec.rb:228 - 72) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash without any of the specified keys + 72) 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/hash_excluding_matcher_spec.rb:27 + # ./spec/rspec/mocks/mutate_const_spec.rb:282 - 73) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash without the specified key, given as anything() + 73) 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/hash_excluding_matcher_spec.rb:19 + # ./spec/rspec/mocks/mutate_const_spec.rb:298 - 74) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash without the specified key + 74) 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/hash_excluding_matcher_spec.rb:11 + # ./spec/rspec/mocks/mutate_const_spec.rb:313 - 75) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with the specified key + 75) 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/hash_excluding_matcher_spec.rb:49 + # ./spec/rspec/mocks/mutate_const_spec.rb:238 - 76) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with one key/value pair included + 76) 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/hash_excluding_matcher_spec.rb:61 + # ./spec/rspec/mocks/mutate_const_spec.rb:264 - 77) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with one of the specified keys + 77) 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/hash_excluding_matcher_spec.rb:53 + # ./spec/rspec/mocks/mutate_const_spec.rb:247 - 78) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with the specified key/value pair + 78) 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/hash_excluding_matcher_spec.rb:45 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 79) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with some of the specified keys + 79) 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/hash_excluding_matcher_spec.rb:57 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 80) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a non-hash + 80) 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/hash_excluding_matcher_spec.rb:37 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 81) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with a specified key + 81) 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/hash_excluding_matcher_spec.rb:41 + # ./spec/rspec/mocks/mutate_const_spec.rb:332 - 82) #allow_message_expectations_on_nil does not affect subsequent examples + 82) 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/nil_expectation_warning_spec.rb:70 + # ./spec/rspec/mocks/mutate_const_spec.rb:342 - 83) #allow_message_expectations_on_nil doesnt error when marshalled + 83) 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/nil_expectation_warning_spec.rb:85 + # ./spec/rspec/mocks/mutate_const_spec.rb:347 - 84) Partially mocking an object that defines ==, after another mock has been defined does not raise an error when stubbing the object + 84) 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/partial_double_spec.rb:268 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 85) Using rspec-mocks features in before(:all) blocks #expect(...).to receive raises an error with a useful message + 85) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 86) Using rspec-mocks features in before(:all) blocks #hide_const(for an undefined const) raises an error with a useful message + 86) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 87) Using rspec-mocks features in before(:all) blocks #allow(...).to receive raises an error with a useful message + 87) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 88) Using rspec-mocks features in before(:all) blocks #expect_any_instance_of(...).to receive raises an error with a useful message + 88) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 89) Using rspec-mocks features in before(:all) blocks #hide_const(for a defined const) raises an error with a useful message + 89) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 90) Using rspec-mocks features in before(:all) blocks #hide_const(for a defined const) does not hide the const + 90) 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/before_all_spec.rb:30 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 91) Using rspec-mocks features in before(:all) blocks #allow_any_instance_of(...).to receive raises an error with a useful message + 91) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 92) Using rspec-mocks features in before(:all) blocks #stub_const raises an error with a useful message + 92) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 93) Using rspec-mocks features in before(:all) blocks #stub_const does not stub the const + 93) 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/before_all_spec.rb:10 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 94) Using rspec-mocks features in before(:all) blocks allow(...).to receive_message_chain raises an error with a useful message + 94) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 95) allow_any_instance_of(...).to receive_messages(:a => 1, :b => 2) updates stubs on instances with existing stubs + 95) 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/matchers/receive_messages_spec.rb:55 + # ./spec/rspec/mocks/mutate_const_spec.rb:202 - 96) allow_any_instance_of(...).to receive_messages(:a => 1, :b => 2) allows the object to respond to multiple messages + 96) 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/matchers/receive_messages_spec.rb:49 + # ./spec/rspec/mocks/mutate_const_spec.rb:193 - 97) allow_any_instance_of(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given + 97) 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/matchers/receive_messages_spec.rb:4 + # ./spec/rspec/mocks/mutate_const_spec.rb:166 - 98) 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 + 98) 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/matchers/receive_messages_spec.rb:10 + # ./spec/rspec/mocks/mutate_const_spec.rb:145 - 99) A class double with the doubled class loaded checks that stubbed methods are invoked with the correct arity + 99) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:50 + # ./spec/rspec/mocks/mutate_const_spec.rb:134 - 100) A class double with the doubled class loaded correctly verifies expectations when constant is removed + 100) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:99 + # ./spec/rspec/mocks/mutate_const_spec.rb:139 - 101) A class double with the doubled class loaded gives a descriptive error message for NoMethodError + 101) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:43 + # ./spec/rspec/mocks/mutate_const_spec.rb:82 - 102) A class double with the doubled class loaded only allows class methods that exist to be stubbed + 102) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:12 + # ./spec/rspec/mocks/mutate_const_spec.rb:87 - 103) A class double with the doubled class loaded allows dynamically defined class method mocks with arguments + 103) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:64 + # ./spec/rspec/mocks/mutate_const_spec.rb:93 - 104) A class double with the doubled class loaded doesn't suggest `instance_double` when a non-instance method is stubbed' + 104) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:38 + # ./spec/rspec/mocks/mutate_const_spec.rb:93 - 105) A class double with the doubled class loaded can transfer nested constants to the double + 105) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:92 + # ./spec/rspec/mocks/mutate_const_spec.rb:87 - 106) A class double with the doubled class loaded only allows defined methods for null objects + 106) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:108 + # ./spec/rspec/mocks/mutate_const_spec.rb:82 - 107) A class double with the doubled class loaded allows dynamically defined class methods to be expected + 107) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:71 + # ./spec/rspec/mocks/mutate_const_spec.rb:93 - 108) A class double with the doubled class loaded allows class to be specified by constant + 108) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:76 + # ./spec/rspec/mocks/mutate_const_spec.rb:87 - 109) A class double with the doubled class loaded only allows class methods that exist to be expected + 109) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:20 + # ./spec/rspec/mocks/mutate_const_spec.rb:82 - 110) A class double with the doubled class loaded allows dynamically defined class method stubs with arguments + 110) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:57 + # ./spec/rspec/mocks/mutate_const_spec.rb:82 - 111) A class double with the doubled class loaded suggests using `instance_double` when an instance method is stubbed + 111) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:33 + # ./spec/rspec/mocks/mutate_const_spec.rb:93 - 112) A class double with the doubled class loaded validates `with` args against the method signature when stubbing a method + 112) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:123 + # ./spec/rspec/mocks/mutate_const_spec.rb:87 - 113) A class double with the doubled class loaded verifies arguments for null objects + 113) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:115 + # ./spec/rspec/mocks/mutate_const_spec.rb:145 - 114) A class double with the doubled class loaded can replace existing constants for the duration of the test + 114) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:81 + # ./spec/rspec/mocks/mutate_const_spec.rb:139 - 115) A class double with the doubled class loaded when `.new` is stubbed uses the method signature from `#initialize` for arg verification + 115) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:135 + # ./spec/rspec/mocks/mutate_const_spec.rb:134 - 116) 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 + 116) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:142 + # ./spec/rspec/mocks/mutate_const_spec.rb:139 - 117) 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 + 117) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:167 + # ./spec/rspec/mocks/mutate_const_spec.rb:134 - 118) A class double with the doubled class loaded when `.new` is stubbed on a class that has undefined `new` prevents it from being stubbed + 118) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:154 + # ./spec/rspec/mocks/mutate_const_spec.rb:145 - 119) A class double with the doubled class loaded when given a class that has an overridden `#name` method can still stub the const + 119) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:197 + # ./spec/rspec/mocks/configuration_spec.rb:12 - 120) A class double with the doubled class loaded when given a class that has an overridden `#name` method properly verifies + 120) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:193 + # ./spec/rspec/mocks/configuration_spec.rb:177 - 121) 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)` + 121) 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:217 + # ./spec/rspec/mocks/configuration_spec.rb:36 - 122) 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')` + 122) 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 - 123) A class double with the doubled class loaded when given an anonymous class properly verifies + 123) 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:184 + # ./spec/rspec/mocks/configuration_spec.rb:62 - 124) RSpec::Mocks::ErrorGenerator formatting arguments formats time objects with increased precision + 124) 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/error_generator_spec.rb:31 + # ./spec/rspec/mocks/configuration_spec.rb:54 - 125) RSpec::Mocks::ErrorGenerator formatting arguments on matcher objects on default method stub error message display starts in new line + 125) 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/error_generator_spec.rb:79 + # ./spec/rspec/mocks/configuration_spec.rb:50 - 126) RSpec::Mocks::ErrorGenerator formatting arguments on matcher objects that define description uses the object's description + 126) 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/error_generator_spec.rb:52 + # ./spec/rspec/mocks/configuration_spec.rb:66 - 127) RSpec::Mocks::ErrorGenerator formatting arguments on matcher objects that do not define description does not use the object's description + 127) 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/error_generator_spec.rb:62 + # ./spec/rspec/mocks/configuration_spec.rb:123 - 128) RSpec::Mocks::ErrorGenerator formatting arguments on non-matcher objects that define #description does not use the object's description + 128) 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/error_generator_spec.rb:42 + # ./spec/rspec/mocks/configuration_spec.rb:111 - 129) 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) + 129) 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/error_generator_spec.rb:15 + # ./spec/rspec/mocks/configuration_spec.rb:115 - 130) with default syntax configuration includes the call site in the deprecation warning + 130) 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/should_syntax_spec.rb:564 + # ./spec/rspec/mocks/configuration_spec.rb:119 - 131) with default syntax configuration warns about should not once, regardless of how many times it is called + 131) 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/should_syntax_spec.rb:487 + # ./spec/rspec/mocks/configuration_spec.rb:107 - 132) with default syntax configuration warns about unstubbing once, regardless of how many times it is called + 132) 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/should_syntax_spec.rb:541 + # ./spec/rspec/mocks/configuration_spec.rb:76 - 133) with default syntax configuration warns about stubbing once, regardless of how many times it is called + 133) 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/should_syntax_spec.rb:496 + # ./spec/rspec/mocks/configuration_spec.rb:97 - 134) with default syntax configuration it warns about should once, regardless of how many times it is called + 134) 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/should_syntax_spec.rb:475 + # ./spec/rspec/mocks/configuration_spec.rb:80 - 135) with default syntax configuration doesn't warn about stubbing after a reset and setting should + 135) 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/should_syntax_spec.rb:554 + # ./spec/rspec/mocks/configuration_spec.rb:88 - 136) RSpec::Mocks::Matchers::Receive has a description before being matched + 136) 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/matchers/receive_spec.rb:636 + # ./spec/rspec/mocks/configuration_spec.rb:92 - 137) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance does not expect the message to be received + 137) 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/matchers/receive_spec.rb:233 + # ./spec/rspec/mocks/configuration_spec.rb:84 - 138) 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` + 138) 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_spec.rb:182 + # ./spec/rspec/mocks/configuration_spec.rb:36 - 139) 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 + 139) 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/matchers/receive_spec.rb:49 + # ./spec/rspec/mocks/configuration_spec.rb:111 - 140) 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 + 140) 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/matchers/receive_spec.rb:54 + # ./spec/rspec/mocks/configuration_spec.rb:115 - 141) 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 + 141) 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/matchers/receive_spec.rb:221 + # ./spec/rspec/mocks/configuration_spec.rb:107 - 142) 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 + 142) 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_spec.rb:211 + # ./spec/rspec/mocks/configuration_spec.rb:119 - 143) 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 + 143) 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/matchers/receive_spec.rb:63 + # ./spec/rspec/mocks/configuration_spec.rb:123 - 144) 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 + 144) 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/matchers/receive_spec.rb:203 + # ./spec/rspec/mocks/configuration_spec.rb:62 - 145) 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 + 145) 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/matchers/receive_spec.rb:177 + # ./spec/rspec/mocks/configuration_spec.rb:66 - 146) 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 + 146) 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/matchers/receive_spec.rb:169 + # ./spec/rspec/mocks/configuration_spec.rb:58 - 147) 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 + 147) 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/matchers/receive_spec.rb:197 + # ./spec/rspec/mocks/configuration_spec.rb:50 - 148) 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 + 148) 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/matchers/receive_spec.rb:191 + # ./spec/rspec/mocks/configuration_spec.rb:54 - 149) 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 + 149) 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/matchers/receive_spec.rb:133 + # ./spec/rspec/mocks/configuration_spec.rb:84 - 150) 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 + 150) 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/matchers/receive_spec.rb:90 + # ./spec/rspec/mocks/configuration_spec.rb:76 - 151) 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 + 151) 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/matchers/receive_spec.rb:98 + # ./spec/rspec/mocks/configuration_spec.rb:88 - 152) 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 + 152) 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/matchers/receive_spec.rb:126 + # ./spec/rspec/mocks/configuration_spec.rb:92 - 153) 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 + 153) 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/matchers/receive_spec.rb:81 + # ./spec/rspec/mocks/configuration_spec.rb:80 - 154) 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 + 154) 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/matchers/receive_spec.rb:153 + # ./spec/rspec/mocks/configuration_spec.rb:97 - 155) 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 + 155) 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/matchers/receive_spec.rb:159 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:122 - 156) 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 + 156) 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/matchers/receive_spec.rb:118 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:116 - 157) 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 + 157) 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/matchers/receive_spec.rb:106 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:109 - 158) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like resets partial mocks of any instance cleanly removes the method double + 158) 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/matchers/receive_spec.rb:347 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:5 - 159) 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 + 159) 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/matchers/receive_spec.rb:268 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:9 - 160) 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 + 160) 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/matchers/receive_spec.rb:611 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:48 - 161) 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 + 161) 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/matchers/receive_spec.rb:254 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:36 - 162) 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 + 162) 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/matchers/receive_spec.rb:260 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:32 - 163) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation provides a useful matcher description + 163) 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/matchers/receive_spec.rb:278 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:20 - 164) 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 + 164) 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/matchers/receive_spec.rb:177 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:28 - 165) 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 + 165) 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/matchers/receive_spec.rb:211 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:16 - 166) 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 + 166) 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/matchers/receive_spec.rb:221 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:24 - 167) 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 + 167) 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/matchers/receive_spec.rb:54 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:40 - 168) 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 + 168) 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/matchers/receive_spec.rb:63 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:60 - 169) 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` + 169) 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/matchers/receive_spec.rb:182 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:56 - 170) 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 + 170) 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/matchers/receive_spec.rb:203 + # ./spec/rspec/mocks/stub_implementation_spec.rb:30 - 171) 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 + 171) 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/matchers/receive_spec.rb:191 + # ./spec/rspec/mocks/stub_implementation_spec.rb:47 - 172) 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 + 172) 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/matchers/receive_spec.rb:197 + # ./spec/rspec/mocks/stub_implementation_spec.rb:38 - 173) 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 + 173) 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/matchers/receive_spec.rb:169 + # ./spec/rspec/mocks/stub_implementation_spec.rb:58 - 174) 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 + 174) 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/matchers/receive_spec.rb:49 + # ./spec/rspec/mocks/stub_implementation_spec.rb:71 - 175) 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 + 175) 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/matchers/receive_spec.rb:153 + # ./spec/rspec/mocks/stub_implementation_spec.rb:97 - 176) 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 + 176) 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/matchers/receive_spec.rb:118 + # ./spec/rspec/mocks/stub_implementation_spec.rb:58 - 177) 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 + 177) 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/matchers/receive_spec.rb:126 + # ./spec/rspec/mocks/stub_implementation_spec.rb:71 - 178) 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 + 178) 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/matchers/receive_spec.rb:133 + # ./spec/support/before_all_shared_example_group.rb:11 - 179) 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 + 179) 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/matchers/receive_spec.rb:106 + # ./spec/support/before_all_shared_example_group.rb:11 - 180) 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 + 180) 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/matchers/receive_spec.rb:159 + # ./spec/support/before_all_shared_example_group.rb:11 - 181) 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 + 181) 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/matchers/receive_spec.rb:98 + # ./spec/support/before_all_shared_example_group.rb:11 - 182) 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 + 182) 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/matchers/receive_spec.rb:90 + # ./spec/rspec/mocks/before_all_spec.rb:10 - 183) 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 + 183) 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/matchers/receive_spec.rb:81 + # ./spec/support/before_all_shared_example_group.rb:11 - 184) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like resets partial mocks of any instance cleanly removes the method double + 184) 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/matchers/receive_spec.rb:347 + # ./spec/support/before_all_shared_example_group.rb:11 - 185) 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 + 185) 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/matchers/receive_spec.rb:240 + # ./spec/rspec/mocks/before_all_spec.rb:30 - 186) 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 + 186) 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/matchers/receive_spec.rb:293 + # ./spec/support/before_all_shared_example_group.rb:11 - 187) 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 + 187) 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/matchers/receive_spec.rb:288 + # ./spec/support/before_all_shared_example_group.rb:11 - 188) 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` + 188) 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/matchers/receive_spec.rb:301 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 189) 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 + 189) 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/matchers/receive_spec.rb:309 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:595 - 190) 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` + 190) 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/matchers/receive_spec.rb:322 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:571 - 191) 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 + 191) 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/matchers/receive_spec.rb:736 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 192) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework first can use `expect` with any matcher + 192) 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/matchers/receive_spec.rb:730 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 193) 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` + 193) 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/matchers/receive_spec.rb:662 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 194) 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 + 194) 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/matchers/receive_spec.rb:642 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:576 - 195) 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` + 195) 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/matchers/receive_spec.rb:672 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:584 - 196) 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 + 196) 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/matchers/receive_spec.rb:652 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 197) RSpec::Mocks::Matchers::Receive allow(...).not_to receive behaves like an expect syntax negative allowance is disabled since this expression is confusing + 197) 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/matchers/receive_spec.rb:240 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 198) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like resets partial mocks cleanly removes the method double + 198) 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/matchers/receive_spec.rb:337 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:604 - 199) 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 + 199) 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/matchers/receive_spec.rb:446 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:609 - 200) 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 + 200) 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/matchers/receive_spec.rb:451 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:645 - 201) 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 + 201) 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/matchers/receive_spec.rb:431 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:637 - 202) 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 + 202) 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/matchers/receive_spec.rb:439 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:629 - 203) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like handles frozen objects cleanly when adding the method double raises clear error + 203) 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/matchers/receive_spec.rb:360 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:653 - 204) 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 + 204) 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/matchers/receive_spec.rb:382 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:156 - 205) 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 + 205) 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/matchers/receive_spec.rb:375 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:70 - 206) 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 + 206) 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/matchers/receive_spec.rb:395 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:80 - 207) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance does not expect the message to be received + 207) 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/matchers/receive_spec.rb:233 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:90 - 208) 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 + 208) 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/matchers/receive_spec.rb:177 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:188 - 209) 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 + 209) 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/matchers/receive_spec.rb:49 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:35 - 210) 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 + 210) 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/matchers/receive_spec.rb:63 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:183 - 211) 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 + 211) 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/matchers/receive_spec.rb:221 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:195 - 212) 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` + 212) 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/matchers/receive_spec.rb:182 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:124 - 213) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does support inherited matchers + 213) 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/matchers/receive_spec.rb:197 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:30 - 214) 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 + 214) 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/matchers/receive_spec.rb:203 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:62 - 215) 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 + 215) 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/matchers/receive_spec.rb:169 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:111 - 216) 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 + 216) 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/matchers/receive_spec.rb:54 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:100 - 217) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does not support other matchers + 217) 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/matchers/receive_spec.rb:191 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:54 - 218) 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 + 218) 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/matchers/receive_spec.rb:211 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:43 - 219) 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 + 219) 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/matchers/receive_spec.rb:106 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:146 - 220) 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 + 220) 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/matchers/receive_spec.rb:153 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:25 - 221) 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 + 221) 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/matchers/receive_spec.rb:118 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:134 - 222) 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 + 222) 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/matchers/receive_spec.rb:133 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:169 - 223) 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 + 223) 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/matchers/receive_spec.rb:90 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:174 - 224) 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 + 224) 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/matchers/receive_spec.rb:159 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:297 - 225) 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 + 225) 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/matchers/receive_spec.rb:81 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:301 - 226) 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 + 226) 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/matchers/receive_spec.rb:126 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:315 - 227) 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 + 227) 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/matchers/receive_spec.rb:98 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:430 - 228) RSpec::Mocks::Matchers::Receive allow(...).to receive ordered with receive counts is not supported + 228) 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/matchers/receive_spec.rb:417 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:411 - 229) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like resets partial mocks cleanly removes the method double + 229) 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/matchers/receive_spec.rb:337 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:420 - 230) 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 + 230) 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/matchers/receive_spec.rb:382 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:327 - 231) 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 + 231) 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/matchers/receive_spec.rb:375 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:331 - 232) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like handles frozen objects cleanly when adding the method double raises clear error + 232) 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/matchers/receive_spec.rb:360 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:323 - 233) 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 + 233) 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/matchers/receive_spec.rb:395 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:361 - 234) 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 + 234) 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/matchers/receive_spec.rb:260 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:369 - 235) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation provides a useful matcher description + 235) 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/matchers/receive_spec.rb:278 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:355 - 236) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation reports the line number of expectation of unreceived message + 236) 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/matchers/receive_spec.rb:268 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:215 - 237) 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 + 237) 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/matchers/receive_spec.rb:254 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:231 - 238) 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 + 238) 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/matchers/receive_spec.rb:211 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:285 - 239) 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 + 239) 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/matchers/receive_spec.rb:63 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:273 - 240) 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` + 240) 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/matchers/receive_spec.rb:182 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:264 - 241) 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 + 241) 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/matchers/receive_spec.rb:54 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:247 - 242) 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 + 242) 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/matchers/receive_spec.rb:221 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:221 - 243) 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 + 243) 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/matchers/receive_spec.rb:169 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:239 - 244) 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 + 244) 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/matchers/receive_spec.rb:203 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:398 - 245) 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 + 245) 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/matchers/receive_spec.rb:177 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:381 - 246) 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 + 246) 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/matchers/receive_spec.rb:49 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:389 - 247) 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 + 247) 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/matchers/receive_spec.rb:98 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:347 - 248) 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 + 248) 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/matchers/receive_spec.rb:133 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:343 - 249) 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 + 249) 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/matchers/receive_spec.rb:118 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:339 - 250) 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 + 250) 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/matchers/receive_spec.rb:90 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:455 - 251) 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 + 251) 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/matchers/receive_spec.rb:106 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:447 - 252) 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 + 252) 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/matchers/receive_spec.rb:153 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:517 - 253) 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 + 253) 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/matchers/receive_spec.rb:126 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:484 - 254) 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 + 254) 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/matchers/receive_spec.rb:159 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:533 - 255) 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 + 255) 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/matchers/receive_spec.rb:81 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:538 - 256) 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 + 256) 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/matchers/receive_spec.rb:502 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:555 - 257) 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 + 257) 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/matchers/receive_spec.rb:493 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:560 - 258) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts passes with exact receive counts when the ordering is correct + 258) 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/matchers/receive_spec.rb:524 + # ./spec/rspec/mocks/and_invoke_spec.rb:35 - 259) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts fails with exact receive counts when the ordering is incorrect + 259) 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/matchers/receive_spec.rb:533 + # ./spec/rspec/mocks/and_invoke_spec.rb:7 - 260) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts passes with at least when the ordering is correct + 260) 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/matchers/receive_spec.rb:546 + # ./spec/rspec/mocks/and_invoke_spec.rb:15 - 261) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts does not result in infinite recursion when `respond_to?` is stubbed + 261) 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/matchers/receive_spec.rb:590 + # ./spec/rspec/mocks/and_invoke_spec.rb:24 - 262) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts passes with at most when the ordering is correct + 262) 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/matchers/receive_spec.rb:568 + # ./spec/rspec/mocks/standalone_spec.rb:7 - 263) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation prevents confusing double-negative expressions involving `never` + 263) 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/matchers/receive_spec.rb:322 + # ./spec/rspec/mocks/standalone_spec.rb:20 - 264) 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 + 264) 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/matchers/receive_spec.rb:293 + # ./spec/rspec/mocks/double_spec.rb:536 - 265) 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 + 265) 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/matchers/receive_spec.rb:288 + # ./spec/rspec/mocks/double_spec.rb:342 - 266) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation allows the caller to constrain the received arguments + 266) 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/matchers/receive_spec.rb:309 + # ./spec/rspec/mocks/double_spec.rb:296 - 267) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation supports `to_not` as an alias for `not_to` + 267) 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/matchers/receive_spec.rb:301 + # ./spec/rspec/mocks/double_spec.rb:553 - 268) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders warns about allow(Klass.any_instance).to receive... + 268) 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/matchers/receive_spec.rb:9 + # ./spec/rspec/mocks/double_spec.rb:559 - 269) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders includes the correct call site in the expect warning + 269) 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/matchers/receive_spec.rb:26 + # ./spec/rspec/mocks/double_spec.rb:386 - 270) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders includes the correct call site in the allow warning + 270) 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/matchers/receive_spec.rb:14 + # ./spec/rspec/mocks/double_spec.rb:87 - 271) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders warns about expect(Klass.any_instance).to receive... + 271) 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/matchers/receive_spec.rb:19 + # ./spec/rspec/mocks/double_spec.rb:290 - 272) RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations cannot use `expect` with another matcher + 272) 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/matchers/receive_spec.rb:696 + # ./spec/rspec/mocks/double_spec.rb:455 - 273) RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations can toggle the available syntax + 273) 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/matchers/receive_spec.rb:704 + # ./spec/rspec/mocks/double_spec.rb:331 - 274) 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 + 274) 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/matchers/receive_spec.rb:652 + # ./spec/rspec/mocks/double_spec.rb:210 - 275) 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 + 275) 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/matchers/receive_spec.rb:642 + # ./spec/rspec/mocks/double_spec.rb:203 - 276) 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` + 276) 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/matchers/receive_spec.rb:672 + # ./spec/rspec/mocks/double_spec.rb:326 - 277) 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` + 277) 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/matchers/receive_spec.rb:662 + # ./spec/rspec/mocks/double_spec.rb:409 - 278) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework last can use `expect` with any matcher + 278) 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/matchers/receive_spec.rb:758 + # ./spec/rspec/mocks/double_spec.rb:270 - 279) 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 + 279) 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/matchers/receive_spec.rb:652 + # ./spec/rspec/mocks/double_spec.rb:216 - 280) 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` + 280) 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/matchers/receive_spec.rb:662 + # ./spec/rspec/mocks/double_spec.rb:416 - 281) 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 + 281) 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/matchers/receive_spec.rb:642 + # ./spec/rspec/mocks/double_spec.rb:375 - 282) 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` + 282) 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/matchers/receive_spec.rb:672 + # ./spec/rspec/mocks/double_spec.rb:187 - 283) After a test double has been torn down for a plain double disallows previously mocked methods + 283) 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/expiration_spec.rb:15 + # ./spec/rspec/mocks/double_spec.rb:11 - 284) After a test double has been torn down for a plain double disallows previously stubbed methods + 284) 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/expiration_spec.rb:19 + # ./spec/rspec/mocks/double_spec.rb:621 - 285) After a test double has been torn down for a plain double disallows stubbing new methods (with receive) + 285) 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/expiration_spec.rb:23 + # ./spec/rspec/mocks/double_spec.rb:438 - 286) After a test double has been torn down for a plain double disallows stubbing new methods (with receive_messages) + 286) 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/expiration_spec.rb:29 + # ./spec/rspec/mocks/double_spec.rb:362 - 287) After a test double has been torn down for a plain double disallows stubbing new message chains + 287) 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/expiration_spec.rb:35 + # ./spec/rspec/mocks/double_spec.rb:605 - 288) After a test double has been torn down for a plain double disallows mocking new methods + 288) 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/expiration_spec.rb:41 + # ./spec/rspec/mocks/double_spec.rb:357 - 289) After a test double has been torn down for a plain double disallows being turned into a null object + 289) 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/expiration_spec.rb:47 + # ./spec/rspec/mocks/double_spec.rb:52 - 290) After a test double has been torn down for a plain double disallows being checked for nullness + 290) 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/expiration_spec.rb:51 + # ./spec/rspec/mocks/double_spec.rb:264 - 291) After a test double has been torn down for an instance_double disallows being turned into a null object + 291) 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/expiration_spec.rb:47 + # ./spec/rspec/mocks/double_spec.rb:580 - 292) After a test double has been torn down for an instance_double disallows mocking new methods + 292) 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/expiration_spec.rb:41 + # ./spec/rspec/mocks/double_spec.rb:635 - 293) After a test double has been torn down for an instance_double disallows previously mocked methods + 293) 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/expiration_spec.rb:15 + # ./spec/rspec/mocks/double_spec.rb:71 - 294) After a test double has been torn down for an instance_double disallows stubbing new message chains + 294) 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/expiration_spec.rb:35 + # ./spec/rspec/mocks/double_spec.rb:347 - 295) After a test double has been torn down for an instance_double disallows being checked for nullness + 295) 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/expiration_spec.rb:51 + # ./spec/rspec/mocks/double_spec.rb:302 - 296) After a test double has been torn down for an instance_double disallows stubbing new methods (with receive) + 296) 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/expiration_spec.rb:23 + # ./spec/rspec/mocks/double_spec.rb:321 - 297) After a test double has been torn down for an instance_double disallows stubbing new methods (with receive_messages) + 297) 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/expiration_spec.rb:29 + # ./spec/rspec/mocks/double_spec.rb:430 - 298) After a test double has been torn down for an instance_double disallows previously stubbed methods + 298) 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/expiration_spec.rb:19 + # ./spec/rspec/mocks/double_spec.rb:653 - 299) After a test double has been torn down for an object_double disallows previously mocked methods + 299) 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/expiration_spec.rb:15 + # ./spec/rspec/mocks/double_spec.rb:571 - 300) After a test double has been torn down for an object_double disallows being turned into a null object + 300) 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/expiration_spec.rb:47 + # ./spec/rspec/mocks/double_spec.rb:280 - 301) After a test double has been torn down for an object_double disallows stubbing new methods (with receive_messages) + 301) 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/expiration_spec.rb:29 + # ./spec/rspec/mocks/double_spec.rb:47 - 302) After a test double has been torn down for an object_double disallows being checked for nullness + 302) 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/expiration_spec.rb:51 + # ./spec/rspec/mocks/double_spec.rb:38 - 303) After a test double has been torn down for an object_double disallows stubbing new methods (with receive) + 303) 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/expiration_spec.rb:23 + # ./spec/rspec/mocks/double_spec.rb:197 - 304) After a test double has been torn down for an object_double disallows stubbing new message chains + 304) 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/expiration_spec.rb:35 + # ./spec/rspec/mocks/double_spec.rb:31 - 305) After a test double has been torn down for an object_double disallows previously stubbed methods + 305) 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/expiration_spec.rb:19 + # ./spec/rspec/mocks/double_spec.rb:234 - 306) After a test double has been torn down for an object_double disallows mocking new methods + 306) 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/expiration_spec.rb:41 + # ./spec/rspec/mocks/double_spec.rb:103 - 307) After a test double has been torn down for a class_double disallows stubbing new message chains + 307) 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/expiration_spec.rb:35 + # ./spec/rspec/mocks/double_spec.rb:77 - 308) After a test double has been torn down for a class_double disallows previously stubbed methods + 308) 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/expiration_spec.rb:19 + # ./spec/rspec/mocks/double_spec.rb:20 - 309) After a test double has been torn down for a class_double disallows stubbing new methods (with receive_messages) + 309) 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/expiration_spec.rb:29 + # ./spec/rspec/mocks/double_spec.rb:491 - 310) After a test double has been torn down for a class_double disallows stubbing new methods (with receive) + 310) 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/expiration_spec.rb:23 + # ./spec/rspec/mocks/double_spec.rb:501 - 311) After a test double has been torn down for a class_double disallows mocking new methods + 311) 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/expiration_spec.rb:41 + # ./spec/rspec/mocks/double_spec.rb:352 - 312) After a test double has been torn down for a class_double disallows being checked for nullness + 312) 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/expiration_spec.rb:51 + # ./spec/rspec/mocks/double_spec.rb:243 - 313) After a test double has been torn down for a class_double disallows being turned into a null object + 313) 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/expiration_spec.rb:47 + # ./spec/rspec/mocks/double_spec.rb:423 - 314) After a test double has been torn down for a class_double disallows previously mocked methods + 314) 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/expiration_spec.rb:15 + # ./spec/rspec/mocks/double_spec.rb:596 - 315) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher describes passed matchers + 315) 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/hash_including_matcher_spec.rb:10 + # ./spec/rspec/mocks/double_spec.rb:510 - 316) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher describes itself properly + 316) 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/hash_including_matcher_spec.rb:6 + # ./spec/rspec/mocks/double_spec.rb:15 - 317) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing matches the same hash + 317) 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/hash_including_matcher_spec.rb:17 + # ./spec/rspec/mocks/double_spec.rb:150 - 318) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing matches a hash with extra stuff + 318) 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/hash_including_matcher_spec.rb:21 + # ./spec/rspec/mocks/double_spec.rb:447 - 319) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing matches against classes inheriting from Hash + 319) 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/hash_including_matcher_spec.rb:25 + # ./spec/rspec/mocks/double_spec.rb:140 - 320) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when matching against other matchers can match against arbitrary objects that implement #=== + 320) 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/hash_including_matcher_spec.rb:38 + # ./spec/rspec/mocks/double_spec.rb:546 - 321) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when matching against other matchers matches an int against anything() + 321) 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/hash_including_matcher_spec.rb:30 + # ./spec/rspec/mocks/double_spec.rb:109 - 322) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when matching against other matchers matches a string against anything() + 322) 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/hash_including_matcher_spec.rb:34 + # ./spec/rspec/mocks/double_spec.rb:483 - 323) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches if more keys are present + 323) 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/hash_including_matcher_spec.rb:48 + # ./spec/rspec/mocks/double_spec.rb:400 - 324) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches a string against a given key + 324) 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/hash_including_matcher_spec.rb:52 + # ./spec/rspec/mocks/double_spec.rb:130 - 325) 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 + 325) 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/hash_including_matcher_spec.rb:56 + # ./spec/rspec/mocks/double_spec.rb:611 - 326) 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 + 326) 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/hash_including_matcher_spec.rb:60 + # ./spec/rspec/mocks/double_spec.rb:123 - 327) 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 + 327) 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/hash_including_matcher_spec.rb:64 + # ./spec/rspec/mocks/double_spec.rb:520 - 328) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches if the key is present + 328) 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/hash_including_matcher_spec.rb:44 + # ./spec/rspec/mocks/double_spec.rb:393 - 329) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with a missing key + 329) 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/hash_including_matcher_spec.rb:79 + # ./spec/rspec/mocks/double_spec.rb:643 - 330) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a non-hash + 330) 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/hash_including_matcher_spec.rb:71 + # ./spec/rspec/mocks/double_spec.rb:336 - 331) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match an empty hash with a given key + 331) 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/hash_including_matcher_spec.rb:83 + # ./spec/rspec/mocks/double_spec.rb:7 - 332) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with an incorrect value + 332) 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/hash_including_matcher_spec.rb:91 + # ./spec/rspec/mocks/double_spec.rb:587 - 333) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match when values are nil but keys are different + 333) 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/hash_including_matcher_spec.rb:95 + # ./spec/rspec/mocks/double_spec.rb:60 - 334) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with a missing key + 334) 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/hash_including_matcher_spec.rb:75 + # ./spec/rspec/mocks/double_spec.rb:178 - 335) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with a missing key when one pair is matching + 335) 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/hash_including_matcher_spec.rb:87 + # ./spec/rspec/mocks/double_spec.rb:628 - 336) A chained method stub returns expected value when chain is a dot separated string, like stub_chain('msg1.msg2.msg3') + 336) 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/stub_chain_spec.rb:147 + # ./spec/rspec/mocks/double_spec.rb:306 - 337) A chained method stub handles private instance methods (like Object#select) in the middle of a chain + 337) 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/stub_chain_spec.rb:160 + # ./spec/rspec/mocks/double_spec.rb:316 - 338) A chained method stub returns expected value from chaining four method calls + 338) 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/stub_chain_spec.rb:96 + # ./spec/rspec/mocks/double_spec.rb:465 - 339) A chained method stub does not get confused by symbol vs string usage for the messages + 339) 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/stub_chain_spec.rb:6 + # ./spec/rspec/mocks/double_spec.rb:25 - 340) A chained method stub returns expected value from two chains with shared messages at the beginning + 340) 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/stub_chain_spec.rb:152 + # ./spec/rspec/mocks/double_spec.rb:473 - 341) A chained method stub with two methods in chain accepts any number of arguments to the stubbed messages in the chain + 341) 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/stub_chain_spec.rb:38 + # ./spec/rspec/mocks/double_spec.rb:528 - 342) A chained method stub with two methods in chain using and_return returns expected value from chaining two method calls + 342) 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/stub_chain_spec.rb:45 + # ./spec/rspec/mocks/double_spec.rb:98 - 343) A chained method stub with two methods in chain using a hash returns the value of the key/value pair + 343) 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/stub_chain_spec.rb:59 + # ./spec/rspec/mocks/double_spec.rb:722 - 344) A chained method stub with two methods in chain using a block returns the correct value + 344) 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/stub_chain_spec.rb:52 + # ./spec/rspec/mocks/double_spec.rb:772 - 345) A chained method stub with four methods in chain using and_return returns expected value from chaining two method calls + 345) 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/stub_chain_spec.rb:68 + # ./spec/rspec/mocks/double_spec.rb:782 - 346) A chained method stub with four methods in chain using a block returns the correct value + 346) 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/stub_chain_spec.rb:75 + # ./spec/rspec/mocks/double_spec.rb:794 - 347) A chained method stub with four methods in chain using a hash with a string key returns the value of the key/value pair + 347) 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/stub_chain_spec.rb:89 + # ./spec/rspec/mocks/double_spec.rb:765 - 348) A chained method stub with four methods in chain using a hash returns the value of the key/value pair + 348) 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/stub_chain_spec.rb:82 + # ./spec/rspec/mocks/double_spec.rb:815 - 349) A chained method stub with messages shared across multiple chains using and_return starting with the different messages returns expected value + 349) 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/stub_chain_spec.rb:114 + # ./spec/rspec/mocks/double_spec.rb:808 - 350) A chained method stub with messages shared across multiple chains using and_return starting with the same message returns expected value + 350) 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/stub_chain_spec.rb:104 + # ./spec/rspec/mocks/double_spec.rb:162 - 351) A chained method stub with messages shared across multiple chains using => value starting with different messages returns expected value + 351) 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/stub_chain_spec.rb:136 + # ./spec/rspec/mocks/double_spec.rb:170 - 352) A chained method stub with messages shared across multiple chains using => value starting with the same message returns expected value + 352) 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/stub_chain_spec.rb:126 + # ./spec/rspec/mocks/double_spec.rb:752 - 353) A chained method stub with one method in chain using a block returns the correct value + 353) 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/stub_chain_spec.rb:23 + # ./spec/rspec/mocks/double_spec.rb:253 - 354) A chained method stub with one method in chain using and_return returns expected value from chaining only one method call + 354) 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/stub_chain_spec.rb:16 + # ./spec/rspec/mocks/double_spec.rb:730 - 355) A chained method stub with one method in chain using a hash returns the value of the key/value pair + 355) 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/stub_chain_spec.rb:30 + # ./spec/rspec/mocks/double_spec.rb:710 - 356) at_most passes when at_most(:once) is never called + 356) 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/at_most_spec.rb:38 + # ./spec/rspec/mocks/double_spec.rb:676 - 357) at_most fails fast when at_most(:once) and is called twice + 357) 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/at_most_spec.rb:100 + # ./spec/rspec/mocks/double_spec.rb:685 - 358) at_most fails fast when at_most(n) times method is called n plus 1 time + 358) 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/at_most_spec.rb:91 + # ./spec/rspec/mocks/double_spec.rb:693 - 359) at_most fails fast when at_most(:thrice) and is called four times + 359) 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/at_most_spec.rb:117 + # ./spec/rspec/mocks/double_spec.rb:702 - 360) at_most passes when at_most(n) is called exactly n times + 360) 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/at_most_spec.rb:14 + # ./spec/rspec/mocks/double_spec.rb:668 - 361) at_most fails fast when at_most(n) times method is called n plus 1 times + 361) 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/at_most_spec.rb:81 + # ./spec/rspec/mocks/double_spec.rb:744 - 362) at_most passes when at_most(:thrice) is called less than three times + 362) 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/at_most_spec.rb:61 + # ./spec/rspec/mocks/double_spec.rb:739 - 363) at_most returns the value given by a block when at_most(:once) method is called + 363) 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/at_most_spec.rb:75 + # ./spec/rspec/mocks/double_spec.rb:224 - 364) at_most passes when at_most(:once) is called once + 364) 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/at_most_spec.rb:32 + # ./spec/rspec/mocks/block_return_value_spec.rb:19 - 365) at_most passes when at_most(n) is called less than n times + 365) 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/at_most_spec.rb:21 + # ./spec/rspec/mocks/block_return_value_spec.rb:27 - 366) at_most passes when at_most(:twice) is called once + 366) 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/at_most_spec.rb:43 + # ./spec/rspec/mocks/block_return_value_spec.rb:71 - 367) at_most passes when at_most(:twice) is called twice + 367) 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/at_most_spec.rb:49 + # ./spec/rspec/mocks/block_return_value_spec.rb:38 - 368) at_most passes when at_most(n) is called exactly 1 time + 368) 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/at_most_spec.rb:8 + # ./spec/rspec/mocks/block_return_value_spec.rb:44 - 369) at_most passes when at_most(:thrice) is called thrice + 369) 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/at_most_spec.rb:67 + # ./spec/rspec/mocks/block_return_value_spec.rb:62 - 370) at_most passes when at_most(:twice) is never called + 370) 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/at_most_spec.rb:56 + # ./spec/rspec/mocks/block_return_value_spec.rb:9 - 371) at_most fails fast when at_most(:twice) and is called three times + 371) 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/at_most_spec.rb:108 + # ./spec/rspec/mocks/block_return_value_spec.rb:3 - 372) at_most passes when at_most(n) is never called + 372) 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/at_most_spec.rb:27 + # ./spec/rspec/mocks/block_return_value_spec.rb:53 - 373) at_most when called with negative expectation raises an error + 373) 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/at_most_spec.rb:128 + # ./spec/rspec/mocks/block_return_value_spec.rb:53 - 374) RSpec::Mocks::Configuration adds stub and should_receive to the given modules + 374) 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/configuration_spec.rb:12 + # ./spec/rspec/mocks/argument_matchers_spec.rb:123 - 375) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax defaults to enabling both the :should and :expect syntaxes + 375) 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/configuration_spec.rb:36 + # ./spec/rspec/mocks/argument_matchers_spec.rb:113 - 376) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect removes the should methods from every object + 376) 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/configuration_spec.rb:50 + # ./spec/rspec/mocks/argument_matchers_spec.rb:118 - 377) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect reports that the syntax is :expect + 377) 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/configuration_spec.rb:62 + # ./spec/rspec/mocks/argument_matchers_spec.rb:159 - 378) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect removes `any_instance` from every class + 378) 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/configuration_spec.rb:54 + # ./spec/rspec/mocks/argument_matchers_spec.rb:151 - 379) 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 + 379) 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/configuration_spec.rb:66 + # ./spec/rspec/mocks/argument_matchers_spec.rb:155 - 380) 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 + 380) 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/configuration_spec.rb:58 + # ./spec/rspec/mocks/argument_matchers_spec.rb:167 - 381) 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 + 381) 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/configuration_spec.rb:84 + # ./spec/rspec/mocks/argument_matchers_spec.rb:163 - 382) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should does not warn about the should syntax + 382) 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/configuration_spec.rb:92 + # ./spec/rspec/mocks/argument_matchers_spec.rb:221 - 383) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should adds `any_instance` to every class + 383) 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/configuration_spec.rb:80 + # ./spec/rspec/mocks/argument_matchers_spec.rb:175 - 384) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should adds the should methods to every object + 384) 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/configuration_spec.rb:76 + # ./spec/rspec/mocks/argument_matchers_spec.rb:179 - 385) 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 + 385) 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/configuration_spec.rb:97 + # ./spec/rspec/mocks/argument_matchers_spec.rb:191 - 386) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should reports that the syntax is :should + 386) 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/configuration_spec.rb:88 + # ./spec/rspec/mocks/argument_matchers_spec.rb:183 - 387) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] does not warn about the should syntax + 387) 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/configuration_spec.rb:123 + # ./spec/rspec/mocks/argument_matchers_spec.rb:187 - 388) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] reports that both syntaxes are enabled + 388) 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/configuration_spec.rb:119 + # ./spec/rspec/mocks/argument_matchers_spec.rb:135 - 389) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] adds `any_instance` to every class + 389) 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/configuration_spec.rb:111 + # ./spec/rspec/mocks/argument_matchers_spec.rb:139 - 390) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] adds the should methods to every object + 390) 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/configuration_spec.rb:107 + # ./spec/rspec/mocks/argument_matchers_spec.rb:143 - 391) 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 + 391) 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/configuration_spec.rb:115 + # ./spec/rspec/mocks/argument_matchers_spec.rb:211 - 392) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax defaults to enabling both the :should and :expect syntaxes + 392) 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/configuration_spec.rb:36 + # ./spec/rspec/mocks/argument_matchers_spec.rb:203 - 393) 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 + 393) 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/configuration_spec.rb:107 + # ./spec/rspec/mocks/argument_matchers_spec.rb:207 - 394) 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 + 394) 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/configuration_spec.rb:123 + # ./spec/rspec/mocks/argument_matchers_spec.rb:199 - 395) 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 + 395) 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/configuration_spec.rb:111 + # ./spec/rspec/mocks/argument_matchers_spec.rb:215 - 396) 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 + 396) 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/configuration_spec.rb:119 + # ./spec/rspec/mocks/argument_matchers_spec.rb:53 - 397) 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 + 397) 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/configuration_spec.rb:115 + # ./spec/rspec/mocks/argument_matchers_spec.rb:30 - 398) 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 + 398) 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/configuration_spec.rb:66 + # ./spec/rspec/mocks/argument_matchers_spec.rb:40 - 399) 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 + 399) 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/configuration_spec.rb:54 + # ./spec/rspec/mocks/argument_matchers_spec.rb:47 - 400) 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 + 400) 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/configuration_spec.rb:58 + # ./spec/rspec/mocks/argument_matchers_spec.rb:35 - 401) 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 + 401) 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/configuration_spec.rb:50 + # ./spec/rspec/mocks/argument_matchers_spec.rb:309 - 402) 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 + 402) 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/configuration_spec.rb:62 + # ./spec/rspec/mocks/argument_matchers_spec.rb:316 - 403) 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 + 403) 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/configuration_spec.rb:76 + # ./spec/rspec/mocks/argument_matchers_spec.rb:328 - 404) 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 + 404) 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/configuration_spec.rb:88 + # ./spec/rspec/mocks/argument_matchers_spec.rb:304 - 405) 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 + 405) 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/configuration_spec.rb:80 + # ./spec/rspec/mocks/argument_matchers_spec.rb:323 - 406) 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 + 406) 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/configuration_spec.rb:97 + # ./spec/rspec/mocks/argument_matchers_spec.rb:235 - 407) 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 + 407) 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/configuration_spec.rb:84 + # ./spec/rspec/mocks/argument_matchers_spec.rb:230 - 408) 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 + 408) 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/configuration_spec.rb:92 + # ./spec/rspec/mocks/argument_matchers_spec.rb:241 - 409) RSpec::Mocks::Configuration#when_declaring_verifying_double captures the supplied blocks + 409) 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/configuration_spec.rb:177 + # ./spec/rspec/mocks/argument_matchers_spec.rb:96 - 410) 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 + 410) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/argument_matchers_spec.rb:101 - 411) 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 + 411) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/argument_matchers_spec.rb:106 - 412) 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 + 412) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/argument_matchers_spec.rb:67 - 413) 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 + 413) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/argument_matchers_spec.rb:82 - 414) 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 + 414) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/argument_matchers_spec.rb:62 - 415) 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 + 415) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/argument_matchers_spec.rb:72 - 416) 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 + 416) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/argument_matchers_spec.rb:87 - 417) 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 + 417) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/argument_matchers_spec.rb:77 - 418) receive_message_chain with only the expect syntax enabled works with a string of messages to chain + 418) 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/matchers/receive_message_chain_spec.rb:103 + # ./spec/rspec/mocks/argument_matchers_spec.rb:378 - 419) receive_message_chain with only the expect syntax enabled works with allow where the first level of the chain is already stubbed + 419) 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/matchers/receive_message_chain_spec.rb:214 + # ./spec/rspec/mocks/argument_matchers_spec.rb:383 - 420) receive_message_chain with only the expect syntax enabled affects previously stubbed instances when `expect_any_instance_of` is called + 420) 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/matchers/receive_message_chain_spec.rb:175 + # ./spec/rspec/mocks/argument_matchers_spec.rb:373 - 421) 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 + 421) 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/matchers/receive_message_chain_spec.rb:127 + # ./spec/rspec/mocks/argument_matchers_spec.rb:21 - 422) receive_message_chain with only the expect syntax enabled works with and_call_original + 422) 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/matchers/receive_message_chain_spec.rb:73 + # ./spec/rspec/mocks/argument_matchers_spec.rb:16 - 423) receive_message_chain with only the expect syntax enabled can constrain the return value by the argument to the last call + 423) 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/matchers/receive_message_chain_spec.rb:66 + # ./spec/rspec/mocks/argument_matchers_spec.rb:11 - 424) receive_message_chain with only the expect syntax enabled works with a hash return as the last argument in the chain + 424) 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/receive_message_chain_spec.rb:109 + # ./spec/rspec/mocks/argument_matchers_spec.rb:269 - 425) receive_message_chain with only the expect syntax enabled errors with a negative allowance + 425) 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/receive_message_chain_spec.rb:8 + # ./spec/rspec/mocks/argument_matchers_spec.rb:264 - 426) receive_message_chain with only the expect syntax enabled passes when with expect_any_instance_of is used and the entire chain is called + 426) 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/matchers/receive_message_chain_spec.rb:183 + # ./spec/rspec/mocks/argument_matchers_spec.rb:283 - 427) 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 + 427) 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/matchers/receive_message_chain_spec.rb:135 + # ./spec/rspec/mocks/argument_matchers_spec.rb:288 - 428) receive_message_chain with only the expect syntax enabled works with expect where the first level of the chain is already expected + 428) 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/matchers/receive_message_chain_spec.rb:190 + # ./spec/rspec/mocks/argument_matchers_spec.rb:278 - 429) receive_message_chain with only the expect syntax enabled works with and_invoke + 429) 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/matchers/receive_message_chain_spec.rb:60 + # ./spec/rspec/mocks/argument_matchers_spec.rb:295 - 430) 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 + 430) 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/matchers/receive_message_chain_spec.rb:168 + # ./spec/rspec/mocks/argument_matchers_spec.rb:451 - 431) receive_message_chain with only the expect syntax enabled accepts any number of arguments to the stubbed messages + 431) 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/matchers/receive_message_chain_spec.rb:115 + # ./spec/rspec/mocks/argument_matchers_spec.rb:463 - 432) receive_message_chain with only the expect syntax enabled errors with a negative any_instance expectation + 432) 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/matchers/receive_message_chain_spec.rb:20 + # ./spec/rspec/mocks/argument_matchers_spec.rb:412 - 433) receive_message_chain with only the expect syntax enabled works with allow where the first level of the chain is already expected + 433) 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/matchers/receive_message_chain_spec.rb:198 + # ./spec/rspec/mocks/argument_matchers_spec.rb:417 - 434) receive_message_chain with only the expect syntax enabled works with and_throw + 434) 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/matchers/receive_message_chain_spec.rb:91 + # ./spec/rspec/mocks/argument_matchers_spec.rb:407 - 435) receive_message_chain with only the expect syntax enabled errors with a negative expectation + 435) 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/matchers/receive_message_chain_spec.rb:14 + # ./spec/rspec/mocks/argument_matchers_spec.rb:498 - 436) receive_message_chain with only the expect syntax enabled provides a matcher description (when passing symbols and a hash) + 436) 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/matchers/receive_message_chain_spec.rb:232 + # ./spec/rspec/mocks/argument_matchers_spec.rb:478 - 437) receive_message_chain with only the expect syntax enabled works with and_return + 437) 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/matchers/receive_message_chain_spec.rb:54 + # ./spec/rspec/mocks/argument_matchers_spec.rb:444 - 438) receive_message_chain with only the expect syntax enabled fails with and_call_original when the entire chain is not called + 438) 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/matchers/receive_message_chain_spec.rb:79 + # ./spec/rspec/mocks/argument_matchers_spec.rb:397 - 439) receive_message_chain with only the expect syntax enabled accepts any number of arguments to the stubbed messages with an inline hash return value + 439) 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/matchers/receive_message_chain_spec.rb:121 + # ./spec/rspec/mocks/argument_matchers_spec.rb:402 - 440) receive_message_chain with only the expect syntax enabled works with allow_any_instance + 440) 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/matchers/receive_message_chain_spec.rb:151 + # ./spec/rspec/mocks/argument_matchers_spec.rb:429 - 441) receive_message_chain with only the expect syntax enabled works with and_raise + 441) 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/matchers/receive_message_chain_spec.rb:85 + # ./spec/rspec/mocks/argument_matchers_spec.rb:484 - 442) receive_message_chain with only the expect syntax enabled gives the { } block precedence over the do block + 442) 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/matchers/receive_message_chain_spec.rb:46 + # ./spec/rspec/mocks/argument_matchers_spec.rb:473 - 443) receive_message_chain with only the expect syntax enabled works with a {} block + 443) 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/matchers/receive_message_chain_spec.rb:40 + # ./spec/rspec/mocks/argument_matchers_spec.rb:491 - 444) receive_message_chain with only the expect syntax enabled errors with a negative any_instance allowance + 444) 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/matchers/receive_message_chain_spec.rb:26 + # ./spec/rspec/mocks/argument_matchers_spec.rb:468 - 445) receive_message_chain with only the expect syntax enabled works with and_yield + 445) 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/matchers/receive_message_chain_spec.rb:97 + # ./spec/rspec/mocks/argument_matchers_spec.rb:458 - 446) receive_message_chain with only the expect syntax enabled provides a matcher description (when passing symbols) + 446) 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/matchers/receive_message_chain_spec.rb:227 + # ./spec/rspec/mocks/argument_matchers_spec.rb:422 - 447) receive_message_chain with only the expect syntax enabled does not raise when expect is used and the entire chain is called + 447) 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/receive_message_chain_spec.rb:143 + # ./spec/rspec/mocks/argument_matchers_spec.rb:250 - 448) receive_message_chain with only the expect syntax enabled stubs already stubbed instances when using `allow_any_instance_of` + 448) 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/matchers/receive_message_chain_spec.rb:159 + # ./spec/rspec/mocks/argument_matchers_spec.rb:255 - 449) receive_message_chain with only the expect syntax enabled works with a do block + 449) 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/matchers/receive_message_chain_spec.rb:32 + # ./spec/rspec/mocks/argument_matchers_spec.rb:337 - 450) receive_message_chain with only the expect syntax enabled provides a matcher description (when passing a string) + 450) 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/matchers/receive_message_chain_spec.rb:222 + # ./spec/rspec/mocks/argument_matchers_spec.rb:352 - 451) receive_message_chain with only the expect syntax enabled works with expect where the first level of the chain is already stubbed + 451) 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/matchers/receive_message_chain_spec.rb:206 + # ./spec/rspec/mocks/argument_matchers_spec.rb:345 452) 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_message_chain_spec.rb:241 - 453) an expectation set on nil does not call #nil? on a double extra times + 453) 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/nil_expectation_warning_spec.rb:60 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:143 - 454) an expectation set on nil issues a warning with file and line number information + 454) 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/nil_expectation_warning_spec.rb:4 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:97 - 455) an expectation set on nil issues a warning when the expectation is negative + 455) 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/nil_expectation_warning_spec.rb:15 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:60 - 456) an expectation set on nil does not issue a warning when expectations are set to be allowed + 456) 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/nil_expectation_warning_spec.rb:24 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:91 - 457) an expectation set on nil configured to disallow expectations on nil raises an error when expectations on nil are disallowed + 457) 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/nil_expectation_warning_spec.rb:53 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:85 - 458) an expectation set on nil configured to allow expectation on nil does not issue a warning when expectations are set to be allowed + 458) 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/nil_expectation_warning_spec.rb:38 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:127 - 459) a double acting as a null object allows unexpected message sends using `__send__` + 459) 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/null_object_double_spec.rb:79 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:103 - 460) a double acting as a null object can be interpolated in a string as an integer + 460) 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/null_object_double_spec.rb:96 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:151 - 461) a double acting as a null object continues to return self from an explicit expectation + 461) 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/null_object_double_spec.rb:51 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:109 - 462) a double acting as a null object allows explicit expectation + 462) 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/null_object_double_spec.rb:42 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:183 - 463) a double acting as a null object returns a string from `to_str` + 463) 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/null_object_double_spec.rb:47 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:20 - 464) a double acting as a null object allows explicit stubs + 464) 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/null_object_double_spec.rb:37 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:198 - 465) a double acting as a null object allows expected message with different args first + 465) 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/null_object_double_spec.rb:84 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:135 - 466) a double acting as a null object says it responds to everything + 466) 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/null_object_double_spec.rb:33 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:66 - 467) a double acting as a null object returns an explicitly stubbed value from an expectation with no implementation + 467) 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/null_object_double_spec.rb:56 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:206 - 468) a double acting as a null object allows expected message with different args second + 468) 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/null_object_double_spec.rb:90 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:14 - 469) a double acting as a null object fails verification when explicit exception not met + 469) 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/null_object_double_spec.rb:62 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:232 - 470) a double acting as a null object ignores unexpected methods + 470) 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/null_object_double_spec.rb:69 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:115 - 471) a double acting as a null object allows unexpected message sends using `send` + 471) 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/null_object_double_spec.rb:74 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:26 - 472) a double acting as a null object does not allow null objects to be used outside of examples + 472) 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/null_object_double_spec.rb:104 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:54 - 473) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher describes passed matchers + 473) 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/array_including_matcher_spec.rb:9 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:79 - 474) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher describes itself properly + 474) 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/array_including_matcher_spec.rb:5 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:8 - 475) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher failing fails when passed a composed matcher is passed and not satisfied + 475) 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/array_including_matcher_spec.rb:60 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:190 - 476) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher failing fails when not all the entries in the expected are present + 476) 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/array_including_matcher_spec.rb:56 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:73 - 477) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, which includes nested arrays + 477) 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/array_including_matcher_spec.rb:28 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:40 - 478) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing works with duplicates in actual + 478) 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/array_including_matcher_spec.rb:36 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:222 - 479) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, specified without square brackets + 479) 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/array_including_matcher_spec.rb:20 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:159 - 480) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing works with duplicates in expected + 480) 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/array_including_matcher_spec.rb:32 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:168 - 481) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing is composable with other matchers + 481) 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/array_including_matcher_spec.rb:40 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:32 - 482) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array + 482) 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/array_including_matcher_spec.rb:16 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:214 - 483) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, specified without square brackets + 483) 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/array_including_matcher_spec.rb:24 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:227 - 484) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing is composable when nested + 484) 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/array_including_matcher_spec.rb:48 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:175 - 485) Test doubles format well in failure messages formats the doubles when they appear in data structures and diffs + 485) 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/formatting_spec.rb:94 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:121 - 486) Test doubles format well in failure messages `object_double([])` without a name # + 486) 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/formatting_spec.rb:88 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:46 - 487) Test doubles format well in failure messages `object_double([])` with a name # + 487) 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/formatting_spec.rb:82 + # ./spec/rspec/mocks/mock_expectation_error_spec.rb:12 - 488) Test doubles format well in failure messages `double` avoids sending `instance_variable_get` to the double as it may be stubbed + 488) 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/formatting_spec.rb:39 + # ./spec/rspec/mocks/should_syntax_spec.rb:194 - 489) Test doubles format well in failure messages `double` with a name # + 489) 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/formatting_spec.rb:24 + # ./spec/rspec/mocks/should_syntax_spec.rb:190 - 490) Test doubles format well in failure messages `double` with a name formats the name as a symbol if that was how it was provided + 490) 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/formatting_spec.rb:28 + # ./spec/support/before_all_shared_example_group.rb:11 - 491) Test doubles format well in failure messages `double` without a name # + 491) 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/formatting_spec.rb:34 + # ./spec/rspec/mocks/should_syntax_spec.rb:201 - 492) Test doubles format well in failure messages `instance_double(SomeClass)` avoids sending `instance_variable_get` to the double as it may be stubbed + 492) 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/formatting_spec.rb:59 + # ./spec/rspec/mocks/should_syntax_spec.rb:146 - 493) Test doubles format well in failure messages `instance_double(SomeClass)` without a name # + 493) 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/formatting_spec.rb:54 + # ./spec/rspec/mocks/should_syntax_spec.rb:133 - 494) Test doubles format well in failure messages `instance_double(SomeClass)` with a name # + 494) 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/formatting_spec.rb:48 + # ./spec/rspec/mocks/should_syntax_spec.rb:139 - 495) Test doubles format well in failure messages `class_double(SomeClass)` without a name # + 495) 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/formatting_spec.rb:74 + # ./spec/support/before_all_shared_example_group.rb:11 - 496) Test doubles format well in failure messages `class_double(SomeClass)` with a name # + 496) 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/formatting_spec.rb:68 + # ./spec/rspec/mocks/should_syntax_spec.rb:159 - 497) A method stub with args complains if also mocked w/ different args AND called w/ a 3rd set of args + 497) 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/stub_spec.rb:546 + # ./spec/rspec/mocks/should_syntax_spec.rb:170 - 498) A method stub with args complains if called with no arg + 498) 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/stub_spec.rb:528 + # ./spec/rspec/mocks/should_syntax_spec.rb:178 - 499) A method stub with args does not complain if called with arg + 499) 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/stub_spec.rb:524 + # ./spec/support/before_all_shared_example_group.rb:11 - 500) A method stub with args complains if called with other arg + 500) 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/stub_spec.rb:534 + # ./spec/rspec/mocks/should_syntax_spec.rb:242 - 501) A method stub with args does not complain if also mocked w/ different args + 501) 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/stub_spec.rb:540 + # ./spec/rspec/mocks/should_syntax_spec.rb:248 - 502) A method stub with args uses the correct stubbed response when responding to a mock expectation + 502) 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/stub_spec.rb:555 + # ./spec/rspec/mocks/should_syntax_spec.rb:255 - 503) A method stub with args does not complain if not called + 503) 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/stub_spec.rb:521 + # ./spec/rspec/mocks/should_syntax_spec.rb:237 - 504) Method visibility for verified doubles for an instance double (when the class is loaded) can allow a protected instance method + 504) 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/verifying_doubles/method_visibility_spec.rb:16 + # ./spec/rspec/mocks/should_syntax_spec.rb:231 - 505) Method visibility for verified doubles for an instance double (when the class is loaded) preserves protected visibility when expecting a protected method + 505) 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/verifying_doubles/method_visibility_spec.rb:36 + # ./spec/rspec/mocks/should_syntax_spec.rb:263 - 506) Method visibility for verified doubles for an instance double (when the class is loaded) can expect a protected instance method + 506) 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/verifying_doubles/method_visibility_spec.rb:22 + # ./spec/rspec/mocks/should_syntax_spec.rb:449 - 507) Method visibility for verified doubles for an instance double (when the class is loaded) preserves private visibility when allowing a private method + 507) 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/verifying_doubles/method_visibility_spec.rb:28 + # ./spec/rspec/mocks/should_syntax_spec.rb:419 - 508) Method visibility for verified doubles for an instance double (when the class is loaded) can allow a private instance method + 508) 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/verifying_doubles/method_visibility_spec.rb:16 + # ./spec/rspec/mocks/should_syntax_spec.rb:390 - 509) Method visibility for verified doubles for an instance double (when the class is loaded) can expect a private instance method + 509) 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/verifying_doubles/method_visibility_spec.rb:22 + # ./spec/rspec/mocks/should_syntax_spec.rb:403 - 510) Method visibility for verified doubles for an instance double (when the class is loaded) preserves protected visibility on a null object + 510) 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/verifying_doubles/method_visibility_spec.rb:45 + # ./spec/rspec/mocks/should_syntax_spec.rb:427 - 511) Method visibility for verified doubles for an instance double (when the class is loaded) preserves private visibility on a null object + 511) 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/verifying_doubles/method_visibility_spec.rb:45 + # ./spec/rspec/mocks/should_syntax_spec.rb:443 - 512) Method visibility for verified doubles for an instance double (when the class is loaded) preserves private visibility when expecting a private method + 512) 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/verifying_doubles/method_visibility_spec.rb:36 + # ./spec/rspec/mocks/should_syntax_spec.rb:435 - 513) Method visibility for verified doubles for an instance double (when the class is loaded) preserves protected visibility when allowing a protected method + 513) 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/verifying_doubles/method_visibility_spec.rb:28 + # ./spec/rspec/mocks/should_syntax_spec.rb:396 - 514) Method visibility for verified doubles for a class double (when the class is loaded) preserves private visibility on a null object + 514) 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/verifying_doubles/method_visibility_spec.rb:89 + # ./spec/rspec/mocks/should_syntax_spec.rb:411 - 515) Method visibility for verified doubles for a class double (when the class is loaded) preserves protected visibility when allowing a protected method + 515) 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/verifying_doubles/method_visibility_spec.rb:72 + # ./spec/rspec/mocks/should_syntax_spec.rb:341 - 516) Method visibility for verified doubles for a class double (when the class is loaded) preserves private visibility when allowing a private method + 516) 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/verifying_doubles/method_visibility_spec.rb:72 + # ./spec/rspec/mocks/should_syntax_spec.rb:382 - 517) Method visibility for verified doubles for a class double (when the class is loaded) can allow a protected instance method + 517) 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/verifying_doubles/method_visibility_spec.rb:60 + # ./spec/rspec/mocks/should_syntax_spec.rb:349 - 518) Method visibility for verified doubles for a class double (when the class is loaded) can expect a private instance method + 518) 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/verifying_doubles/method_visibility_spec.rb:66 + # ./spec/rspec/mocks/should_syntax_spec.rb:353 - 519) Method visibility for verified doubles for a class double (when the class is loaded) preserves private visibility when expecting a private method + 519) 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/verifying_doubles/method_visibility_spec.rb:80 + # ./spec/rspec/mocks/should_syntax_spec.rb:367 - 520) Method visibility for verified doubles for a class double (when the class is loaded) can allow a private instance method + 520) 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/verifying_doubles/method_visibility_spec.rb:60 + # ./spec/rspec/mocks/should_syntax_spec.rb:359 - 521) Method visibility for verified doubles for a class double (when the class is loaded) preserves protected visibility on a null object + 521) 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/verifying_doubles/method_visibility_spec.rb:89 + # ./spec/rspec/mocks/should_syntax_spec.rb:374 - 522) Method visibility for verified doubles for a class double (when the class is loaded) preserves protected visibility when expecting a protected method + 522) 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/verifying_doubles/method_visibility_spec.rb:80 + # ./spec/rspec/mocks/should_syntax_spec.rb:335 - 523) Method visibility for verified doubles for a class double (when the class is loaded) can expect a protected instance method + 523) 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/verifying_doubles/method_visibility_spec.rb:66 + # ./spec/rspec/mocks/should_syntax_spec.rb:285 - 524) Constructing a verifying double can only be named with a string or a module + 524) 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/verifying_doubles/construction_spec.rb:162 + # ./spec/rspec/mocks/should_syntax_spec.rb:277 - 525) Constructing a verifying double class doubles declares anonymous modules to verifying double callbacks + 525) 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/verifying_doubles/construction_spec.rb:119 + # ./spec/rspec/mocks/should_syntax_spec.rb:281 - 526) Constructing a verifying double class doubles cannot be constructed with a non-module object + 526) 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/verifying_doubles/construction_spec.rb:104 + # ./spec/rspec/mocks/should_syntax_spec.rb:273 - 527) Constructing a verifying double class doubles declares named modules to verifying double callbacks + 527) 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/verifying_doubles/construction_spec.rb:110 + # ./spec/rspec/mocks/should_syntax_spec.rb:293 - 528) Constructing a verifying double instance doubles cannot be constructed with a non-module object + 528) 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/verifying_doubles/construction_spec.rb:18 + # ./spec/rspec/mocks/should_syntax_spec.rb:303 - 529) Constructing a verifying double instance doubles allows classes to be customised + 529) 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/verifying_doubles/construction_spec.rb:52 + # ./spec/rspec/mocks/should_syntax_spec.rb:324 - 530) Constructing a verifying double instance doubles can be constructed with a struct + 530) 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/verifying_doubles/construction_spec.rb:24 + # ./spec/rspec/mocks/should_syntax_spec.rb:313 - 531) Constructing a verifying double instance doubles allows named constants to be looked up and declared to verifying double callbacks + 531) 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/verifying_doubles/construction_spec.rb:29 + # ./spec/rspec/mocks/should_syntax_spec.rb:308 - 532) Constructing a verifying double instance doubles allows anonymous constants to be looked up and declared to verifying double callbacks + 532) 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/verifying_doubles/construction_spec.rb:40 + # ./spec/rspec/mocks/should_syntax_spec.rb:318 - 533) Constructing a verifying double instance doubles any_instance calls the callback for allow_any_instance_of + 533) 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/verifying_doubles/construction_spec.rb:85 + # ./spec/rspec/mocks/should_syntax_spec.rb:18 - 534) Constructing a verifying double instance doubles any_instance calls the callback for expect_any_instance_of + 534) 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/verifying_doubles/construction_spec.rb:77 + # ./spec/rspec/mocks/should_syntax_spec.rb:13 - 535) Constructing a verifying double instance doubles any_instance should not call the callback if verify_partial_doubles is off + 535) 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/verifying_doubles/construction_spec.rb:93 + # ./spec/rspec/mocks/should_syntax_spec.rb:23 - 536) Constructing a verifying double when verify_doubled_constant_names config option is set prevents creation of instance doubles for unloaded constants + 536) 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/verifying_doubles/construction_spec.rb:149 + # ./spec/rspec/mocks/should_syntax_spec.rb:9 - 537) Constructing a verifying double when verify_doubled_constant_names config option is set prevents creation of class doubles for unloaded constants + 537) 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/verifying_doubles/construction_spec.rb:155 + # ./spec/rspec/mocks/should_syntax_spec.rb:40 - 538) Constructing a verifying double object doubles declares the class to verifying double callbacks + 538) 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/verifying_doubles/construction_spec.rb:131 + # ./spec/rspec/mocks/should_syntax_spec.rb:34 - 539) allow(...).to receive_messages(:a => 1, :b => 2) allows the object to respond to multiple messages + 539) 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/receive_messages_spec.rb:35 + # ./spec/rspec/mocks/should_syntax_spec.rb:30 - 540) allow(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given + 540) 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/receive_messages_spec.rb:4 + # ./spec/rspec/mocks/should_syntax_spec.rb:46 - 541) allow(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a do; end; block is given + 541) 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/receive_messages_spec.rb:10 + # ./spec/support/before_all_shared_example_group.rb:11 - 542) allow(...).to receive_messages(:a => 1, :b => 2) behaves like handles partially mocked objects correctly resets partially mocked objects correctly + 542) 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/matchers/receive_messages_spec.rb:22 + # ./spec/rspec/mocks/should_syntax_spec.rb:111 - 543) the spy family of methods spy records called methods + 543) 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/spy_spec.rb:13 + # ./spec/rspec/mocks/should_syntax_spec.rb:124 - 544) the spy family of methods spy takes a name + 544) 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/spy_spec.rb:9 + # ./spec/rspec/mocks/should_syntax_spec.rb:101 - 545) the spy family of methods spy responds to arbitrary methods + 545) 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/spy_spec.rb:5 + # ./spec/rspec/mocks/should_syntax_spec.rb:84 - 546) the spy family of methods spy takes a hash of method names and return values + 546) 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/spy_spec.rb:17 + # ./spec/support/before_all_shared_example_group.rb:11 - 547) the spy family of methods spy takes a name and a hash of method names and return values + 547) 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/spy_spec.rb:21 + # ./spec/rspec/mocks/should_syntax_spec.rb:92 - 548) 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 + 548) 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/spy_spec.rb:84 + # ./spec/rspec/mocks/should_syntax_spec.rb:61 - 549) 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 + 549) 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/spy_spec.rb:27 + # ./spec/support/before_all_shared_example_group.rb:11 - 550) 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 + 550) 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/spy_spec.rb:39 + # ./spec/rspec/mocks/stub_implementation_spec.rb:21 - 551) 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 + 551) 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/spy_spec.rb:45 + # ./spec/rspec/mocks/stub_implementation_spec.rb:13 - 552) 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 + 552) 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/spy_spec.rb:35 + # ./spec/rspec/mocks/stub_implementation_spec.rb:5 - 553) 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 + 553) 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/spy_spec.rb:31 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:74 - 554) the spy family of methods instance_spy when passing a class object takes a class and a hash of method names and return values + 554) 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/spy_spec.rb:66 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:81 - 555) 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 + 555) 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/spy_spec.rb:39 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:89 - 556) the spy family of methods instance_spy when passing a class object behaves like a verifying spy with a foo method records called methods + 556) 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/spy_spec.rb:35 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:96 - 557) 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 + 557) ordering supports duplicate messages # 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/mock_ordering_spec.rb:100 - 558) 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 + 558) 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/spy_spec.rb:31 + # ./spec/rspec/mocks/mock_ordering_spec.rb:66 - 559) 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 + 559) 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/spy_spec.rb:45 + # ./spec/rspec/mocks/mock_ordering_spec.rb:46 - 560) the spy family of methods class_spy takes a class and a hash of method names and return values + 560) 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/spy_spec.rb:123 + # ./spec/rspec/mocks/mock_ordering_spec.rb:80 - 561) 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 + 561) 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/spy_spec.rb:31 + # ./spec/rspec/mocks/mock_ordering_spec.rb:7 - 562) 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 + 562) 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/spy_spec.rb:39 + # ./spec/rspec/mocks/mock_ordering_spec.rb:16 - 563) 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 + 563) 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/spy_spec.rb:45 + # ./spec/rspec/mocks/mock_ordering_spec.rb:56 - 564) the spy family of methods class_spy behaves like a verifying spy with a foo method records called methods + 564) 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/spy_spec.rb:35 + # ./spec/rspec/mocks/mock_ordering_spec.rb:27 - 565) the spy family of methods class_spy behaves like a verifying spy with a foo method responds to methods on the verified object + 565) 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/spy_spec.rb:27 + # ./spec/rspec/mocks/mock_ordering_spec.rb:38 - 566) the spy family of methods object_spy takes an instance and a hash of method names and return values + 566) 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/spy_spec.rb:105 + # ./spec/rspec/mocks/should_syntax_spec.rb:496 - 567) the spy family of methods object_spy behaves like a verifying spy with a foo method responds to methods on the verified object + 567) 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/spy_spec.rb:27 + # ./spec/rspec/mocks/should_syntax_spec.rb:475 - 568) 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 + 568) 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/spy_spec.rb:39 + # ./spec/rspec/mocks/should_syntax_spec.rb:541 - 569) 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 + 569) 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/spy_spec.rb:45 + # ./spec/rspec/mocks/should_syntax_spec.rb:487 - 570) the spy family of methods object_spy behaves like a verifying spy with a foo method records called methods + 570) 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/spy_spec.rb:35 + # ./spec/rspec/mocks/should_syntax_spec.rb:564 - 571) 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 + 571) 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/spy_spec.rb:31 + # ./spec/rspec/mocks/should_syntax_spec.rb:554 - 572) RSpec::Mocks::AnyInstance::MessageChains knows if a method does not have an expectation set on it + 572) 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/any_instance/message_chains_spec.rb:7 + # ./spec/rspec/mocks/failure_notification_spec.rb:24 - 573) RSpec::Mocks::AnyInstance::MessageChains knows if a method has an expectation set on it + 573) 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/any_instance/message_chains_spec.rb:12 + # ./spec/rspec/mocks/failure_notification_spec.rb:8 - 574) RSpec::Mocks::AnyInstance::MessageChains can remove all stub chains + 574) 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/any_instance/message_chains_spec.rb:18 + # ./spec/rspec/mocks/failure_notification_spec.rb:16 - 575) RSpec::Mocks::AnyInstance::MessageChains creating stub chains understands how to add a stub chain for a method + 575) 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/any_instance/message_chains_spec.rb:28 + # ./spec/rspec/mocks/failure_notification_spec.rb:34 - 576) RSpec::Mocks::AnyInstance::MessageChains creating stub chains allows multiple stub chains for a method + 576) 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/any_instance/message_chains_spec.rb:33 + # ./spec/rspec/mocks/failure_notification_spec.rb:58 - 577) Serialization of mocked objects marshals the same with and without stubbing + 577) 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/serialization_spec.rb:84 + # ./spec/rspec/mocks/failure_notification_spec.rb:45 - 578) Serialization of mocked objects without YAML loaded does not add #to_yaml to the stubbed object + 578) 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/serialization_spec.rb:77 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:160 - 579) 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 + 579) 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/serialization_spec.rb:47 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:4 - 580) 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 + 580) 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/serialization_spec.rb:43 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:85 - 581) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has not been hidden + 581) 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/mutate_const_spec.rb:514 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:173 - 582) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has been mutated + 582) 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/mutate_const_spec.rb:512 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:94 - 583) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice exposes its original value + 583) 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/mutate_const_spec.rb:515 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:165 - 584) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates the name is valid + 584) 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/mutate_const_spec.rb:510 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:115 - 585) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice exposes its name + 585) 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/mutate_const_spec.rb:509 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:181 - 586) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it was previously defined + 586) 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/mutate_const_spec.rb:511 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:106 - 587) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has been stubbed + 587) 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/mutate_const_spec.rb:513 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:31 - 588) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice returns nil for the original value + 588) 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/mutate_const_spec.rb:529 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:37 - 589) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it was not previously defined + 589) 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/mutate_const_spec.rb:525 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:43 - 590) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has been stubbed + 590) 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/mutate_const_spec.rb:527 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:25 - 591) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has not been hidden + 591) 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/mutate_const_spec.rb:528 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:78 - 592) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has been mutated + 592) 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/mutate_const_spec.rb:526 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:61 - 593) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice exposes its name + 593) 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/mutate_const_spec.rb:523 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:55 - 594) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates the name is valid + 594) 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/mutate_const_spec.rb:524 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:67 - 595) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been stubbed + 595) 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/mutate_const_spec.rb:448 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:49 - 596) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been hidden + 596) 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/mutate_const_spec.rb:449 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:152 - 597) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it was previously defined + 597) 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/mutate_const_spec.rb:446 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:142 - 598) RSpec::Mocks::Constant.original for a previously defined unstubbed constant exposes its name + 598) 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/mutate_const_spec.rb:444 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:132 - 599) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been mutated + 599) 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/mutate_const_spec.rb:447 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:137 - 600) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates the name is valid + 600) 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/mutate_const_spec.rb:445 + # ./spec/rspec/mocks/at_most_spec.rb:27 - 601) RSpec::Mocks::Constant.original for a previously defined unstubbed constant exposes its original value + 601) 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/mutate_const_spec.rb:450 + # ./spec/rspec/mocks/at_most_spec.rb:56 - 602) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it was not previously defined + 602) 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/mutate_const_spec.rb:472 + # ./spec/rspec/mocks/at_most_spec.rb:38 - 603) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates the name is valid + 603) 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/mutate_const_spec.rb:471 + # ./spec/rspec/mocks/at_most_spec.rb:14 - 604) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has not been hidden + 604) 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/mutate_const_spec.rb:475 + # ./spec/rspec/mocks/at_most_spec.rb:117 - 605) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has been mutated + 605) 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/mutate_const_spec.rb:473 + # ./spec/rspec/mocks/at_most_spec.rb:108 - 606) RSpec::Mocks::Constant.original for a previously undefined stubbed constant exposes its name + 606) 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/mutate_const_spec.rb:470 + # ./spec/rspec/mocks/at_most_spec.rb:43 - 607) RSpec::Mocks::Constant.original for a previously undefined stubbed constant returns nil for the original value + 607) 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/mutate_const_spec.rb:476 + # ./spec/rspec/mocks/at_most_spec.rb:21 - 608) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has been stubbed + 608) 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/mutate_const_spec.rb:474 + # ./spec/rspec/mocks/at_most_spec.rb:75 - 609) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant exposes its name + 609) 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/mutate_const_spec.rb:483 + # ./spec/rspec/mocks/at_most_spec.rb:67 - 610) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has been mutated + 610) 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/mutate_const_spec.rb:486 + # ./spec/rspec/mocks/at_most_spec.rb:49 - 611) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it was not previously defined + 611) 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/mutate_const_spec.rb:485 + # ./spec/rspec/mocks/at_most_spec.rb:81 - 612) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has not been hidden + 612) 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/mutate_const_spec.rb:488 + # ./spec/rspec/mocks/at_most_spec.rb:100 - 613) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has been stubbed + 613) 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/mutate_const_spec.rb:487 + # ./spec/rspec/mocks/at_most_spec.rb:61 - 614) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates the name is valid + 614) 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/mutate_const_spec.rb:484 + # ./spec/rspec/mocks/at_most_spec.rb:91 - 615) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant returns nil for the original value + 615) 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/mutate_const_spec.rb:489 + # ./spec/rspec/mocks/at_most_spec.rb:32 - 616) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates the name is valid + 616) 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/mutate_const_spec.rb:496 + # ./spec/rspec/mocks/at_most_spec.rb:8 - 617) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant returns nil for the original value + 617) 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/mutate_const_spec.rb:501 + # ./spec/rspec/mocks/at_most_spec.rb:128 - 618) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it has not been mutated + 618) 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/rspec/mocks/mutate_const_spec.rb:498 + # ./spec/rspec/mocks/stub_spec.rb:534 - 619) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it has not been stubbed + 619) 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/mutate_const_spec.rb:499 + # ./spec/rspec/mocks/stub_spec.rb:521 - 620) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it has not been hidden + 620) 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/mutate_const_spec.rb:500 + # ./spec/rspec/mocks/stub_spec.rb:555 - 621) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant exposes its name + 621) 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/rspec/mocks/mutate_const_spec.rb:495 + # ./spec/rspec/mocks/stub_spec.rb:528 - 622) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it was not previously defined + 622) 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/mutate_const_spec.rb:497 + # ./spec/rspec/mocks/stub_spec.rb:546 - 623) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates the name is valid + 623) 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/mutate_const_spec.rb:550 + # ./spec/rspec/mocks/stub_spec.rb:524 - 624) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has been hidden + 624) 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/mutate_const_spec.rb:554 + # ./spec/rspec/mocks/stub_spec.rb:540 - 625) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has been mutated + 625) 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:552 + # ./spec/rspec/mocks/and_return_spec.rb:7 - 626) RSpec::Mocks::Constant.original for a previously defined hidden constant exposes its original value + 626) 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:555 + # ./spec/rspec/mocks/and_return_spec.rb:15 - 627) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it was previously defined + 627) 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/mutate_const_spec.rb:551 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:12 - 628) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has not been stubbed + 628) 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/mutate_const_spec.rb:553 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:25 - 629) RSpec::Mocks::Constant.original for a previously defined hidden constant exposes its name + 629) 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/mutate_const_spec.rb:549 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:19 - 630) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has been mutated + 630) 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/mutate_const_spec.rb:460 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:46 - 631) RSpec::Mocks::Constant.original for a previously defined stubbed constant exposes its name + 631) 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/mutate_const_spec.rb:457 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:60 - 632) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has not been hidden + 632) 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/mutate_const_spec.rb:462 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:65 - 633) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates the name is valid + 633) 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/mutate_const_spec.rb:458 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:6 - 634) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it was previously defined + 634) 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/mutate_const_spec.rb:459 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:10 - 635) RSpec::Mocks::Constant.original for a previously defined stubbed constant exposes its original value + 635) 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/mutate_const_spec.rb:463 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:25 - 636) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has been stubbed + 636) 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/mutate_const_spec.rb:461 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:17 - 637) RSpec::Mocks::Constant.original for a previously undefined hidden constant exposes its name + 637) 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/mutate_const_spec.rb:536 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:21 - 638) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates the name is valid + 638) 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/mutate_const_spec.rb:537 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:34 - 639) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not not been stubbed + 639) 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/mutate_const_spec.rb:540 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:38 - 640) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not been mutated + 640) 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/mutate_const_spec.rb:539 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:30 - 641) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not been hidden + 641) 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/mutate_const_spec.rb:541 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:60 - 642) RSpec::Mocks::Constant.original for a previously undefined hidden constant returns nil for the original value + 642) 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/mutate_const_spec.rb:542 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:64 - 643) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it was previously undefined + 643) 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/mutate_const_spec.rb:538 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:52 - 644) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates the name is valid + 644) 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/mutate_const_spec.rb:564 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:56 - 645) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice exposes its name + 645) 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/mutate_const_spec.rb:563 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:44 - 646) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice exposes its original value + 646) 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/mutate_const_spec.rb:569 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:48 - 647) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has not been stubbed + 647) 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/mutate_const_spec.rb:567 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:79 - 648) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has been mutated + 648) 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/rspec/mocks/mutate_const_spec.rb:566 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:71 - 649) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has been hidden + 649) 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/mutate_const_spec.rb:568 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:91 - 650) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it was previously defined + 650) 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/mutate_const_spec.rb:565 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:87 - 651) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been mutated + 651) 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/mutate_const_spec.rb:579 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:83 - 652) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been stubbed + 652) 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/mutate_const_spec.rb:580 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:75 - 653) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been hidden + 653) 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/mutate_const_spec.rb:581 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:95 - 654) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) exposes the provided string as the name + 654) 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/mutate_const_spec.rb:576 + # ./spec/rspec/mocks/to_ary_spec.rb:8 - 655) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates the name is invalid + 655) 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/mutate_const_spec.rb:577 + # ./spec/rspec/mocks/to_ary_spec.rb:13 - 656) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it was not previously defined + 656) 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/mutate_const_spec.rb:578 + # ./spec/rspec/mocks/to_ary_spec.rb:44 - 657) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) returns nil for its original value + 657) 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/mutate_const_spec.rb:582 + # ./spec/rspec/mocks/to_ary_spec.rb:3 - 658) expect(...).to receive_messages(:a => 1, :b => 2) provides a matcher description + 658) 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/matchers/receive_messages_spec.rb:101 + # ./spec/rspec/mocks/to_ary_spec.rb:40 - 659) expect(...).to receive_messages(:a => 1, :b => 2) fails with the correct location + 659) 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/matchers/receive_messages_spec.rb:93 + # ./spec/rspec/mocks/to_ary_spec.rb:48 - 660) expect(...).to receive_messages(:a => 1, :b => 2) fails with a sensible message + 660) 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/matchers/receive_messages_spec.rb:87 + # ./spec/rspec/mocks/to_ary_spec.rb:23 - 661) expect(...).to receive_messages(:a => 1, :b => 2) sets up multiple expectations + 661) 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/matchers/receive_messages_spec.rb:81 + # ./spec/rspec/mocks/to_ary_spec.rb:3 - 662) expect(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a do; end; block is given + 662) 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/matchers/receive_messages_spec.rb:10 + # ./spec/rspec/mocks/to_ary_spec.rb:8 - 663) expect(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given + 663) 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/matchers/receive_messages_spec.rb:4 + # ./spec/rspec/mocks/to_ary_spec.rb:27 - 664) expect(...).to receive_messages(:a => 1, :b => 2) behaves like handles partially mocked objects correctly resets partially mocked objects correctly + 664) 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/matchers/receive_messages_spec.rb:22 + # ./spec/rspec/mocks/to_ary_spec.rb:31 - 665) #once fails when not called + 665) 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/once_counts_spec.rb:42 + # ./spec/rspec/mocks/to_ary_spec.rb:13 - 666) #once fails when called with wrong args + 666) 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/once_counts_spec.rb:26 + # ./spec/rspec/mocks/stub_chain_spec.rb:96 - 667) #once passes when called once with unspecified args + 667) 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/once_counts_spec.rb:20 + # ./spec/rspec/mocks/stub_chain_spec.rb:147 - 668) #once passes when called once with specified args + 668) 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/once_counts_spec.rb:14 + # ./spec/rspec/mocks/stub_chain_spec.rb:6 - 669) #once fails fast when called twice + 669) 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/once_counts_spec.rb:34 + # ./spec/rspec/mocks/stub_chain_spec.rb:160 - 670) #once passes when called once + 670) 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/once_counts_spec.rb:8 + # ./spec/rspec/mocks/stub_chain_spec.rb:152 - 671) #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 + 671) 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/once_counts_spec.rb:50 + # ./spec/rspec/mocks/stub_chain_spec.rb:104 - 672) #once when called with negative expectation raises an error + 672) 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/once_counts_spec.rb:73 + # ./spec/rspec/mocks/stub_chain_spec.rb:114 - 673) Constant Mutating #stub_const requires a string argument + 673) 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/mutate_const_spec.rb:221 + # ./spec/rspec/mocks/stub_chain_spec.rb:126 - 674) 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 + 674) 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/mutate_const_spec.rb:427 + # ./spec/rspec/mocks/stub_chain_spec.rb:136 - 675) 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 + 675) 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/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/stub_chain_spec.rb:16 - 676) 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 + 676) 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/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/stub_chain_spec.rb:23 - 677) 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 + 677) 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/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/stub_chain_spec.rb:30 - 678) 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 + 678) 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/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/stub_chain_spec.rb:68 - 679) 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 + 679) 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/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/stub_chain_spec.rb:82 - 680) Constant Mutating #stub_const for an unloaded constant nested in a module that redefines `send` behaves like unloaded constant stubbing returns the stubbed value + 680) 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/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/stub_chain_spec.rb:75 - 681) 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 + 681) 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/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/stub_chain_spec.rb:89 - 682) 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 + 682) 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/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/stub_chain_spec.rb:38 - 683) 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 + 683) 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/mutate_const_spec.rb:418 + # ./spec/rspec/mocks/stub_chain_spec.rb:52 - 684) 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 + 684) 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/mutate_const_spec.rb:409 + # ./spec/rspec/mocks/stub_chain_spec.rb:45 - 685) Constant Mutating #stub_const for an unloaded constant nested within a loaded constant behaves like unloaded constant stubbing allows it to be stubbed + 685) 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/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/stub_chain_spec.rb:59 - 686) 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 + 686) 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/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/message_expectation_string_representation_spec.rb:6 - 687) Constant Mutating #stub_const for an unloaded constant nested within a loaded constant behaves like unloaded constant stubbing returns the stubbed value + 687) 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/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/message_expectation_string_representation_spec.rb:12 - 688) 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 + 688) 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/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/message_expectation_string_representation_spec.rb:18 - 689) 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 + 689) #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/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/thrice_counts_spec.rb:28 - 690) 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 + 690) #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/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/thrice_counts_spec.rb:8 - 691) 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 + 691) #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/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/thrice_counts_spec.rb:61 - 692) 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 + 692) #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/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/thrice_counts_spec.rb:52 - 693) 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 + 693) #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/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/thrice_counts_spec.rb:14 - 694) Constant Mutating #stub_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant stubbing returns the stubbed value + 694) #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/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/thrice_counts_spec.rb:20 - 695) 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 + 695) #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/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/thrice_counts_spec.rb:36 - 696) Constant Mutating #stub_const for an unloaded deeply nested constant removes the root constant when rspec clears its mocks + 696) #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/mutate_const_spec.rb:398 + # ./spec/rspec/mocks/thrice_counts_spec.rb:44 - 697) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 697) #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/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/thrice_counts_spec.rb:72 - 698) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 698) 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/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:60 - 699) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing allows it to be stubbed + 699) 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/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:67 - 700) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing returns the stubbed value + 700) 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/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:75 - 701) Constant Mutating #stub_const for a loaded deeply nested constant behaves like loaded constant stubbing returns the stubbed value + 701) 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/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:82 - 702) 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 + 702) 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/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:112 - 703) Constant Mutating #stub_const for a loaded deeply nested constant behaves like loaded constant stubbing allows it to be stubbed + 703) 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/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 - 704) Constant Mutating #stub_const for a loaded nested constant behaves like loaded constant stubbing returns the stubbed value + 704) 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/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 - 705) Constant Mutating #stub_const for a loaded nested constant behaves like loaded constant stubbing allows it to be stubbed + 705) 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/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/precise_counts_spec.rb:56 - 706) 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 + 706) 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/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/precise_counts_spec.rb:27 - 707) Constant Mutating #stub_const for an unloaded nested constant removes the root constant when rspec clears its mocks + 707) 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/mutate_const_spec.rb:387 + # ./spec/rspec/mocks/precise_counts_spec.rb:34 - 708) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 708) 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/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/precise_counts_spec.rb:17 - 709) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing allows it to be stubbed + 709) 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/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/precise_counts_spec.rb:42 - 710) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing returns the stubbed value + 710) 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/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/precise_counts_spec.rb:8 - 711) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 711) 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/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/precise_counts_spec.rb:48 - 712) Constant Mutating #stub_const for a loaded unnested constant removes the transferred constants on reset + 712) .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/mutate_const_spec.rb:247 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:16 - 713) Constant Mutating #stub_const for a loaded unnested constant does not transfer nested constants that are inherited from a superclass + 713) .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/mutate_const_spec.rb:256 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:36 - 714) Constant Mutating #stub_const for a loaded unnested constant allows nested constants to be selectively transferred to a stub module + 714) .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/mutate_const_spec.rb:274 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:6 - 715) 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 + 715) .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/mutate_const_spec.rb:298 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:31 - 716) 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 + 716) .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/mutate_const_spec.rb:282 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:26 - 717) Constant Mutating #stub_const for a loaded unnested constant can be stubbed multiple times but still restores the original value properly + 717) .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/mutate_const_spec.rb:228 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:47 - 718) Constant Mutating #stub_const for a loaded unnested constant raises an error when asked to transfer a nested inherited constant + 718) 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/mutate_const_spec.rb:264 + # ./spec/rspec/mocks/expiration_spec.rb:19 - 719) Constant Mutating #stub_const for a loaded unnested constant raises an error if asked to transfer a nested constant that is not defined + 719) 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/mutate_const_spec.rb:313 + # ./spec/rspec/mocks/expiration_spec.rb:51 - 720) Constant Mutating #stub_const for a loaded unnested constant allows nested constants to be transferred to a stub module + 720) 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/mutate_const_spec.rb:238 + # ./spec/rspec/mocks/expiration_spec.rb:29 - 721) 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 + 721) 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/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/expiration_spec.rb:41 - 722) Constant Mutating #stub_const for a loaded unnested constant behaves like loaded constant stubbing returns the stubbed value + 722) 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/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/expiration_spec.rb:35 - 723) Constant Mutating #stub_const for a loaded unnested constant behaves like loaded constant stubbing allows it to be stubbed + 723) 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/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/expiration_spec.rb:47 - 724) 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 + 724) 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/mutate_const_spec.rb:332 + # ./spec/rspec/mocks/expiration_spec.rb:23 - 725) 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 + 725) 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/mutate_const_spec.rb:342 + # ./spec/rspec/mocks/expiration_spec.rb:15 - 726) 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 + 726) 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/mutate_const_spec.rb:347 + # ./spec/rspec/mocks/expiration_spec.rb:35 - 727) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing allows it to be stubbed + 727) 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/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/expiration_spec.rb:51 - 728) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing returns the stubbed value + 728) 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/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/expiration_spec.rb:19 - 729) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 729) 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/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/expiration_spec.rb:41 - 730) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 730) 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/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/expiration_spec.rb:29 - 731) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 731) 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/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/expiration_spec.rb:23 - 732) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing returns the stubbed value + 732) 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/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/expiration_spec.rb:15 - 733) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 733) 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/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/expiration_spec.rb:47 - 734) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing allows it to be stubbed + 734) 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/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/expiration_spec.rb:23 - 735) Constant Mutating #stub_const for a loaded constant prefixed with :: behaves like loaded constant stubbing returns the stubbed value + 735) 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/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/expiration_spec.rb:47 - 736) 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 + 736) 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/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/expiration_spec.rb:41 - 737) Constant Mutating #stub_const for a loaded constant prefixed with :: behaves like loaded constant stubbing allows it to be stubbed + 737) 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/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/expiration_spec.rb:35 - 738) Constant Mutating #hide_const can be hidden multiple times but still restores the original value properly + 738) 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/mutate_const_spec.rb:193 + # ./spec/rspec/mocks/expiration_spec.rb:29 - 739) Constant Mutating #hide_const allows a constant to be hidden, then stubbed, restoring it to its original value properly + 739) 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/mutate_const_spec.rb:202 + # ./spec/rspec/mocks/expiration_spec.rb:19 - 740) 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 + 740) 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/mutate_const_spec.rb:134 + # ./spec/rspec/mocks/expiration_spec.rb:51 - 741) Constant Mutating #hide_const for an unloaded unnested constant behaves like unloaded constant hiding remains undefined after rspec clears its mocks + 741) 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/mutate_const_spec.rb:139 + # ./spec/rspec/mocks/expiration_spec.rb:15 - 742) Constant Mutating #hide_const for an unloaded unnested constant behaves like unloaded constant hiding returns nil + 742) 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/mutate_const_spec.rb:145 + # ./spec/rspec/mocks/expiration_spec.rb:41 - 743) Constant Mutating #hide_const for a loaded nested constant behaves like loaded constant hiding allows it to be hidden + 743) 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/mutate_const_spec.rb:82 + # ./spec/rspec/mocks/expiration_spec.rb:15 - 744) Constant Mutating #hide_const for a loaded nested constant behaves like loaded constant hiding returns nil + 744) 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/mutate_const_spec.rb:93 + # ./spec/rspec/mocks/expiration_spec.rb:47 - 745) Constant Mutating #hide_const for a loaded nested constant behaves like loaded constant hiding resets the constant when rspec clear its mocks + 745) 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/mutate_const_spec.rb:87 + # ./spec/rspec/mocks/expiration_spec.rb:35 - 746) Constant Mutating #hide_const for an unloaded constant with nested name that matches a top-level constant does not hide the top-level constant + 746) 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/mutate_const_spec.rb:166 + # ./spec/rspec/mocks/expiration_spec.rb:29 - 747) 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 + 747) 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/mutate_const_spec.rb:134 + # ./spec/rspec/mocks/expiration_spec.rb:19 - 748) 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 + 748) 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/mutate_const_spec.rb:139 + # ./spec/rspec/mocks/expiration_spec.rb:51 - 749) Constant Mutating #hide_const for an unloaded constant with nested name that matches a top-level constant behaves like unloaded constant hiding returns nil + 749) 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/mutate_const_spec.rb:145 + # ./spec/rspec/mocks/expiration_spec.rb:23 - 750) 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 + 750) 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/mutate_const_spec.rb:82 + # ./spec/rspec/mocks/null_object_double_spec.rb:8 - 751) 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 + 751) 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/mutate_const_spec.rb:87 + # ./spec/rspec/mocks/null_object_double_spec.rb:12 - 752) Constant Mutating #hide_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant hiding returns nil + 752) 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/mutate_const_spec.rb:93 + # ./spec/rspec/mocks/null_object_double_spec.rb:17 - 753) Constant Mutating #hide_const for a loaded constant prefixed with :: behaves like loaded constant hiding resets the constant when rspec clear its mocks + 753) .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/mutate_const_spec.rb:87 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:85 - 754) Constant Mutating #hide_const for a loaded constant prefixed with :: behaves like loaded constant hiding allows it to be hidden + 754) .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/mutate_const_spec.rb:82 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:91 - 755) Constant Mutating #hide_const for a loaded constant prefixed with :: behaves like loaded constant hiding returns nil + 755) .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/mutate_const_spec.rb:93 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:66 - 756) Constant Mutating #hide_const for a loaded deeply nested constant behaves like loaded constant hiding resets the constant when rspec clear its mocks + 756) .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/mutate_const_spec.rb:87 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:79 - 757) Constant Mutating #hide_const for a loaded deeply nested constant behaves like loaded constant hiding returns nil + 757) .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/mutate_const_spec.rb:93 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:56 - 758) Constant Mutating #hide_const for a loaded deeply nested constant behaves like loaded constant hiding allows it to be hidden + 758) .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/mutate_const_spec.rb:82 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:73 - 759) Constant Mutating #hide_const for an unloaded nested constant behaves like unloaded constant hiding returns nil + 759) .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/mutate_const_spec.rb:145 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:102 - 760) Constant Mutating #hide_const for an unloaded nested constant behaves like unloaded constant hiding remains undefined after rspec clears its mocks + 760) 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/mutate_const_spec.rb:139 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:32 - 761) 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 + 761) 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/mutate_const_spec.rb:134 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:45 - 762) and_call_original on a partial double that overrides #method still works even though #method has been overridden + 762) 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/and_call_original_spec.rb:344 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:67 - 763) and_call_original on a partial double that overrides #method works for a singleton method + 763) 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/and_call_original_spec.rb:349 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:58 - 764) and_call_original on a pure test double raises an error even if the double object responds to the message + 764) 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/and_call_original_spec.rb:362 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:18 - 765) and_call_original on a partial double works for methods that accept keyword arguments + 765) #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/and_call_original_spec.rb:237 + # ./spec/rspec/mocks/null_object_double_spec.rb:120 - 766) 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 + 766) #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/and_call_original_spec.rb:124 + # ./spec/rspec/mocks/any_instance_spec.rb:47 - 767) and_call_original on a partial double works for methods added through an extended module + 767) #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/and_call_original_spec.rb:111 + # ./spec/rspec/mocks/any_instance_spec.rb:1281 - 768) and_call_original on a partial double works for class methods defined on a superclass + 768) #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/and_call_original_spec.rb:188 + # ./spec/rspec/mocks/any_instance_spec.rb:1286 - 769) and_call_original on a partial double works for aliased methods + 769) #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/and_call_original_spec.rb:225 + # ./spec/rspec/mocks/any_instance_spec.rb:91 - 770) and_call_original on a partial double works for instance methods defined on the object's class's superclass + 770) #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/and_call_original_spec.rb:218 + # ./spec/rspec/mocks/any_instance_spec.rb:188 - 771) and_call_original on a partial double works for class methods defined on the Class class + 771) #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/and_call_original_spec.rb:213 + # ./spec/rspec/mocks/any_instance_spec.rb:203 - 772) and_call_original on a partial double works for method added through an extended module onto a class's ancestor + 772) #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/and_call_original_spec.rb:117 + # ./spec/rspec/mocks/any_instance_spec.rb:196 - 773) and_call_original on a partial double errors when you pass through the wrong number of args + 773) #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/and_call_original_spec.rb:82 + # ./spec/rspec/mocks/any_instance_spec.rb:181 - 774) and_call_original on a partial double passes the received message through to the original method + 774) #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/and_call_original_spec.rb:65 + # ./spec/rspec/mocks/any_instance_spec.rb:291 - 775) and_call_original on a partial double warns when you override an existing implementation + 775) #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/and_call_original_spec.rb:90 + # ./spec/rspec/mocks/any_instance_spec.rb:349 - 776) and_call_original on a partial double works for class methods defined on a grandparent class + 776) #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/and_call_original_spec.rb:207 + # ./spec/rspec/mocks/any_instance_spec.rb:235 - 777) and_call_original on a partial double ignores prior declared stubs + 777) #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/and_call_original_spec.rb:70 + # ./spec/rspec/mocks/any_instance_spec.rb:229 - 778) and_call_original on a partial double passes args and blocks through to the original method + 778) #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/and_call_original_spec.rb:76 + # ./spec/rspec/mocks/any_instance_spec.rb:254 - 779) 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 + 779) #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/and_call_original_spec.rb:133 + # ./spec/rspec/mocks/any_instance_spec.rb:248 - 780) and_call_original on a partial double for singleton methods works for SimpleDelegator subclasses + 780) #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/and_call_original_spec.rb:103 + # ./spec/rspec/mocks/any_instance_spec.rb:323 - 781) and_call_original on a partial double for singleton methods works + 781) #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/and_call_original_spec.rb:97 + # ./spec/rspec/mocks/any_instance_spec.rb:328 - 782) and_call_original on a partial double on an object that defines method_missing works when the method_missing definition handles the message + 782) #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/and_call_original_spec.rb:295 + # ./spec/rspec/mocks/any_instance_spec.rb:311 - 783) 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 + 783) #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/and_call_original_spec.rb:312 + # ./spec/rspec/mocks/any_instance_spec.rb:316 - 784) 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 + 784) #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/and_call_original_spec.rb:305 + # ./spec/rspec/mocks/any_instance_spec.rb:271 - 785) and_call_original on a partial double on an object that defines method_missing works for an any_instance partial mock + 785) #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/and_call_original_spec.rb:300 + # ./spec/rspec/mocks/any_instance_spec.rb:278 - 786) 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 + 786) #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/and_call_original_spec.rb:195 + # ./spec/rspec/mocks/any_instance_spec.rb:266 - 787) and_call_original on a partial double when using any_instance works for instance methods that use double splat + 787) #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/and_call_original_spec.rb:149 + # ./spec/rspec/mocks/any_instance_spec.rb:261 - 788) 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 + 788) #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/and_call_original_spec.rb:182 + # ./spec/rspec/mocks/any_instance_spec.rb:138 - 789) and_call_original on a partial double when using any_instance works for instance methods that use required keyword arguments + 789) #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/and_call_original_spec.rb:168 + # ./spec/rspec/mocks/any_instance_spec.rb:172 - 790) and_call_original on a partial double when using any_instance works for instance methods defined on the superclass of the class + 790) #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/and_call_original_spec.rb:176 + # ./spec/rspec/mocks/any_instance_spec.rb:163 - 791) and_call_original on a partial double when using any_instance works for instance methods defined on the class + 791) #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/and_call_original_spec.rb:143 + # ./spec/rspec/mocks/any_instance_spec.rb:157 - 792) and_call_original on a partial double when using any_instance works for instance methods that use optional keyword arguments with an argument supplied + 792) #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/and_call_original_spec.rb:159 + # ./spec/rspec/mocks/any_instance_spec.rb:150 - 793) and_call_original on a partial double when using any_instance works for instance methods that use optional keyword arguments + 793) #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/and_call_original_spec.rb:154 + # ./spec/rspec/mocks/any_instance_spec.rb:144 - 794) and_call_original on a partial double when a non-existent method has been stubbed previously restores the original NameError behavior + 794) #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/and_call_original_spec.rb:54 + # ./spec/rspec/mocks/any_instance_spec.rb:301 - 795) and_call_original on a partial double when a method that exists has been stubbed previously restores the original behavior + 795) #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/and_call_original_spec.rb:46 + # ./spec/rspec/mocks/any_instance_spec.rb:213 - 796) 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 + 796) #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/and_call_original_spec.rb:266 + # ./spec/rspec/mocks/any_instance_spec.rb:97 - 797) 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 + 797) #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/and_call_original_spec.rb:271 + # ./spec/rspec/mocks/any_instance_spec.rb:115 - 798) when using the :expect syntax still supports null object doubles + 798) #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/null_object_double_spec.rb:129 + # ./spec/rspec/mocks/any_instance_spec.rb:105 - 799) RSpec::Mocks.verify delegates to the space + 799) #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_spec.rb:42 + # ./spec/rspec/mocks/any_instance_spec.rb:110 - 800) RSpec::Mocks.with_temporary_scope returns the result of the passed block + 800) #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_spec.rb:212 + # ./spec/rspec/mocks/any_instance_spec.rb:120 - 801) RSpec::Mocks.with_temporary_scope tears down even if an error occurs + 801) #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_spec.rb:189 + # ./spec/rspec/mocks/any_instance_spec.rb:127 - 802) RSpec::Mocks.with_temporary_scope does not verify if an error occurs before the block completes + 802) #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_spec.rb:202 + # ./spec/rspec/mocks/any_instance_spec.rb:375 - 803) RSpec::Mocks.with_temporary_scope in a before(:all) with an unmet mock expectation fails with a mock expectation error + 803) #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_spec.rb:158 + # ./spec/rspec/mocks/any_instance_spec.rb:365 - 804) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed double allows the stubbed double to be used + 804) #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_spec.rb:107 + # ./spec/rspec/mocks/any_instance_spec.rb:390 - 805) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed double does not allow the double to be used in the examples + 805) #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_spec.rb:111 + # ./spec/rspec/mocks/any_instance_spec.rb:380 - 806) 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) + 806) #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_spec.rb:117 + # ./spec/rspec/mocks/any_instance_spec.rb:385 - 807) 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) + 807) #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_spec.rb:142 + # ./spec/rspec/mocks/any_instance_spec.rb:370 - 808) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed const allows the stubbed constants to be used + 808) #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_spec.rb:133 + # ./spec/rspec/mocks/any_instance_spec.rb:396 - 809) 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 + 809) #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_spec.rb:137 + # ./spec/rspec/mocks/any_instance_spec.rb:335 - 810) RSpec::Mocks.with_temporary_scope in a before(:all) with an any_instance stub allows the stub to be used + 810) #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_spec.rb:173 + # ./spec/rspec/mocks/any_instance_spec.rb:340 - 811) 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) + 811) #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_spec.rb:183 + # ./spec/rspec/mocks/any_instance_spec.rb:1194 - 812) 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 + 812) #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_spec.rb:177 + # ./spec/rspec/mocks/any_instance_spec.rb:1185 - 813) RSpec::Mocks when there is a `let` declaration that overrides an argument matcher allows the `let` definition to win + 813) #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_spec.rb:229 + # ./spec/rspec/mocks/any_instance_spec.rb:1207 - 814) RSpec::Mocks.teardown resets method stubs + 814) #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_spec.rb:54 + # ./spec/rspec/mocks/any_instance_spec.rb:1213 - 815) RSpec::Mocks.teardown does not put rspec-mocks into an inconsistent state when called extra times + 815) #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_spec.rb:61 + # ./spec/rspec/mocks/any_instance_spec.rb:1240 - 816) RSpec::Mocks behaves like library wide checks issues no warnings when loaded + 816) #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/any_instance_spec.rb:1231 - 817) RSpec::Mocks behaves like library wide checks issues no warnings when the spec files are loaded + 817) #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/any_instance_spec.rb:1266 - 818) 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 + 818) #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/any_instance_spec.rb:1259 - 819) RSpec::Mocks behaves like library wide checks has no malformed whitespace + 819) #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/any_instance_spec.rb:1250 - 820) RSpec::Mocks.setup starts a new space scope that is later removed by .teardown + 820) #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:76 + # ./spec/rspec/mocks/any_instance_spec.rb:477 - 821) RSpec::Mocks.configuration returns a memoized configuration instance + 821) #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_spec.rb:89 + # ./spec/rspec/mocks/any_instance_spec.rb:468 - 822) Verified double naming class_spy behaves like a named verifying double when a name is given as a string + 822) #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/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/any_instance_spec.rb:512 - 823) Verified double naming class_spy behaves like a named verifying double when no name is given + 823) #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/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/any_instance_spec.rb:472 - 824) Verified double naming class_spy behaves like a named verifying double when a name is given as a symbol + 824) #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/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/any_instance_spec.rb:460 - 825) Verified double naming object_spy behaves like a named verifying double when a name is given as a string + 825) #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/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/any_instance_spec.rb:490 - 826) Verified double naming object_spy behaves like a named verifying double when no name is given + 826) #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/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/any_instance_spec.rb:497 - 827) Verified double naming object_spy behaves like a named verifying double when a name is given as a symbol + 827) #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/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/any_instance_spec.rb:504 - 828) Verified double naming instance_spy behaves like a named verifying double when a name is given as a symbol + 828) #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/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/any_instance_spec.rb:523 - 829) Verified double naming instance_spy behaves like a named verifying double when a name is given as a string + 829) #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/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/any_instance_spec.rb:547 - 830) Verified double naming instance_spy behaves like a named verifying double when no name is given + 830) #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/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/any_instance_spec.rb:555 - 831) Verified double naming object_double behaves like a named verifying double when a name is given as a string + 831) #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/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/any_instance_spec.rb:782 - 832) Verified double naming object_double behaves like a named verifying double when a name is given as a symbol + 832) #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/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/any_instance_spec.rb:572 - 833) Verified double naming object_double behaves like a named verifying double when no name is given + 833) #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/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/any_instance_spec.rb:585 - 834) Verified double naming class_double behaves like a named verifying double when no name is given + 834) #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/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/any_instance_spec.rb:792 - 835) Verified double naming class_double behaves like a named verifying double when a name is given as a symbol + 835) #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/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/any_instance_spec.rb:538 - 836) Verified double naming class_double behaves like a named verifying double when a name is given as a string + 836) #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/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/any_instance_spec.rb:563 - 837) Verified double naming instance_double behaves like a named verifying double when a name is given as a symbol + 837) #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/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/any_instance_spec.rb:831 - 838) Verified double naming instance_double behaves like a named verifying double when no name is given + 838) #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/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/any_instance_spec.rb:807 - 839) Verified double naming instance_double behaves like a named verifying double when a name is given as a string + 839) #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/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/any_instance_spec.rb:824 - 840) 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 + 840) #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/matchers/have_received_spec.rb:637 + # ./spec/rspec/mocks/any_instance_spec.rb:813 - 841) 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 + 841) #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/matchers/have_received_spec.rb:653 + # ./spec/rspec/mocks/any_instance_spec.rb:881 - 842) 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 + 842) #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/matchers/have_received_spec.rb:629 + # ./spec/rspec/mocks/any_instance_spec.rb:875 - 843) 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 + 843) #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/matchers/have_received_spec.rb:571 + # ./spec/rspec/mocks/any_instance_spec.rb:1008 - 844) 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 + 844) #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/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/any_instance_spec.rb:1003 - 845) 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 + 845) #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/matchers/have_received_spec.rb:576 + # ./spec/rspec/mocks/any_instance_spec.rb:1022 - 846) 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 + 846) #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/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/any_instance_spec.rb:1016 - 847) 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 + 847) #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/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/any_instance_spec.rb:987 - 848) 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 + 848) #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/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/any_instance_spec.rb:993 - 849) 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 + 849) #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/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/any_instance_spec.rb:981 - 850) 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 + 850) #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/matchers/have_received_spec.rb:595 + # ./spec/rspec/mocks/any_instance_spec.rb:948 - 851) 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 + 851) #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/matchers/have_received_spec.rb:584 + # ./spec/rspec/mocks/any_instance_spec.rb:939 - 852) 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 + 852) #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/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/any_instance_spec.rb:933 - 853) 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 + 853) #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/matchers/have_received_spec.rb:609 + # ./spec/rspec/mocks/any_instance_spec.rb:918 - 854) 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 + 854) #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/matchers/have_received_spec.rb:604 + # ./spec/rspec/mocks/any_instance_spec.rb:924 - 855) 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 + 855) #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/matchers/have_received_spec.rb:645 + # ./spec/rspec/mocks/any_instance_spec.rb:973 - 856) 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 + 856) #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/matchers/have_received_spec.rb:100 + # ./spec/rspec/mocks/any_instance_spec.rb:958 - 857) 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 + 857) #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/matchers/have_received_spec.rb:30 + # ./spec/rspec/mocks/any_instance_spec.rb:964 - 858) 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 + 858) #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/matchers/have_received_spec.rb:195 + # ./spec/rspec/mocks/any_instance_spec.rb:898 - 859) 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 + 859) #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/matchers/have_received_spec.rb:80 + # ./spec/rspec/mocks/any_instance_spec.rb:906 - 860) 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 + 860) #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/matchers/have_received_spec.rb:124 + # ./spec/rspec/mocks/any_instance_spec.rb:892 - 861) 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 + 861) #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/matchers/have_received_spec.rb:90 + # ./spec/rspec/mocks/any_instance_spec.rb:864 - 862) 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 + 862) #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/matchers/have_received_spec.rb:183 + # ./spec/rspec/mocks/any_instance_spec.rb:856 - 863) 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 + 863) #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/matchers/have_received_spec.rb:35 + # ./spec/rspec/mocks/any_instance_spec.rb:844 - 864) 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 + 864) #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/matchers/have_received_spec.rb:54 + # ./spec/rspec/mocks/any_instance_spec.rb:849 - 865) 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` + 865) #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/matchers/have_received_spec.rb:134 + # ./spec/rspec/mocks/any_instance_spec.rb:676 - 866) 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 + 866) #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/matchers/have_received_spec.rb:146 + # ./spec/rspec/mocks/any_instance_spec.rb:661 - 867) 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 + 867) #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/matchers/have_received_spec.rb:156 + # ./spec/rspec/mocks/any_instance_spec.rb:684 - 868) 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 + 868) #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/matchers/have_received_spec.rb:43 + # ./spec/rspec/mocks/any_instance_spec.rb:656 - 869) 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) + 869) #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/matchers/have_received_spec.rb:188 + # ./spec/rspec/mocks/any_instance_spec.rb:669 - 870) 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 + 870) #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/matchers/have_received_spec.rb:62 + # ./spec/rspec/mocks/any_instance_spec.rb:700 - 871) 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 + 871) #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/matchers/have_received_spec.rb:25 + # ./spec/rspec/mocks/any_instance_spec.rb:694 - 872) 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 + 872) #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/matchers/have_received_spec.rb:70 + # ./spec/rspec/mocks/any_instance_spec.rb:713 - 873) 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 + 873) #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/matchers/have_received_spec.rb:111 + # ./spec/rspec/mocks/any_instance_spec.rb:724 - 874) 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 + 874) #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/matchers/have_received_spec.rb:174 + # ./spec/rspec/mocks/any_instance_spec.rb:747 - 875) 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 + 875) #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/matchers/have_received_spec.rb:169 + # ./spec/rspec/mocks/any_instance_spec.rb:754 - 876) 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 + 876) #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/matchers/have_received_spec.rb:517 + # ./spec/rspec/mocks/any_instance_spec.rb:739 - 877) 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 + 877) #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/matchers/have_received_spec.rb:484 + # ./spec/rspec/mocks/any_instance_spec.rb:734 - 878) 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 + 878) #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/matchers/have_received_spec.rb:455 + # ./spec/rspec/mocks/any_instance_spec.rb:769 - 879) 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 + 879) #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/matchers/have_received_spec.rb:447 + # ./spec/rspec/mocks/any_instance_spec.rb:763 - 880) 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 + 880) #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/matchers/have_received_spec.rb:555 + # ./spec/rspec/mocks/any_instance_spec.rb:622 - 881) 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 + 881) #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/matchers/have_received_spec.rb:560 + # ./spec/rspec/mocks/any_instance_spec.rb:636 - 882) 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 + 882) #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/matchers/have_received_spec.rb:538 + # ./spec/rspec/mocks/any_instance_spec.rb:645 - 883) 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 + 883) #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/matchers/have_received_spec.rb:533 + # ./spec/rspec/mocks/any_instance_spec.rb:595 - 884) 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 + 884) #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/matchers/have_received_spec.rb:369 + # ./spec/rspec/mocks/any_instance_spec.rb:602 - 885) 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 + 885) #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/matchers/have_received_spec.rb:361 + # ./spec/rspec/mocks/any_instance_spec.rb:612 - 886) 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 + 886) #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/have_received_spec.rb:355 + # ./spec/rspec/mocks/any_instance_spec.rb:411 - 887) 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 + 887) #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/have_received_spec.rb:420 + # ./spec/rspec/mocks/any_instance_spec.rb:436 - 888) 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 + 888) #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/have_received_spec.rb:430 + # ./spec/rspec/mocks/any_instance_spec.rb:427 - 889) 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 + 889) #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/have_received_spec.rb:411 + # ./spec/rspec/mocks/any_instance_spec.rb:418 - 890) 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 + 890) #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/have_received_spec.rb:215 + # ./spec/rspec/mocks/any_instance_spec.rb:452 - 891) 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 + 891) #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/have_received_spec.rb:231 + # ./spec/rspec/mocks/any_instance_spec.rb:444 - 892) 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 + 892) #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/have_received_spec.rb:221 + # ./spec/rspec/mocks/any_instance_spec.rb:405 - 893) 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 + 893) #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/have_received_spec.rb:239 + # ./spec/rspec/mocks/any_instance_spec.rb:1312 - 894) 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 + 894) #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/have_received_spec.rb:273 + # ./spec/rspec/mocks/any_instance_spec.rb:1323 - 895) 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 + 895) #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/have_received_spec.rb:247 + # ./spec/rspec/mocks/any_instance_spec.rb:1331 - 896) 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 + 896) #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/have_received_spec.rb:285 + # ./spec/rspec/mocks/any_instance_spec.rb:1305 - 897) 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 + 897) #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/have_received_spec.rb:264 + # ./spec/rspec/mocks/any_instance_spec.rb:1300 - 898) 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 + 898) #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/have_received_spec.rb:398 + # ./spec/rspec/mocks/any_instance_spec.rb:1169 - 899) 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 + 899) #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/have_received_spec.rb:389 + # ./spec/rspec/mocks/any_instance_spec.rb:1159 - 900) 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 + 900) #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/have_received_spec.rb:381 + # ./spec/rspec/mocks/any_instance_spec.rb:1147 - 901) 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 + 901) #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/have_received_spec.rb:297 + # ./spec/rspec/mocks/any_instance_spec.rb:1136 - 902) 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 + 902) #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/have_received_spec.rb:301 + # ./spec/rspec/mocks/any_instance_spec.rb:1141 - 903) 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 + 903) #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/have_received_spec.rb:315 + # ./spec/rspec/mocks/any_instance_spec.rb:1126 - 904) 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 + 904) #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/have_received_spec.rb:339 + # ./spec/rspec/mocks/any_instance_spec.rb:1121 - 905) 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 + 905) #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/have_received_spec.rb:343 + # ./spec/rspec/mocks/any_instance_spec.rb:1110 - 906) 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 + 906) #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/have_received_spec.rb:347 + # ./spec/rspec/mocks/any_instance_spec.rb:1114 - 907) 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 + 907) #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/have_received_spec.rb:323 + # ./spec/rspec/mocks/any_instance_spec.rb:1106 - 908) 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 + 908) #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/have_received_spec.rb:327 + # ./spec/rspec/mocks/any_instance_spec.rb:1056 - 909) 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 + 909) #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/matchers/have_received_spec.rb:331 + # ./spec/rspec/mocks/any_instance_spec.rb:1065 - 910) a double stubbed with multiple return values can still set a message expectation with a single return value + 910) #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/multiple_return_value_spec.rb:10 + # ./spec/rspec/mocks/any_instance_spec.rb:1049 - 911) An instance double with the doubled class not loaded allows any instance method to be expected + 911) #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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:25 + # ./spec/rspec/mocks/any_instance_spec.rb:1087 - 912) An instance double with the doubled class not loaded allows any instance method to be stubbed + 912) #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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:19 + # ./spec/rspec/mocks/any_instance_spec.rb:1091 - 913) An instance double with the doubled class not loaded includes the doubled module in errors for unexpected messages + 913) #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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:12 + # ./spec/rspec/mocks/any_instance_spec.rb:1083 - 914) An instance double with the doubled class not loaded handles classes that are materialized after mocking + 914) #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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:35 + # ./spec/rspec/mocks/any_instance_spec.rb:83 - 915) An instance double with the doubled class not loaded for null objects returns self from any message + 915) #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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:45 + # ./spec/rspec/mocks/any_instance_spec.rb:78 - 916) An instance double with the doubled class not loaded for null objects reports it responds to any message + 916) #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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:49 + # ./spec/rspec/mocks/any_instance_spec.rb:67 - 917) 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')` + 917) #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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:59 + # ./spec/rspec/mocks/any_instance_spec.rb:59 - 918) 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)` + 918) #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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:64 + # ./spec/rspec/mocks/any_instance_spec.rb:55 - 919) and_return when no argument is passed raises ArgumentError + 919) #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/and_return_spec.rb:15 + # ./spec/rspec/mocks/any_instance_spec.rb:63 - 920) and_return when a block is passed raises ArgumentError + 920) #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/and_return_spec.rb:7 + # ./spec/rspec/mocks/any_instance_spec.rb:71 - 921) An object double validates `with` args against the method signature when stubbing a method + 921) 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/verifying_doubles/object_double_spec.rb:62 + # ./spec/rspec/mocks/serialization_spec.rb:84 - 922) An object double does not allow as_stubbed_constant for real objects + 922) 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/verifying_doubles/object_double_spec.rb:52 + # ./spec/rspec/mocks/serialization_spec.rb:77 - 923) An object double can create a double that matches the interface of any arbitrary object + 923) 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/verifying_doubles/object_double_spec.rb:32 + # ./spec/rspec/mocks/serialization_spec.rb:47 - 924) An object double can replace an unloaded constant + 924) 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/verifying_doubles/object_double_spec.rb:8 + # ./spec/rspec/mocks/serialization_spec.rb:43 - 925) An object double can replace a constant by name and verify instance methods + 925) 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/verifying_doubles/object_double_spec.rb:17 + # ./spec/rspec/mocks/partial_double_spec.rb:241 - 926) An object double is not a module + 926) 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/verifying_doubles/object_double_spec.rb:58 + # ./spec/rspec/mocks/partial_double_spec.rb:236 - 927) An object double does not allow transferring constants to an object + 927) 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/object_double_spec.rb:45 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:60 - 928) 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')` + 928) 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/object_double_spec.rb:72 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:15 - 929) 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 + 929) 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/object_double_spec.rb:78 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:4 - 930) An object double when an unloaded object constant has previously been stubbed with an object treats it as being unloaded for `object_double('ConstName')` + 930) 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/object_double_spec.rb:106 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:24 - 931) 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 + 931) 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/object_double_spec.rb:111 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:38 - 932) An object double when an unloaded object constant has previously been stubbed with a class treats it as being unloaded for `object_double('ConstName')` + 932) 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/object_double_spec.rb:124 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:53 - 933) An object double when an unloaded object constant has previously been stubbed with a class treats it as being unloaded for `object_double(ConstName)` + 933) 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/verifying_doubles/object_double_spec.rb:129 + # ./spec/rspec/mocks/partial_double_spec.rb:278 - 934) 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)` + 934) 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/verifying_doubles/object_double_spec.rb:96 + # ./spec/rspec/mocks/partial_double_spec.rb:292 - 935) 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')` + 935) 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/verifying_doubles/object_double_spec.rb:90 + # ./spec/rspec/mocks/partial_double_spec.rb:296 - 936) stub implementation with no args execs the block when called + 936) 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/stub_implementation_spec.rb:5 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:55 - 937) stub implementation with variable args execs the block when called + 937) 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/stub_implementation_spec.rb:21 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:49 - 938) stub implementation with one arg execs the block with that arg when called + 938) 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/stub_implementation_spec.rb:13 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 - 939) a message expectation with multiple return values and no specified count fails when there are too many calls (if there is no stub) + 939) 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/multiple_return_value_spec.rb:44 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 - 940) a message expectation with multiple return values and no specified count returns values in order + 940) 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/multiple_return_value_spec.rb:23 + # ./spec/rspec/mocks/should_syntax_spec.rb:574 - 941) a message expectation with multiple return values and no specified count falls back to a previously stubbed value + 941) 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/multiple_return_value_spec.rb:30 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:4 - 942) a message expectation with multiple return values and no specified count fails when there are too few calls (if there is no stub) + 942) 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/multiple_return_value_spec.rb:38 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:81 - 943) Using a partial mock on a proxy object works properly + 943) 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/rspec/mocks/partial_double_spec.rb:236 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:89 - 944) Using a partial mock on a proxy object does not confuse the proxy and the proxied object + 944) 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/partial_double_spec.rb:241 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:99 - 945) Loading rspec/mocks/standalone exposes the RSpec::Mocks API on `main` + 945) 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/standalone_spec.rb:7 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:63 - 946) Loading rspec/mocks/standalone does not infect other objects with the RSpec::Mocks API + 946) 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/standalone_spec.rb:20 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:72 - 947) Diffs printed when arguments don't match with a matcher object that defines #description uses the object's description + 947) 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/diffing_spec.rb:270 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:27 - 948) 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 + 948) 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/diffing_spec.rb:287 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:20 - 949) 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 + 949) 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/diffing_spec.rb:90 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:42 - 950) Diffs printed when arguments don't match with a non matcher object does not print a diff when single line arguments are mismatched + 950) 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/rspec/mocks/diffing_spec.rb:12 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:12 - 951) Diffs printed when arguments don't match with a non matcher object prints a diff with array args + 951) 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/diffing_spec.rb:241 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:29 - 952) Diffs printed when arguments don't match with a non matcher object prints a diff of the args lists for multiple mismatched string arguments + 952) 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/diffing_spec.rb:57 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:38 - 953) Diffs printed when arguments don't match with a non matcher object prints a diff with hash args + 953) 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/diffing_spec.rb:81 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:52 - 954) 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 + 954) 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/diffing_spec.rb:46 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:58 - 955) 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 + 955) 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/diffing_spec.rb:33 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:66 - 956) 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 + 956) 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/diffing_spec.rb:68 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:14 - 957) 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 + 957) 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/diffing_spec.rb:21 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:45 - 958) 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) + 958) 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/diffing_spec.rb:187 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:22 - 959) 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) + 959) 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/diffing_spec.rb:174 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:38 - 960) 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 + 960) 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/diffing_spec.rb:201 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:45 - 961) 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 + 961) 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/diffing_spec.rb:133 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:14 - 962) 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) + 962) 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/diffing_spec.rb:102 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:66 - 963) 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) + 963) 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/diffing_spec.rb:117 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:52 - 964) 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 + 964) 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/diffing_spec.rb:251 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:58 - 965) RSpec::Mocks::Double yields 0 args to blocks that take a variable number of arguments + 965) 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/double_spec.rb:430 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:22 - 966) RSpec::Mocks::Double passes when receiving message specified as not to be received with different args + 966) 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/double_spec.rb:123 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:29 - 967) RSpec::Mocks::Double is wrappable in an array when a null object + 967) 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/double_spec.rb:296 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:92 - 968) RSpec::Mocks::Double fails when calling yielding method with wrong arity + 968) 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/double_spec.rb:520 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:100 - 969) RSpec::Mocks::Double fails on no args if any args received + 969) 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/double_spec.rb:409 + # ./spec/integration/rails_support_spec.rb:10 - 970) RSpec::Mocks::Double fails when receiving message specified as not to be received + 970) 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/double_spec.rb:130 + # ./spec/integration/rails_support_spec.rb:37 - 971) RSpec::Mocks::Double allows `class` to be stubbed even when `any_instance` has already been used + 971) 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/double_spec.rb:60 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:60 - 972) RSpec::Mocks::Double fails if expectation block fails + 972) 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/double_spec.rb:280 + # ./spec/rspec/mocks/spy_spec.rb:84 - 973) RSpec::Mocks::Double yields two values + 973) 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/double_spec.rb:501 + # ./spec/rspec/mocks/spy_spec.rb:39 - 974) RSpec::Mocks::Double yields single value 3 times consecutively + 974) 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/double_spec.rb:491 + # ./spec/rspec/mocks/spy_spec.rb:45 - 975) RSpec::Mocks::Double returns the stubbed value when stubbed with args and no new value specified + 975) 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/double_spec.rb:628 + # ./spec/rspec/mocks/spy_spec.rb:35 - 976) RSpec::Mocks::Double does not get confused when a negative expectation is used with a string and symbol message + 976) 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/double_spec.rb:178 + # ./spec/rspec/mocks/spy_spec.rb:27 - 977) RSpec::Mocks::Double uses block for expectation if provided + 977) 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/double_spec.rb:270 + # ./spec/rspec/mocks/spy_spec.rb:31 - 978) RSpec::Mocks::Double fails when array arguments do not match + 978) 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/double_spec.rb:150 + # ./spec/rspec/mocks/spy_spec.rb:66 - 979) RSpec::Mocks::Double passes proc to expectation block without an argument + 979) 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/double_spec.rb:316 + # ./spec/rspec/mocks/spy_spec.rb:35 - 980) RSpec::Mocks::Double fails when calling yielding method with invalid kw args + 980) 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/double_spec.rb:528 + # ./spec/rspec/mocks/spy_spec.rb:27 - 981) RSpec::Mocks::Double responds to to_ary as a null object + 981) 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/double_spec.rb:302 + # ./spec/rspec/mocks/spy_spec.rb:31 - 982) RSpec::Mocks::Double fails when receiving message specified as not to be received with args + 982) 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/double_spec.rb:140 + # ./spec/rspec/mocks/spy_spec.rb:39 - 983) RSpec::Mocks::Double yields one arg to blocks that take a variable number of arguments + 983) 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/double_spec.rb:447 + # ./spec/rspec/mocks/spy_spec.rb:45 - 984) RSpec::Mocks::Double passes proc to stub block without an argument + 984) 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/double_spec.rb:326 + # ./spec/rspec/mocks/spy_spec.rb:123 - 985) RSpec::Mocks::Double raises exception if args don't match when method called even when using null_object + 985) 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/double_spec.rb:243 + # ./spec/rspec/mocks/spy_spec.rb:39 - 986) RSpec::Mocks::Double returns value from block by default + 986) 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/double_spec.rb:423 + # ./spec/rspec/mocks/spy_spec.rb:35 - 987) RSpec::Mocks::Double does not require a different signature to replace a method stub + 987) 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/double_spec.rb:596 + # ./spec/rspec/mocks/spy_spec.rb:45 - 988) RSpec::Mocks::Double does not mess with the stub's yielded values when also doubleed + 988) 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/double_spec.rb:635 + # ./spec/rspec/mocks/spy_spec.rb:27 - 989) RSpec::Mocks::Double does not raise when told to if args dont match + 989) 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/double_spec.rb:386 + # ./spec/rspec/mocks/spy_spec.rb:31 - 990) RSpec::Mocks::Double passes proc to expectation block with an argument + 990) 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/double_spec.rb:321 + # ./spec/rspec/mocks/spy_spec.rb:105 - 991) RSpec::Mocks::Double ignores args on any args + 991) 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/double_spec.rb:400 + # ./spec/rspec/mocks/spy_spec.rb:27 - 992) RSpec::Mocks::Double fails if unexpected method called + 992) 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/double_spec.rb:264 + # ./spec/rspec/mocks/spy_spec.rb:39 - 993) RSpec::Mocks::Double returns the stubbed value when no new value specified + 993) 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/double_spec.rb:621 + # ./spec/rspec/mocks/spy_spec.rb:45 - 994) RSpec::Mocks::Double uses 'Double' in failure messages + 994) 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/double_spec.rb:15 + # ./spec/rspec/mocks/spy_spec.rb:31 - 995) RSpec::Mocks::Double hides internals in its inspect representation + 995) 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/double_spec.rb:20 + # ./spec/rspec/mocks/spy_spec.rb:35 - 996) RSpec::Mocks::Double raises an exception of a given type without an error message + 996) 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/double_spec.rb:352 + # ./spec/rspec/mocks/spy_spec.rb:21 - 997) RSpec::Mocks::Double returns nil if no return value is set and there is no previously stubbed value + 997) 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/double_spec.rb:210 + # ./spec/rspec/mocks/spy_spec.rb:13 - 998) RSpec::Mocks::Double does not blow up when resetting standard object methods + 998) 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/double_spec.rb:25 + # ./spec/rspec/mocks/spy_spec.rb:5 - 999) RSpec::Mocks::Double fails when calling yielding method consecutively with wrong arity + 999) 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/double_spec.rb:536 + # ./spec/rspec/mocks/spy_spec.rb:9 - 1000) RSpec::Mocks::Double raises an error when a previously stubbed method has a negative expectation + 1000) 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/double_spec.rb:605 + # ./spec/rspec/mocks/spy_spec.rb:17 - 1001) RSpec::Mocks::Double is wrappable in an array + 1001) 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/double_spec.rb:290 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:33 - 1002) RSpec::Mocks::Double fails right away when method defined as never is received + 1002) 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/double_spec.rb:336 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:12 - 1003) RSpec::Mocks::Double has method_missing as private + 1003) 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/double_spec.rb:7 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:20 - 1004) RSpec::Mocks::Double clears expectations after verify + 1004) 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/double_spec.rb:571 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:57 - 1005) RSpec::Mocks::Double temporarily replaces a method stub on a non-double + 1005) 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/double_spec.rb:611 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:87 - 1006) RSpec::Mocks::Double raises an exception of a given type with a message + 1006) 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/double_spec.rb:357 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:38 - 1007) RSpec::Mocks::Double temporarily replaces a method stub on a double + 1007) 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/double_spec.rb:587 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:133 - 1008) RSpec::Mocks::Double yields single value + 1008) 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/double_spec.rb:483 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:43 - 1009) RSpec::Mocks::Double allows setter methods to be stubbed + 1009) 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/double_spec.rb:52 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:149 - 1010) RSpec::Mocks::Double raises exception if args don't match when method called + 1010) 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/double_spec.rb:216 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:79 - 1011) RSpec::Mocks::Double raises a given instance of an exception + 1011) 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/double_spec.rb:362 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:49 - 1012) RSpec::Mocks::Double passes proc to stub block with an argument + 1012) 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/double_spec.rb:331 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:142 - 1013) RSpec::Mocks::Double throws when told to + 1013) 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/double_spec.rb:393 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:70 - 1014) RSpec::Mocks::Double fails when calling yielding method without block + 1014) 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/double_spec.rb:546 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:171 - 1015) RSpec::Mocks::Double reports line number of expectation of unreceived message after a message expectation after similar stub + 1015) 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/double_spec.rb:87 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:126 - 1016) RSpec::Mocks::Double allows `send` to be stubbed + 1016) 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/double_spec.rb:71 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:100 - 1017) RSpec::Mocks::Double does not get confused when a positive expectation is used with a string and symbol message + 1017) 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/double_spec.rb:187 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:115 - 1018) RSpec::Mocks::Double is able to raise from method calling yielding double + 1018) 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/double_spec.rb:559 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:93 - 1019) RSpec::Mocks::Double raises RuntimeError by default + 1019) 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/double_spec.rb:342 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:106 - 1020) RSpec::Mocks::Double yields many args to blocks that take a variable number of arguments + 1020) 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/double_spec.rb:465 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:163 - 1021) RSpec::Mocks::Double assigns stub return values + 1021) 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/double_spec.rb:653 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:157 - 1022) RSpec::Mocks::Double raises exception if args don't match when method called even when the method is stubbed + 1022) 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/double_spec.rb:234 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:194 - 1023) RSpec::Mocks::Double yields 0 args multiple times to blocks that take a variable number of arguments + 1023) 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/double_spec.rb:438 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:188 - 1024) RSpec::Mocks::Double is able to double send + 1024) 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/double_spec.rb:553 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:223 - 1025) RSpec::Mocks::Double raises RuntimeError with a message by default + 1025) 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/double_spec.rb:347 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:210 - 1026) RSpec::Mocks::Double yields many args 3 times consecutively to blocks that take a variable number of arguments + 1026) 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/double_spec.rb:473 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:200 - 1027) RSpec::Mocks::Double can yield multiple times when told to do so + 1027) 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/double_spec.rb:643 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:181 - 1028) RSpec::Mocks::Double allows parameter as return value + 1028) 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:197 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:10 - 1029) RSpec::Mocks::Double yields one arg 3 times consecutively to blocks that take a variable number of arguments + 1029) 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/double_spec.rb:455 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:25 - 1030) RSpec::Mocks::Double returns the previously stubbed value if no return value is set + 1030) 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/double_spec.rb:203 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:12 - 1031) RSpec::Mocks::Double reports line number of expectation of unreceived message + 1031) 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/double_spec.rb:77 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:35 - 1032) RSpec::Mocks::Double responds to to_a as a null object + 1032) 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/double_spec.rb:306 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:19 - 1033) RSpec::Mocks::Double fails when args are expected but none are received + 1033) 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/double_spec.rb:416 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:59 - 1034) RSpec::Mocks::Double prevents confusing double-negative expressions involving `never` + 1034) 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/double_spec.rb:103 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:64 - 1035) RSpec::Mocks::Double does not respond_to? method_missing (because it's private) + 1035) 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/double_spec.rb:11 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:45 - 1036) RSpec::Mocks::Double generates the correct error when an unfulfilled expectation uses an unused double as a `with` argument + 1036) 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/double_spec.rb:38 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:49 - 1037) RSpec::Mocks::Double allows string representation of methods in constructor + 1037) 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/double_spec.rb:47 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:87 - 1038) RSpec::Mocks::Double restores objects to their original state on rspec_reset + 1038) 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/double_spec.rb:580 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:101 - 1039) RSpec::Mocks::Double passes when not receiving message specified as not to be received + 1039) 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/double_spec.rb:98 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:81 - 1040) RSpec::Mocks::Double raises a given instance of an exception with arguments other than the standard 'message' + 1040) 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/double_spec.rb:375 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:93 - 1041) RSpec::Mocks::Double does not get string vs symbol messages confused + 1041) 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/double_spec.rb:31 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 - 1042) RSpec::Mocks::Double warns when `and_return` is called on a negative expectation + 1042) 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/double_spec.rb:109 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 - 1043) RSpec::Mocks::Double yields two values 3 times consecutively + 1043) 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/double_spec.rb:510 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:22 - 1044) RSpec::Mocks::Double double created with no name does not use a name in a failure message + 1044) 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/double_spec.rb:739 + # ./spec/rspec/mocks/partial_double_spec.rb:26 - 1045) RSpec::Mocks::Double double created with no name does respond to initially stubbed methods + 1045) 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/double_spec.rb:744 + # ./spec/rspec/mocks/partial_double_spec.rb:46 - 1046) RSpec::Mocks::Double with with a block with non-matching args fails + 1046) 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/double_spec.rb:815 + # ./spec/rspec/mocks/partial_double_spec.rb:6 - 1047) RSpec::Mocks::Double with with a block with matching args returns the result of the block + 1047) 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/double_spec.rb:808 + # ./spec/rspec/mocks/partial_double_spec.rb:19 - 1048) RSpec::Mocks::Double with with args with non-matching args fails + 1048) 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/double_spec.rb:772 + # ./spec/rspec/mocks/partial_double_spec.rb:64 - 1049) RSpec::Mocks::Double with with args with matching args passes + 1049) 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/double_spec.rb:765 + # ./spec/rspec/mocks/partial_double_spec.rb:124 - 1050) RSpec::Mocks::Double with with args with non-matching doubles as_null_object fails + 1050) 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/double_spec.rb:794 + # ./spec/rspec/mocks/partial_double_spec.rb:86 - 1051) RSpec::Mocks::Double with with args with non-matching doubles fails + 1051) 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/double_spec.rb:782 + # ./spec/rspec/mocks/partial_double_spec.rb:74 - 1052) 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 + 1052) 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/double_spec.rb:253 + # ./spec/rspec/mocks/partial_double_spec.rb:32 - 1053) RSpec::Mocks::Double == sends '== self' to the comparison object + 1053) 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/double_spec.rb:752 + # ./spec/rspec/mocks/partial_double_spec.rb:100 - 1054) 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 + 1054) 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/double_spec.rb:224 + # ./spec/rspec/mocks/partial_double_spec.rb:168 - 1055) RSpec::Mocks::Double a double message receiving a block calls the block after #twice + 1055) 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/double_spec.rb:693 + # ./spec/rspec/mocks/partial_double_spec.rb:79 - 1056) RSpec::Mocks::Double a double message receiving a block supports a block passed to `receive` for `expect` + 1056) 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/double_spec.rb:668 + # ./spec/rspec/mocks/partial_double_spec.rb:160 - 1057) RSpec::Mocks::Double a double message receiving a block calls the block after #ordered + 1057) 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/double_spec.rb:710 + # ./spec/rspec/mocks/partial_double_spec.rb:112 - 1058) RSpec::Mocks::Double a double message receiving a block calls the block after #once + 1058) 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/double_spec.rb:685 + # ./spec/rspec/mocks/partial_double_spec.rb:119 - 1059) RSpec::Mocks::Double a double message receiving a block supports a block passed to `receive` for `expect` after a similar stub + 1059) 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/double_spec.rb:676 + # ./spec/rspec/mocks/partial_double_spec.rb:132 - 1060) RSpec::Mocks::Double a double message receiving a block calls the block after #times + 1060) 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/double_spec.rb:702 + # ./spec/rspec/mocks/partial_double_spec.rb:145 - 1061) 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 + 1061) 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/double_spec.rb:162 + # ./spec/rspec/mocks/partial_double_spec.rb:95 - 1062) 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 + 1062) 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/double_spec.rb:170 + # ./spec/rspec/mocks/partial_double_spec.rb:12 - 1063) RSpec::Mocks::Double string representation generated by #to_s does not contain < because that might lead to invalid HTML in some situations + 1063) 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/double_spec.rb:722 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:58 - 1064) RSpec::Mocks::Double#to_str should not respond to #to_str to avoid being coerced to strings by the runtime + 1064) 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/double_spec.rb:730 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:32 - 1065) unstubbing with `and_call_original` replaces the stubbed method with the original method + 1065) 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/stub_implementation_spec.rb:30 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:8 - 1066) unstubbing with `and_call_original` does not remove any expectations with the same method name + 1066) 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/stub_implementation_spec.rb:47 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:52 - 1067) unstubbing with `and_call_original` removes all stubs with the supplied method name + 1067) 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/stub_implementation_spec.rb:38 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:45 - 1068) unstubbing with `and_call_original` when partial doubles are verified restores the correct implementations when stubbed and unstubbed on a parent and child class + 1068) 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/stub_implementation_spec.rb:58 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:62 - 1069) unstubbing with `and_call_original` when partial doubles are verified restores the correct implementations when stubbed and unstubbed on a grandparent and grandchild class + 1069) 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/stub_implementation_spec.rb:71 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:17 - 1070) unstubbing with `and_call_original` when partial doubles are verified handles keyword arguments correctly + 1070) 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/stub_implementation_spec.rb:97 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:78 - 1071) 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 + 1071) 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/stub_implementation_spec.rb:58 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:72 - 1072) 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 + 1072) 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/stub_implementation_spec.rb:71 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:124 - 1073) RSpec::Mocks::Space raises ArgumentError with message if object is symbol + 1073) 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:241 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:129 - 1074) RSpec::Mocks::Space can be diffed in a failure when it has references to an error generator via a proxy + 1074) 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:229 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:111 - 1075) RSpec::Mocks::Space only adds an instance once + 1075) 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:120 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:106 - 1076) RSpec::Mocks::Space tracks proxies in parent and child space separately + 1076) 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:108 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:96 - 1077) RSpec::Mocks::Space#ensure_registered returns the proxy for the given object + 1077) 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:90 - 1078) RSpec::Mocks::Space#ensure_registered can still return a proxy from a parent context + 1078) 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/space_spec.rb:147 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:44 - 1079) RSpec::Mocks::Space#ensure_registered does not store a parent's proxy in the child space + 1079) 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/space_spec.rb:154 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:30 - 1080) RSpec::Mocks::Space#any_instance_recorder_for returns the recorder for the given class + 1080) 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/space_spec.rb:206 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:23 - 1081) RSpec::Mocks::Space#any_instance_recorder_for can still return a recorder from a parent context + 1081) 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/space_spec.rb:212 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:38 - 1082) RSpec::Mocks::Space#any_instance_recorder_for does not store a parent's proxy in the child space + 1082) 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/space_spec.rb:219 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:7 - 1083) RSpec::Mocks::Space#reset_all allows Array#reverse to be stubbed + 1083) 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/space_spec.rb:61 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:12 - 1084) RSpec::Mocks::Space#reset_all resets all mocks within + 1084) 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/space_spec.rb:50 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:18 - 1085) RSpec::Mocks::Space#proxy_for returns the proxy for the given object + 1085) 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/space_spec.rb:138 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:28 - 1086) RSpec::Mocks::Space#proxy_for can still return a proxy from a parent context + 1086) 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/space_spec.rb:147 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:33 - 1087) RSpec::Mocks::Space#proxy_for does not store a parent's proxy in the child space + 1087) 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/space_spec.rb:154 + # ./spec/rspec/mocks/stash_spec.rb:12 - 1088) RSpec::Mocks::Space#proxies_of(klass) looks in the parent space for matching proxies + 1088) 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/space_spec.rb:97 + # ./spec/rspec/mocks/stash_spec.rb:26 - 1089) RSpec::Mocks::Space#proxies_of(klass) returns only the proxies whose object is an instance of the given class + 1089) 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/space_spec.rb:86 + # ./spec/rspec/mocks/example_methods_spec.rb:31 - 1090) RSpec::Mocks::Space#proxies_of(klass) returns proxies + 1090) 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/space_spec.rb:69 + # ./spec/rspec/mocks/example_methods_spec.rb:21 - 1091) RSpec::Mocks::Space#registered? returns false if not registered in this or a parent space + 1091) 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/space_spec.rb:176 + # ./spec/rspec/mocks/example_methods_spec.rb:25 - 1092) RSpec::Mocks::Space#registered? returns true if registered in this space + 1092) 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/space_spec.rb:166 + # ./spec/rspec/mocks/example_methods_spec.rb:4 - 1093) RSpec::Mocks::Space#registered? returns true if registered in a parent space + 1093) #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/space_spec.rb:171 + # ./spec/rspec/mocks/twice_counts_spec.rb:29 - 1094) RSpec::Mocks::Space#verify_all does not reset the proxies (as that should be delayed until reset_all) + 1094) #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/space_spec.rb:39 + # ./spec/rspec/mocks/twice_counts_spec.rb:15 - 1095) RSpec::Mocks::Space#verify_all verifies all mocks within + 1095) #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/space_spec.rb:9 + # ./spec/rspec/mocks/twice_counts_spec.rb:38 - 1096) RSpec::Mocks::Space#verify_all verifies all any_instance recorders within + 1096) #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/space_spec.rb:25 + # ./spec/rspec/mocks/twice_counts_spec.rb:8 - 1097) RSpec::Mocks::Space#constant_mutator_for returns the mutator for the given const name + 1097) #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/space_spec.rb:182 + # ./spec/rspec/mocks/twice_counts_spec.rb:46 - 1098) RSpec::Mocks::Space#constant_mutator_for can still return a mutator from a parent context + 1098) #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/space_spec.rb:192 + # ./spec/rspec/mocks/twice_counts_spec.rb:54 - 1099) #as_null_object sets the object to null_object + 1099) #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/null_object_double_spec.rb:113 + # ./spec/rspec/mocks/twice_counts_spec.rb:22 - 1100) RSpec::Mocks::TestDouble copies the `as_null_object` state when dup'd + 1100) #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/test_double_spec.rb:34 + # ./spec/rspec/mocks/twice_counts_spec.rb:89 - 1101) RSpec::Mocks::TestDouble copies the `as_null_object` state when clone'd + 1101) #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/test_double_spec.rb:34 + # ./spec/rspec/mocks/twice_counts_spec.rb:64 - 1102) RSpec::Mocks::TestDouble with syntax [:should, :expect] stubs the methods passed in the stubs hash + 1102) 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/test_double_spec.rb:48 + # ./spec/rspec/mocks/null_object_double_spec.rb:96 - 1103) RSpec::Mocks::TestDouble with syntax [:should] stubs the methods passed in the stubs hash + 1103) 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/test_double_spec.rb:48 + # ./spec/rspec/mocks/null_object_double_spec.rb:84 - 1104) RSpec::Mocks::TestDouble with syntax [:expect] stubs the methods passed in the stubs hash + 1104) 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/test_double_spec.rb:48 + # ./spec/rspec/mocks/null_object_double_spec.rb:69 - 1105) RSpec::Mocks::TestDouble#freeze gives a warning + 1105) 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/test_double_spec.rb:7 + # ./spec/rspec/mocks/null_object_double_spec.rb:47 - 1106) RSpec::Mocks::TestDouble#freeze doesn't freeze the object + 1106) 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/test_double_spec.rb:17 + # ./spec/rspec/mocks/null_object_double_spec.rb:51 - 1107) RSpec::Mocks::TestDouble#freeze returns the instance of the test double + 1107) 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/test_double_spec.rb:27 + # ./spec/rspec/mocks/null_object_double_spec.rb:33 - 1108) RSpec::Mocks::TestDouble#freeze gives the correct call site for the warning + 1108) 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/test_double_spec.rb:12 + # ./spec/rspec/mocks/null_object_double_spec.rb:37 - 1109) RSpec::Mocks::Double#and_yield with eval context as block argument passes an eval context object to the supplied block + 1109) 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/and_yield_spec.rb:29 + # ./spec/rspec/mocks/null_object_double_spec.rb:42 - 1110) 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 + 1110) 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/and_yield_spec.rb:35 + # ./spec/rspec/mocks/null_object_double_spec.rb:104 - 1111) RSpec::Mocks::Double#and_yield with eval context as block argument evaluates the supplied block as it is read + 1111) 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/and_yield_spec.rb:21 + # ./spec/rspec/mocks/null_object_double_spec.rb:56 - 1112) 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 + 1112) 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/and_yield_spec.rb:66 + # ./spec/rspec/mocks/null_object_double_spec.rb:90 - 1113) 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 + 1113) 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/and_yield_spec.rb:52 + # ./spec/rspec/mocks/null_object_double_spec.rb:79 - 1114) 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 + 1114) 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/and_yield_spec.rb:139 + # ./spec/rspec/mocks/null_object_double_spec.rb:62 - 1115) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments can yield to a block that uses `super` + 1115) 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/and_yield_spec.rb:128 + # ./spec/rspec/mocks/null_object_double_spec.rb:74 - 1116) 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 + 1116) 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/and_yield_spec.rb:84 + # ./spec/rspec/mocks/null_object_double_spec.rb:129 - 1117) 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 + 1117) 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/and_yield_spec.rb:114 + # ./spec/rspec/mocks/and_call_original_spec.rb:362 - 1118) 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 + 1118) 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/and_yield_spec.rb:103 + # ./spec/rspec/mocks/and_call_original_spec.rb:344 - 1119) 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 + 1119) 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/and_yield_spec.rb:7 + # ./spec/rspec/mocks/and_call_original_spec.rb:349 - 1120) RSpec::Mocks::InstanceMethodStasher stashes private instance methods + 1120) 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/instance_method_stasher_spec.rb:32 + # ./spec/rspec/mocks/and_call_original_spec.rb:237 - 1121) RSpec::Mocks::InstanceMethodStasher does not unnecessarily create obfuscated aliased methods + 1121) 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/instance_method_stasher_spec.rb:58 + # ./spec/rspec/mocks/and_call_original_spec.rb:218 - 1122) RSpec::Mocks::InstanceMethodStasher stashes the current implementation of an instance method so it can be temporarily replaced + 1122) 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/instance_method_stasher_spec.rb:18 + # ./spec/rspec/mocks/and_call_original_spec.rb:133 - 1123) RSpec::Mocks::InstanceMethodStasher undefines the original method + 1123) 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/instance_method_stasher_spec.rb:67 + # ./spec/rspec/mocks/and_call_original_spec.rb:225 - 1124) RSpec::Mocks::InstanceMethodStasher only stashes methods directly defined on the given class, not its ancestors + 1124) 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/instance_method_stasher_spec.rb:45 + # ./spec/rspec/mocks/and_call_original_spec.rb:111 - 1125) .allow_message does not set an expectation that the message will be received + 1125) 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/syntax_agnostic_message_matchers_spec.rb:31 + # ./spec/rspec/mocks/and_call_original_spec.rb:82 - 1126) .allow_message sets up basic message allowance + 1126) 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/syntax_agnostic_message_matchers_spec.rb:6 + # ./spec/rspec/mocks/and_call_original_spec.rb:90 - 1127) .allow_message does not get confused when the string and symbol message form are both used + 1127) 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/syntax_agnostic_message_matchers_spec.rb:36 + # ./spec/rspec/mocks/and_call_original_spec.rb:65 - 1128) .allow_message supports block implementations + 1128) 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/syntax_agnostic_message_matchers_spec.rb:26 + # ./spec/rspec/mocks/and_call_original_spec.rb:188 - 1129) .allow_message sets up message allowance with params and return value + 1129) 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/syntax_agnostic_message_matchers_spec.rb:16 + # ./spec/rspec/mocks/and_call_original_spec.rb:207 - 1130) .allow_message when target cannot be proxied raises ArgumentError with message + 1130) 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/syntax_agnostic_message_matchers_spec.rb:47 + # ./spec/rspec/mocks/and_call_original_spec.rb:124 - 1131) An instance double with the doubled class loaded checks that stubbed methods are invoked with the correct arity + 1131) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:79 + # ./spec/rspec/mocks/and_call_original_spec.rb:213 - 1132) An instance double with the doubled class loaded checks that stubbed methods with required keyword args are invoked with the required arguments + 1132) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:133 + # ./spec/rspec/mocks/and_call_original_spec.rb:76 - 1133) An instance double with the doubled class loaded allows keyword arguments + 1133) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:87 + # ./spec/rspec/mocks/and_call_original_spec.rb:117 - 1134) An instance double with the doubled class loaded checks the arity of stubbed methods + 1134) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:70 + # ./spec/rspec/mocks/and_call_original_spec.rb:70 - 1135) An instance double with the doubled class loaded only allows instance methods that exist to be stubbed + 1135) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:12 + # ./spec/rspec/mocks/and_call_original_spec.rb:97 - 1136) An instance double with the doubled class loaded suggests using `class_double` when a class method is stubbed + 1136) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:33 + # ./spec/rspec/mocks/and_call_original_spec.rb:103 - 1137) An instance double with the doubled class loaded gives a descriptive error message for NoMethodError + 1137) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:49 + # ./spec/rspec/mocks/and_call_original_spec.rb:54 - 1138) An instance double with the doubled class loaded does not allow dynamic methods to be expected + 1138) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:57 + # ./spec/rspec/mocks/and_call_original_spec.rb:195 - 1139) An instance double with the doubled class loaded allows `send` to be stubbed if it is defined on the class + 1139) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:43 + # ./spec/rspec/mocks/and_call_original_spec.rb:300 - 1140) An instance double with the doubled class loaded only allows instance methods that exist to be expected + 1140) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:20 + # ./spec/rspec/mocks/and_call_original_spec.rb:305 - 1141) An instance double with the doubled class loaded allows class to be specified by constant + 1141) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:149 + # ./spec/rspec/mocks/and_call_original_spec.rb:295 - 1142) An instance double with the doubled class loaded validates `with` args against the method signature when stubbing a method + 1142) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:142 + # ./spec/rspec/mocks/and_call_original_spec.rb:312 - 1143) An instance double with the doubled class loaded doesn't suggest `class_double` when a non-class method is stubbed + 1143) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:38 + # ./spec/rspec/mocks/and_call_original_spec.rb:271 - 1144) An instance double with the doubled class loaded when given a class that has an overridden `#name` method properly verifies + 1144) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:171 + # ./spec/rspec/mocks/and_call_original_spec.rb:266 - 1145) An instance double with the doubled class loaded for null objects verifies arguments + 1145) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:188 + # ./spec/rspec/mocks/and_call_original_spec.rb:176 - 1146) An instance double with the doubled class loaded for null objects only allows defined methods + 1146) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:181 + # ./spec/rspec/mocks/and_call_original_spec.rb:149 - 1147) 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 + 1147) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:210 + # ./spec/rspec/mocks/and_call_original_spec.rb:182 - 1148) An instance double with the doubled class loaded for null objects reports what public messages it responds to accurately + 1148) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:200 + # ./spec/rspec/mocks/and_call_original_spec.rb:159 - 1149) An instance double with the doubled class loaded for null objects reports that it responds to protected methods when the appropriate arg is passed + 1149) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:223 + # ./spec/rspec/mocks/and_call_original_spec.rb:154 - 1150) An instance double with the doubled class loaded for null objects includes the double's name in a private method error + 1150) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:194 + # ./spec/rspec/mocks/and_call_original_spec.rb:143 - 1151) 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 + 1151) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:93 + # ./spec/rspec/mocks/and_call_original_spec.rb:168 - 1152) 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 + 1152) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:106 + # ./spec/rspec/mocks/and_call_original_spec.rb:46 - 1153) 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 + 1153) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:115 + # ./spec/rspec/mocks/marshal_extension_spec.rb:17 - 1154) 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 + 1154) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:100 + # ./spec/rspec/mocks/marshal_extension_spec.rb:36 - 1155) 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 + 1155) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:126 + # ./spec/rspec/mocks/marshal_extension_spec.rb:31 - 1156) 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')` + 1156) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:157 + # ./spec/rspec/mocks/marshal_extension_spec.rb:24 - 1157) 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)` + 1157) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:163 + # ./spec/rspec/mocks/marshal_extension_spec.rb:58 - 1158) RSpec::Mocks::MessageExpectation has a nice string representation for a raw message expectation on a partial double + 1158) 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/message_expectation_string_representation_spec.rb:12 + # ./spec/rspec/mocks/partial_double_spec.rb:385 - 1159) RSpec::Mocks::MessageExpectation has a nice string representation for a raw message expectation on a test double + 1159) 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/message_expectation_string_representation_spec.rb:6 + # ./spec/rspec/mocks/partial_double_spec.rb:398 - 1160) RSpec::Mocks::MessageExpectation has a nice string representation for a message expectation constrained by `with` + 1160) 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/message_expectation_string_representation_spec.rb:18 + # ./spec/rspec/mocks/partial_double_spec.rb:547 - 1161) Method visibility when using partial mocks keeps public methods public + 1161) 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/partial_double_spec.rb:318 + # ./spec/rspec/mocks/partial_double_spec.rb:512 - 1162) Method visibility when using partial mocks keeps protected methods protected + 1162) 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/partial_double_spec.rb:330 + # ./spec/rspec/mocks/partial_double_spec.rb:487 - 1163) Method visibility when using partial mocks keeps private methods private + 1163) 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/partial_double_spec.rb:324 + # ./spec/rspec/mocks/partial_double_spec.rb:413 - 1164) Failure notification uses the rspec-support notifier to support `aggregate_failures` + 1164) 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/failure_notification_spec.rb:8 + # ./spec/rspec/mocks/partial_double_spec.rb:375 - 1165) Failure notification includes the line of future expectation in the notification for an unreceived message + 1165) 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/failure_notification_spec.rb:16 + # ./spec/rspec/mocks/partial_double_spec.rb:566 - 1166) 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 + 1166) 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/failure_notification_spec.rb:24 + # ./spec/rspec/mocks/partial_double_spec.rb:432 - 1167) Failure notification when using `aggregate_failures` spy failures for unreceived messages are reported correctly + 1167) 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/failure_notification_spec.rb:34 + # ./spec/rspec/mocks/partial_double_spec.rb:443 - 1168) Failure notification when using `aggregate_failures` spy failures for messages received with unexpected args are reported correctly + 1168) 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/failure_notification_spec.rb:45 + # ./spec/rspec/mocks/partial_double_spec.rb:421 - 1169) Failure notification when using `aggregate_failures` failing negative expectations are only notified once + 1169) 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/failure_notification_spec.rb:58 + # ./spec/rspec/mocks/partial_double_spec.rb:556 - 1170) 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 + 1170) 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:637 + # ./spec/rspec/mocks/partial_double_spec.rb:572 - 1171) 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 + 1171) 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:584 + # ./spec/rspec/mocks/partial_double_spec.rb:380 - 1172) 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 + 1172) 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:619 + # ./spec/rspec/mocks/partial_double_spec.rb:541 - 1173) 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 + 1173) 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:619 + # ./spec/rspec/mocks/partial_double_spec.rb:491 - 1174) 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 + 1174) 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:619 + # ./spec/rspec/mocks/partial_double_spec.rb:502 - 1175) 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 + 1175) 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:619 + # ./spec/rspec/mocks/partial_double_spec.rb:507 - 1176) 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 + 1176) 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:619 + # ./spec/rspec/mocks/partial_double_spec.rb:529 - 1177) 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 + 1177) 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:619 + # ./spec/rspec/mocks/partial_double_spec.rb:497 - 1178) 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 + 1178) 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 - 1179) 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 + 1179) 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:595 + # ./spec/rspec/mocks/partial_double_spec.rb:582 - 1180) 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 + 1180) 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:576 + # ./spec/rspec/mocks/partial_double_spec.rb:640 - 1181) 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 + 1181) 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:609 + # ./spec/rspec/mocks/partial_double_spec.rb:588 - 1182) 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 + 1182) 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:604 + # ./spec/rspec/mocks/partial_double_spec.rb:626 - 1183) 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 + 1183) 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:653 + # ./spec/rspec/mocks/partial_double_spec.rb:599 - 1184) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available allow(...).to have_received fails because it's nonsensical + 1184) 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:629 + # ./spec/rspec/mocks/partial_double_spec.rb:611 - 1185) 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 + 1185) 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:645 + # ./spec/rspec/mocks/partial_double_spec.rb:474 - 1186) 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) + 1186) 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 - 1187) 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 + 1187) 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/matchers/have_received_spec.rb:30 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:108 - 1188) 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 + 1188) 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/matchers/have_received_spec.rb:80 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:64 - 1189) 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 + 1189) 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/matchers/have_received_spec.rb:100 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:38 - 1190) 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 + 1190) 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/matchers/have_received_spec.rb:62 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:71 - 1191) 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 + 1191) 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/matchers/have_received_spec.rb:90 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:76 - 1192) 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 + 1192) 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/matchers/have_received_spec.rb:70 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:123 - 1193) 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 + 1193) 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/matchers/have_received_spec.rb:35 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:50 - 1194) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received generates a useful description + 1194) 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/matchers/have_received_spec.rb:183 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:115 - 1195) 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 + 1195) 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/matchers/have_received_spec.rb:111 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:57 - 1196) 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` + 1196) 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/matchers/have_received_spec.rb:134 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:43 - 1197) 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 + 1197) 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/matchers/have_received_spec.rb:195 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:99 - 1198) 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 + 1198) 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/matchers/have_received_spec.rb:54 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:81 - 1199) 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 + 1199) 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/matchers/have_received_spec.rb:124 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:20 - 1200) 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 + 1200) 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/matchers/have_received_spec.rb:25 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:92 - 1201) 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 + 1201) 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/matchers/have_received_spec.rb:156 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:33 - 1202) 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 + 1202) 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/matchers/have_received_spec.rb:146 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:12 - 1203) 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 + 1203) 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/matchers/have_received_spec.rb:43 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:193 - 1204) 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 + 1204) 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/matchers/have_received_spec.rb:174 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:197 - 1205) 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 + 1205) 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/matchers/have_received_spec.rb:169 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:135 - 1206) 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 + 1206) 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/matchers/have_received_spec.rb:381 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:154 - 1207) 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 + 1207) 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/matchers/have_received_spec.rb:398 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:142 - 1208) 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 + 1208) 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/matchers/have_received_spec.rb:389 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:167 - 1209) 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 + 1209) 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/matchers/have_received_spec.rb:215 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:217 - 1210) 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 + 1210) 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/matchers/have_received_spec.rb:231 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:211 - 1211) 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 + 1211) 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/matchers/have_received_spec.rb:221 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:184 - 1212) 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 + 1212) 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/have_received_spec.rb:239 + # ./spec/rspec/mocks/at_least_spec.rb:132 - 1213) 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 + 1213) 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/have_received_spec.rb:247 + # ./spec/rspec/mocks/at_least_spec.rb:23 - 1214) 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 + 1214) 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/have_received_spec.rb:273 + # ./spec/rspec/mocks/at_least_spec.rb:54 - 1215) 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 + 1215) 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/have_received_spec.rb:285 + # ./spec/rspec/mocks/at_least_spec.rb:63 - 1216) 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 + 1216) 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/have_received_spec.rb:264 + # ./spec/rspec/mocks/at_least_spec.rb:73 - 1217) 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 + 1217) 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/have_received_spec.rb:343 + # ./spec/rspec/mocks/at_least_spec.rb:118 - 1218) 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 + 1218) 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/have_received_spec.rb:347 + # ./spec/rspec/mocks/at_least_spec.rb:13 - 1219) 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 + 1219) 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/have_received_spec.rb:339 + # ./spec/rspec/mocks/at_least_spec.rb:139 - 1220) 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 + 1220) 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/have_received_spec.rb:315 + # ./spec/rspec/mocks/at_least_spec.rb:6 - 1221) 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 + 1221) 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/have_received_spec.rb:297 + # ./spec/rspec/mocks/at_least_spec.rb:30 - 1222) 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 + 1222) 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/have_received_spec.rb:301 + # ./spec/rspec/mocks/at_least_spec.rb:86 - 1223) 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 + 1223) 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/have_received_spec.rb:331 + # ./spec/rspec/mocks/at_least_spec.rb:45 - 1224) 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 + 1224) 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/have_received_spec.rb:327 + # ./spec/rspec/mocks/at_least_spec.rb:79 - 1225) 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 + 1225) 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/have_received_spec.rb:323 + # ./spec/rspec/mocks/at_least_spec.rb:38 - 1226) 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 + 1226) 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/have_received_spec.rb:361 + # ./spec/rspec/mocks/at_least_spec.rb:94 - 1227) 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 + 1227) 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/have_received_spec.rb:369 + # ./spec/rspec/mocks/at_least_spec.rb:109 - 1228) 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 + 1228) 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/have_received_spec.rb:355 + # ./spec/rspec/mocks/at_least_spec.rb:101 - 1229) 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 + 1229) 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/have_received_spec.rb:420 + # ./spec/rspec/mocks/at_least_spec.rb:147 - 1230) 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 + 1230) 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/have_received_spec.rb:430 + # ./spec/rspec/mocks/at_least_spec.rb:125 - 1231) 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 + 1231) 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/matchers/have_received_spec.rb:411 + # ./spec/rspec/mocks/partial_double_spec.rb:318 - 1232) 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 + 1232) 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/matchers/have_received_spec.rb:484 + # ./spec/rspec/mocks/partial_double_spec.rb:330 - 1233) 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 + 1233) 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/matchers/have_received_spec.rb:517 + # ./spec/rspec/mocks/partial_double_spec.rb:324 - 1234) 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 + 1234) 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/matchers/have_received_spec.rb:447 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:11 - 1235) 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 + 1235) 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/matchers/have_received_spec.rb:455 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:97 - 1236) 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 + 1236) 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/matchers/have_received_spec.rb:538 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:58 - 1237) 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 + 1237) 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/matchers/have_received_spec.rb:533 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:72 - 1238) 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 + 1238) 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/matchers/have_received_spec.rb:560 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:66 - 1239) 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 + 1239) 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/matchers/have_received_spec.rb:555 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:86 - 1240) OrderGroup #consume returns the first ordered? expectation + 1240) 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/order_group_spec.rb:18 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:80 - 1241) OrderGroup #consume keeps returning ordered? expectation until all are returned + 1241) 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/order_group_spec.rb:21 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:134 - 1242) RSpec::Mocks::ExampleMethods works properly when extended onto an object that later extends `RSpec::Matchers` + 1242) 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/example_methods_spec.rb:31 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:128 - 1243) RSpec::Mocks::ExampleMethods works properly when extended onto an object + 1243) 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/example_methods_spec.rb:21 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:150 - 1244) RSpec::Mocks::ExampleMethods works properly when extended onto an object that has previous extended `RSpec::Matchers` + 1244) 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/example_methods_spec.rb:25 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:119 - 1245) 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 + 1245) 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/example_methods_spec.rb:4 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:45 - 1246) 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 + 1246) 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/multiple_invoke_handler_spec.rb:100 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:29 - 1247) 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 + 1247) 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/multiple_invoke_handler_spec.rb:93 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:37 - 1248) 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 + 1248) 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/multiple_invoke_handler_spec.rb:106 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:111 - 1249) Methods added to every object limits the number of methods that get added to all objects + 1249) 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/methods_spec.rb:13 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:105 - 1250) a double receiving to_ary double as_null_object responds when overridden + 1250) #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/to_ary_spec.rb:8 + # ./spec/rspec/mocks/once_counts_spec.rb:26 - 1251) a double receiving to_ary double as_null_object supports Array#flatten + 1251) #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/to_ary_spec.rb:13 + # ./spec/rspec/mocks/once_counts_spec.rb:8 - 1252) a double receiving to_ary double as_null_object returns nil + 1252) #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/to_ary_spec.rb:31 + # ./spec/rspec/mocks/once_counts_spec.rb:14 - 1253) a double receiving to_ary double as_null_object does respond to to_a + 1253) #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/to_ary_spec.rb:27 + # ./spec/rspec/mocks/once_counts_spec.rb:34 - 1254) a double receiving to_ary double as_null_object does respond to to_ary + 1254) #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/to_ary_spec.rb:23 + # ./spec/rspec/mocks/once_counts_spec.rb:20 - 1255) a double receiving to_ary double as_null_object can be overridden with a stub + 1255) #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/to_ary_spec.rb:3 + # ./spec/rspec/mocks/once_counts_spec.rb:42 - 1256) a double receiving to_ary double without as_null_object can be overridden with a stub + 1256) #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/to_ary_spec.rb:3 + # ./spec/rspec/mocks/once_counts_spec.rb:73 - 1257) a double receiving to_ary double without as_null_object doesn't respond to to_ary + 1257) #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/to_ary_spec.rb:40 + # ./spec/rspec/mocks/once_counts_spec.rb:50 - 1258) a double receiving to_ary double without as_null_object doesn't respond to to_a + 1258) 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/to_ary_spec.rb:44 + # ./spec/rspec/mocks/error_generator_spec.rb:31 - 1259) a double receiving to_ary double without as_null_object raises + 1259) 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/to_ary_spec.rb:48 + # ./spec/rspec/mocks/error_generator_spec.rb:42 - 1260) a double receiving to_ary double without as_null_object supports Array#flatten + 1260) 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/to_ary_spec.rb:13 + # ./spec/rspec/mocks/error_generator_spec.rb:52 - 1261) a double receiving to_ary double without as_null_object responds when overridden + 1261) 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/to_ary_spec.rb:8 + # ./spec/rspec/mocks/error_generator_spec.rb:62 - 1262) PartialDoubleUsingMocksDirectly passes when expected message is received + 1262) 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/partial_double_using_mocks_directly_spec.rb:43 + # ./spec/rspec/mocks/error_generator_spec.rb:79 - 1263) PartialDoubleUsingMocksDirectly fails when expected message is not received + 1263) 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/partial_double_using_mocks_directly_spec.rb:28 + # ./spec/rspec/mocks/error_generator_spec.rb:15 - 1264) PartialDoubleUsingMocksDirectly fails when message is received with incorrect args + 1264) 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/partial_double_using_mocks_directly_spec.rb:35 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:47 - 1265) PartialDoubleUsingMocksDirectly passes when message is received with correct args + 1265) 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/partial_double_using_mocks_directly_spec.rb:49 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:139 - 1266) PartialDoubleUsingMocksDirectly restores the original method if it existed + 1266) 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/partial_double_using_mocks_directly_spec.rb:55 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:146 - 1267) PartialDoubleUsingMocksDirectly with an instance method handled by method_missing restores the original behavior + 1267) 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/partial_double_using_mocks_directly_spec.rb:64 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:132 - 1268) PartialDoubleUsingMocksDirectly with a class method handled by method_missing restores the original behavior + 1268) 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/partial_double_using_mocks_directly_spec.rb:74 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:125 - 1269) a message expectation with multiple invoke handlers specifying at_least less than the number of values uses the last return value for subsequent calls + 1269) 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/multiple_invoke_handler_spec.rb:60 + # ./spec/rspec/mocks/partial_double_spec.rb:268 - 1270) a message expectation with multiple invoke handlers specifying at_least less than the number of values fails when called less than the specified number + 1270) 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/multiple_invoke_handler_spec.rb:67 + # ./spec/rspec/mocks/formatting_spec.rb:94 - 1271) 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 + 1271) 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/multiple_invoke_handler_spec.rb:75 + # ./spec/rspec/mocks/formatting_spec.rb:59 - 1272) 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 + 1272) 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/multiple_invoke_handler_spec.rb:82 + # ./spec/rspec/mocks/formatting_spec.rb:54 - 1273) and_invoke when calling passed callables passes the arguments into the callable + 1273) 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/and_invoke_spec.rb:35 + # ./spec/rspec/mocks/formatting_spec.rb:48 - 1274) and_invoke when a block is passed raises ArgumentError + 1274) 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/and_invoke_spec.rb:7 + # ./spec/rspec/mocks/formatting_spec.rb:39 - 1275) and_invoke when no argument is passed raises ArgumentError + 1275) 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/and_invoke_spec.rb:15 + # ./spec/rspec/mocks/formatting_spec.rb:34 - 1276) and_invoke when a non-callable are passed in any position raises ArgumentError + 1276) 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/and_invoke_spec.rb:24 + # ./spec/rspec/mocks/formatting_spec.rb:28 - 1277) #any_instance expect_any_instance_of(...).not_to receive passes if no method is called + 1277) 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/any_instance_spec.rb:468 + # ./spec/rspec/mocks/formatting_spec.rb:24 - 1278) #any_instance expect_any_instance_of(...).not_to receive fails if the method is called + 1278) 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/any_instance_spec.rb:460 + # ./spec/rspec/mocks/formatting_spec.rb:88 - 1279) #any_instance expect_any_instance_of(...).not_to receive prevents confusing double-negative expressions involving `never` + 1279) 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/any_instance_spec.rb:512 + # ./spec/rspec/mocks/formatting_spec.rb:82 - 1280) #any_instance expect_any_instance_of(...).not_to receive affects previously stubbed instances + 1280) 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/any_instance_spec.rb:477 + # ./spec/rspec/mocks/formatting_spec.rb:68 - 1281) #any_instance expect_any_instance_of(...).not_to receive passes if only a different method is called + 1281) 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/any_instance_spec.rb:472 + # ./spec/rspec/mocks/formatting_spec.rb:74 - 1282) #any_instance expect_any_instance_of(...).not_to receive with constraints passes if the method is called with different parameters + 1282) 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/any_instance_spec.rb:497 + # ./spec/rspec/mocks/matchers/receive_spec.rb:636 - 1283) #any_instance expect_any_instance_of(...).not_to receive with constraints fails if the method is called with the specified parameters + 1283) 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/any_instance_spec.rb:490 + # ./spec/rspec/mocks/matchers/receive_spec.rb:730 - 1284) #any_instance expect_any_instance_of(...).not_to receive when used in combination with should_receive passes if only the expected message is received + 1284) 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/any_instance_spec.rb:504 + # ./spec/rspec/mocks/matchers/receive_spec.rb:736 - 1285) #any_instance setting a message expectation affects previously stubbed instances + 1285) 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/any_instance_spec.rb:538 + # ./spec/rspec/mocks/matchers/receive_spec.rb:652 - 1286) #any_instance setting a message expectation works with a SimpleDelegator subclass + 1286) 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/any_instance_spec.rb:792 + # ./spec/rspec/mocks/matchers/receive_spec.rb:662 - 1287) #any_instance setting a message expectation works with a BasicObject subclass that mixes in Kernel + 1287) 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/any_instance_spec.rb:782 + # ./spec/rspec/mocks/matchers/receive_spec.rb:642 - 1288) #any_instance setting a message expectation does not set the expectation on every instance + 1288) 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/any_instance_spec.rb:547 + # ./spec/rspec/mocks/matchers/receive_spec.rb:672 - 1289) #any_instance setting a message expectation properly notifies any instance recorders at multiple levels of hierarchy when a directly stubbed object receives a message + 1289) 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/any_instance_spec.rb:572 + # ./spec/rspec/mocks/matchers/receive_spec.rb:19 - 1290) #any_instance setting a message expectation does not modify the return value of stubs set on an instance of a subclass + 1290) 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/any_instance_spec.rb:563 + # ./spec/rspec/mocks/matchers/receive_spec.rb:14 - 1291) #any_instance setting a message expectation does not modify the return value of stubs set on an instance + 1291) 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/any_instance_spec.rb:555 + # ./spec/rspec/mocks/matchers/receive_spec.rb:9 - 1292) #any_instance setting a message expectation handles inspect accessing expected methods + 1292) 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/any_instance_spec.rb:523 + # ./spec/rspec/mocks/matchers/receive_spec.rb:26 - 1293) #any_instance setting a message expectation properly notifies any instance recorders when they are created after the object's mock proxy + 1293) 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/any_instance_spec.rb:585 + # ./spec/rspec/mocks/matchers/receive_spec.rb:322 - 1294) #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 + 1294) 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/any_instance_spec.rb:645 + # ./spec/rspec/mocks/matchers/receive_spec.rb:288 - 1295) #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 + 1295) 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/any_instance_spec.rb:636 + # ./spec/rspec/mocks/matchers/receive_spec.rb:309 - 1296) #any_instance setting a message expectation message count the 'once' constraint fails when no instances are declared + 1296) 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/any_instance_spec.rb:849 + # ./spec/rspec/mocks/matchers/receive_spec.rb:293 - 1297) #any_instance setting a message expectation message count the 'once' constraint fails for more than one invocation + 1297) 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/any_instance_spec.rb:864 + # ./spec/rspec/mocks/matchers/receive_spec.rb:301 - 1298) #any_instance setting a message expectation message count the 'once' constraint fails when an instance is declared but there are no invocations + 1298) 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/any_instance_spec.rb:856 + # ./spec/rspec/mocks/matchers/receive_spec.rb:309 - 1299) #any_instance setting a message expectation message count the 'once' constraint passes for one invocation + 1299) 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/any_instance_spec.rb:844 + # ./spec/rspec/mocks/matchers/receive_spec.rb:293 - 1300) #any_instance setting a message expectation message count the 'twice' constraint fails for more than two invocations + 1300) 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/any_instance_spec.rb:881 + # ./spec/rspec/mocks/matchers/receive_spec.rb:322 - 1301) #any_instance setting a message expectation message count the 'twice' constraint passes for two invocations + 1301) 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/any_instance_spec.rb:875 + # ./spec/rspec/mocks/matchers/receive_spec.rb:288 - 1302) #any_instance setting a message expectation message count the 'at_most(n)' constraint passes for n invocations where n < 3 + 1302) 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/any_instance_spec.rb:987 + # ./spec/rspec/mocks/matchers/receive_spec.rb:301 - 1303) #any_instance setting a message expectation message count the 'at_most(n)' constraint fails for n invocations where n > 3 + 1303) 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/any_instance_spec.rb:993 + # ./spec/rspec/mocks/matchers/receive_spec.rb:240 - 1304) #any_instance setting a message expectation message count the 'at_most(n)' constraint passes for n invocations where n = 3 + 1304) 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/any_instance_spec.rb:981 + # ./spec/rspec/mocks/matchers/receive_spec.rb:240 - 1305) #any_instance setting a message expectation message count the 'at_least(n)' constraint passes for n invocations where n > 3 + 1305) 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/any_instance_spec.rb:973 + # ./spec/rspec/mocks/matchers/receive_spec.rb:337 - 1306) #any_instance setting a message expectation message count the 'at_least(n)' constraint passes for n invocations where n = 3 + 1306) 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/any_instance_spec.rb:958 + # ./spec/rspec/mocks/matchers/receive_spec.rb:417 - 1307) #any_instance setting a message expectation message count the 'at_least(n)' constraint fails for n invocations where n < 3 + 1307) 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/any_instance_spec.rb:964 + # ./spec/rspec/mocks/matchers/receive_spec.rb:451 - 1308) #any_instance setting a message expectation message count the 'thrice' constraint fails for less than three invocations + 1308) 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/any_instance_spec.rb:906 + # ./spec/rspec/mocks/matchers/receive_spec.rb:446 - 1309) #any_instance setting a message expectation message count the 'thrice' constraint passes for three invocations + 1309) 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/any_instance_spec.rb:892 + # ./spec/rspec/mocks/matchers/receive_spec.rb:431 - 1310) #any_instance setting a message expectation message count the 'thrice' constraint fails for more than three invocations + 1310) 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/any_instance_spec.rb:898 + # ./spec/rspec/mocks/matchers/receive_spec.rb:439 - 1311) #any_instance setting a message expectation message count the 'never' constraint passes for 0 invocations + 1311) 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/any_instance_spec.rb:1003 + # ./spec/rspec/mocks/matchers/receive_spec.rb:233 - 1312) #any_instance setting a message expectation message count the 'never' constraint fails on the first invocation + 1312) 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/any_instance_spec.rb:1008 + # ./spec/rspec/mocks/matchers/receive_spec.rb:49 - 1313) #any_instance setting a message expectation message count the 'never' constraint when combined with other expectations passes when the other expectations are met + 1313) 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/any_instance_spec.rb:1016 + # ./spec/rspec/mocks/matchers/receive_spec.rb:182 - 1314) #any_instance setting a message expectation message count the 'never' constraint when combined with other expectations fails when the other expectations are not met + 1314) 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/any_instance_spec.rb:1022 + # ./spec/rspec/mocks/matchers/receive_spec.rb:221 - 1315) #any_instance setting a message expectation message count the 'exactly(n)' constraint fails for n invocations where n < 3 + 1315) 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/any_instance_spec.rb:939 + # ./spec/rspec/mocks/matchers/receive_spec.rb:177 - 1316) #any_instance setting a message expectation message count the 'exactly(n)' constraint fails for n invocations where n > 3 + 1316) 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/any_instance_spec.rb:948 + # ./spec/rspec/mocks/matchers/receive_spec.rb:211 - 1317) #any_instance setting a message expectation message count the 'exactly(n)' constraint passes for n invocations where n = 3 + 1317) 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/any_instance_spec.rb:933 + # ./spec/rspec/mocks/matchers/receive_spec.rb:169 - 1318) #any_instance setting a message expectation message count the 'exactly(n)' constraint time alias passes for 1 invocation + 1318) 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/any_instance_spec.rb:918 + # ./spec/rspec/mocks/matchers/receive_spec.rb:203 - 1319) #any_instance setting a message expectation message count the 'exactly(n)' constraint time alias fails for 2 invocations + 1319) 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/any_instance_spec.rb:924 + # ./spec/rspec/mocks/matchers/receive_spec.rb:191 - 1320) #any_instance setting a message expectation when an instance has been directly stubbed fails when a second instance to receive the message + 1320) 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/any_instance_spec.rb:622 + # ./spec/rspec/mocks/matchers/receive_spec.rb:197 - 1321) #any_instance setting a message expectation when the class has a prepended module prevents mocking a method that is defined on the prepended module + 1321) 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/any_instance_spec.rb:602 + # ./spec/rspec/mocks/matchers/receive_spec.rb:54 - 1322) #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 + 1322) 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/any_instance_spec.rb:595 + # ./spec/rspec/mocks/matchers/receive_spec.rb:63 - 1323) #any_instance setting a message expectation when the class has an included module allows mocking a method that is defined on the module + 1323) 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/any_instance_spec.rb:612 + # ./spec/rspec/mocks/matchers/receive_spec.rb:159 - 1324) #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 + 1324) 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/any_instance_spec.rb:684 + # ./spec/rspec/mocks/matchers/receive_spec.rb:98 - 1325) #any_instance setting a message expectation with an expectation is set on a method which does not exist fails if no instance is created + 1325) 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/any_instance_spec.rb:669 + # ./spec/rspec/mocks/matchers/receive_spec.rb:153 - 1326) #any_instance setting a message expectation with an expectation is set on a method which does not exist returns the expected value + 1326) 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/any_instance_spec.rb:656 + # ./spec/rspec/mocks/matchers/receive_spec.rb:126 - 1327) #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 + 1327) 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/any_instance_spec.rb:676 + # ./spec/rspec/mocks/matchers/receive_spec.rb:81 - 1328) #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 + 1328) 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/any_instance_spec.rb:661 + # ./spec/rspec/mocks/matchers/receive_spec.rb:133 - 1329) #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 + 1329) 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/any_instance_spec.rb:713 + # ./spec/rspec/mocks/matchers/receive_spec.rb:118 - 1330) #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 + 1330) 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/any_instance_spec.rb:724 + # ./spec/rspec/mocks/matchers/receive_spec.rb:90 - 1331) #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 + 1331) 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/any_instance_spec.rb:694 + # ./spec/rspec/mocks/matchers/receive_spec.rb:106 - 1332) #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 + 1332) 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/any_instance_spec.rb:700 + # ./spec/rspec/mocks/matchers/receive_spec.rb:375 - 1333) #any_instance setting a message expectation with argument matching fails when the arguments match but different instances are used + 1333) 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/any_instance_spec.rb:813 + # ./spec/rspec/mocks/matchers/receive_spec.rb:382 - 1334) #any_instance setting a message expectation with argument matching is not affected by the invocation of existing methods on other instances + 1334) 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/any_instance_spec.rb:824 + # ./spec/rspec/mocks/matchers/receive_spec.rb:360 - 1335) #any_instance setting a message expectation with argument matching fails when arguments do not match + 1335) 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/any_instance_spec.rb:831 + # ./spec/rspec/mocks/matchers/receive_spec.rb:395 - 1336) #any_instance setting a message expectation with argument matching returns the expected value when arguments match + 1336) 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/any_instance_spec.rb:807 + # ./spec/rspec/mocks/matchers/receive_spec.rb:347 - 1337) #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 + 1337) 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/any_instance_spec.rb:754 + # ./spec/rspec/mocks/matchers/receive_spec.rb:260 - 1338) #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 + 1338) 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/any_instance_spec.rb:739 + # ./spec/rspec/mocks/matchers/receive_spec.rb:268 - 1339) #any_instance setting a message expectation with an expectation is set on a method that exists returns the expected value + 1339) 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/any_instance_spec.rb:734 + # ./spec/rspec/mocks/matchers/receive_spec.rb:254 - 1340) #any_instance setting a message expectation with an expectation is set on a method that exists fails if no instance is created + 1340) 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/any_instance_spec.rb:747 + # ./spec/rspec/mocks/matchers/receive_spec.rb:611 - 1341) #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 + 1341) 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/any_instance_spec.rb:763 + # ./spec/rspec/mocks/matchers/receive_spec.rb:278 - 1342) #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 + 1342) 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/any_instance_spec.rb:769 + # ./spec/rspec/mocks/matchers/receive_spec.rb:197 - 1343) #any_instance unstubbing using `and_call_original` removes stubs even if they have already been invoked + 1343) 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/any_instance_spec.rb:418 + # ./spec/rspec/mocks/matchers/receive_spec.rb:191 - 1344) #any_instance unstubbing using `and_call_original` removes all stubs with the supplied method name + 1344) 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/any_instance_spec.rb:411 + # ./spec/rspec/mocks/matchers/receive_spec.rb:49 - 1345) #any_instance unstubbing using `and_call_original` does not remove any expectations with the same method name + 1345) 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/any_instance_spec.rb:444 + # ./spec/rspec/mocks/matchers/receive_spec.rb:221 - 1346) #any_instance unstubbing using `and_call_original` removes any stubs set directly on an instance + 1346) 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/any_instance_spec.rb:436 + # ./spec/rspec/mocks/matchers/receive_spec.rb:182 - 1347) #any_instance unstubbing using `and_call_original` does not get confused about string vs symbol usage for the message + 1347) 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/any_instance_spec.rb:452 + # ./spec/rspec/mocks/matchers/receive_spec.rb:63 - 1348) #any_instance unstubbing using `and_call_original` removes stubs from sub class after Invocation when super class was originally stubbed + 1348) 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/any_instance_spec.rb:427 + # ./spec/rspec/mocks/matchers/receive_spec.rb:203 - 1349) #any_instance unstubbing using `and_call_original` replaces the stubbed method with the original method + 1349) 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/any_instance_spec.rb:405 + # ./spec/rspec/mocks/matchers/receive_spec.rb:211 - 1350) #any_instance when stubbing does not suppress an exception when a method that doesn't exist is invoked + 1350) 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/rspec/mocks/any_instance_spec.rb:91 + # ./spec/rspec/mocks/matchers/receive_spec.rb:177 - 1351) #any_instance when stubbing core ruby objects works with the non-standard constructor module + 1351) 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/any_instance_spec.rb:390 + # ./spec/rspec/mocks/matchers/receive_spec.rb:169 - 1352) #any_instance when stubbing core ruby objects works uniformly across *everything* + 1352) 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/any_instance_spec.rb:365 + # ./spec/rspec/mocks/matchers/receive_spec.rb:54 - 1353) #any_instance when stubbing core ruby objects works with the non-standard constructor '' + 1353) 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/rspec/mocks/any_instance_spec.rb:385 + # ./spec/rspec/mocks/matchers/receive_spec.rb:133 - 1354) #any_instance when stubbing core ruby objects works with the non-standard constructor {} + 1354) 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/any_instance_spec.rb:375 + # ./spec/rspec/mocks/matchers/receive_spec.rb:81 - 1355) #any_instance when stubbing core ruby objects works with the non-standard constructor [] + 1355) 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/rspec/mocks/any_instance_spec.rb:370 + # ./spec/rspec/mocks/matchers/receive_spec.rb:90 - 1356) #any_instance when stubbing core ruby objects works with the non-standard constructor class + 1356) 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/rspec/mocks/any_instance_spec.rb:396 + # ./spec/rspec/mocks/matchers/receive_spec.rb:159 - 1357) #any_instance when stubbing core ruby objects works with the non-standard constructor "" + 1357) 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/rspec/mocks/any_instance_spec.rb:380 + # ./spec/rspec/mocks/matchers/receive_spec.rb:106 - 1358) #any_instance when stubbing when the class has a prepended module prevents stubbing a method that is defined on the prepended module + 1358) 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/rspec/mocks/any_instance_spec.rb:188 + # ./spec/rspec/mocks/matchers/receive_spec.rb:126 - 1359) #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 + 1359) 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/any_instance_spec.rb:196 + # ./spec/rspec/mocks/matchers/receive_spec.rb:153 - 1360) #any_instance when stubbing when the class has a prepended module allows stubbing a method that is not defined on the prepended module + 1360) 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/rspec/mocks/any_instance_spec.rb:181 + # ./spec/rspec/mocks/matchers/receive_spec.rb:118 - 1361) #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 + 1361) 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/rspec/mocks/any_instance_spec.rb:203 + # ./spec/rspec/mocks/matchers/receive_spec.rb:98 - 1362) #any_instance when stubbing with argument matching returns the stubbed value when arguments match + 1362) 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/any_instance_spec.rb:229 + # ./spec/rspec/mocks/matchers/receive_spec.rb:704 - 1363) #any_instance when stubbing with argument matching fails the spec with an expectation error when the arguments do not match + 1363) 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/any_instance_spec.rb:235 + # ./spec/rspec/mocks/matchers/receive_spec.rb:696 - 1364) #any_instance when stubbing with #and_call_original and competing #with can combine and_call_original, with, and_return + 1364) 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/any_instance_spec.rb:301 + # ./spec/rspec/mocks/matchers/receive_spec.rb:672 - 1365) #any_instance when stubbing multiple methods allows multiple methods to be stubbed in a single invocation + 1365) 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/any_instance_spec.rb:97 + # ./spec/rspec/mocks/matchers/receive_spec.rb:662 - 1366) #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 + 1366) 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/any_instance_spec.rb:110 + # ./spec/rspec/mocks/matchers/receive_spec.rb:642 - 1367) #any_instance when stubbing multiple methods allows a chain of methods to be stubbed using #receive_message_chain given symbols representing the methods + 1367) 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/any_instance_spec.rb:105 + # ./spec/rspec/mocks/matchers/receive_spec.rb:652 - 1368) #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 + 1368) 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/any_instance_spec.rb:115 + # ./spec/rspec/mocks/matchers/receive_spec.rb:337 - 1369) #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 + 1369) 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/any_instance_spec.rb:120 + # ./spec/rspec/mocks/matchers/receive_spec.rb:395 - 1370) #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 + 1370) 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/any_instance_spec.rb:127 + # ./spec/rspec/mocks/matchers/receive_spec.rb:382 - 1371) #any_instance when stubbing with a block stubs a method + 1371) 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/any_instance_spec.rb:335 + # ./spec/rspec/mocks/matchers/receive_spec.rb:375 - 1372) #any_instance when stubbing with a block returns the same computed value for calls on different instances + 1372) 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/any_instance_spec.rb:340 + # ./spec/rspec/mocks/matchers/receive_spec.rb:360 - 1373) #any_instance when stubbing with #and_throw can stub a method that exists + 1373) 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/any_instance_spec.rb:328 + # ./spec/rspec/mocks/matchers/receive_spec.rb:254 - 1374) #any_instance when stubbing with #and_throw can stub a method that doesn't exist + 1374) 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/any_instance_spec.rb:323 + # ./spec/rspec/mocks/matchers/receive_spec.rb:268 - 1375) #any_instance when stubbing aliased methods tracks aliased method calls + 1375) 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/any_instance_spec.rb:213 + # ./spec/rspec/mocks/matchers/receive_spec.rb:260 - 1376) #any_instance when stubbing with #and_raise can stub a method that doesn't exist + 1376) 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/any_instance_spec.rb:311 + # ./spec/rspec/mocks/matchers/receive_spec.rb:278 - 1377) #any_instance when stubbing with #and_raise can stub a method that exists + 1377) 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/any_instance_spec.rb:316 + # ./spec/rspec/mocks/matchers/receive_spec.rb:493 - 1378) #any_instance when stubbing with #and_return can stub a method that exists + 1378) 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/any_instance_spec.rb:266 + # ./spec/rspec/mocks/matchers/receive_spec.rb:221 - 1379) #any_instance when stubbing with #and_return can stub a method that doesn't exist + 1379) 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/any_instance_spec.rb:261 + # ./spec/rspec/mocks/matchers/receive_spec.rb:203 - 1380) #any_instance when stubbing with #and_return returns the same object for calls on different instances + 1380) 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/any_instance_spec.rb:271 + # ./spec/rspec/mocks/matchers/receive_spec.rb:54 - 1381) #any_instance when stubbing with #and_return can change how instances responds in the middle of an example + 1381) 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/any_instance_spec.rb:278 + # ./spec/rspec/mocks/matchers/receive_spec.rb:49 - 1382) #any_instance when stubbing with #and_yield yields the value specified + 1382) 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/any_instance_spec.rb:291 + # ./spec/rspec/mocks/matchers/receive_spec.rb:177 - 1383) #any_instance when stubbing with multiple stubs returns the same value for calls on different instances + 1383) 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/any_instance_spec.rb:254 + # ./spec/rspec/mocks/matchers/receive_spec.rb:169 - 1384) #any_instance when stubbing with multiple stubs stubs a method + 1384) 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/any_instance_spec.rb:248 + # ./spec/rspec/mocks/matchers/receive_spec.rb:211 - 1385) #any_instance when stubbing when partially mocking objects resets partially mocked objects correctly + 1385) 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/any_instance_spec.rb:349 + # ./spec/rspec/mocks/matchers/receive_spec.rb:182 - 1386) #any_instance when stubbing behaves as 'every instance' stubs every instance in the spec + 1386) 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/any_instance_spec.rb:138 + # ./spec/rspec/mocks/matchers/receive_spec.rb:63 - 1387) #any_instance when stubbing behaves as 'every instance' handles freeze and duplication correctly + 1387) 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/any_instance_spec.rb:150 + # ./spec/rspec/mocks/matchers/receive_spec.rb:126 - 1388) #any_instance when stubbing behaves as 'every instance' handles stubbing on super and subclasses + 1388) 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/any_instance_spec.rb:157 + # ./spec/rspec/mocks/matchers/receive_spec.rb:98 - 1389) #any_instance when stubbing behaves as 'every instance' handles stubbing on a sub class when a super class is stubbed differently + 1389) 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/any_instance_spec.rb:163 + # ./spec/rspec/mocks/matchers/receive_spec.rb:133 - 1390) #any_instance when stubbing behaves as 'every instance' handles method restoration on subclasses + 1390) 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/any_instance_spec.rb:172 + # ./spec/rspec/mocks/matchers/receive_spec.rb:90 - 1391) #any_instance when stubbing behaves as 'every instance' stubs instance created before any_instance was called + 1391) 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/any_instance_spec.rb:144 + # ./spec/rspec/mocks/matchers/receive_spec.rb:81 - 1392) #any_instance when a class overrides Object#method stubs the method correctly + 1392) 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/any_instance_spec.rb:1300 + # ./spec/rspec/mocks/matchers/receive_spec.rb:159 - 1393) #any_instance when a class overrides Object#method mocks the method correctly + 1393) 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/any_instance_spec.rb:1305 + # ./spec/rspec/mocks/matchers/receive_spec.rb:153 - 1394) #any_instance chain yields the value specified + 1394) 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/any_instance_spec.rb:47 + # ./spec/rspec/mocks/matchers/receive_spec.rb:106 - 1395) #any_instance when used after the test has finished restores the original behavior of a stubbed method + 1395) 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/any_instance_spec.rb:1312 + # ./spec/rspec/mocks/matchers/receive_spec.rb:118 - 1396) #any_instance when used after the test has finished restores the original behaviour, even if the expectation fails + 1396) 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/any_instance_spec.rb:1331 + # ./spec/rspec/mocks/matchers/receive_spec.rb:502 - 1397) #any_instance when used after the test has finished does not restore a stubbed method not originally implemented in the class + 1397) 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/any_instance_spec.rb:1323 + # ./spec/rspec/mocks/matchers/receive_spec.rb:524 - 1398) #any_instance when directed at a method defined on a superclass mocks the method correctly + 1398) 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/any_instance_spec.rb:1286 + # ./spec/rspec/mocks/matchers/receive_spec.rb:590 - 1399) #any_instance when directed at a method defined on a superclass stubs the method correctly + 1399) 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/any_instance_spec.rb:1281 + # ./spec/rspec/mocks/matchers/receive_spec.rb:533 - 1400) #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 + 1400) 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/any_instance_spec.rb:1231 + # ./spec/rspec/mocks/matchers/receive_spec.rb:568 - 1401) #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 + 1401) 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/any_instance_spec.rb:1240 + # ./spec/rspec/mocks/matchers/receive_spec.rb:546 - 1402) #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 + 1402) 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/any_instance_spec.rb:1194 + # ./spec/rspec/mocks/matchers/receive_spec.rb:347 - 1403) #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 + 1403) 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/any_instance_spec.rb:1185 + # ./spec/rspec/mocks/matchers/receive_spec.rb:233 - 1404) #any_instance passing the receiver to the implementation block when configured to pass the instance an any instance expectation doesn't effect with + 1404) 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/any_instance_spec.rb:1207 + # ./spec/rspec/mocks/matchers/receive_spec.rb:169 - 1405) #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 + 1405) 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/any_instance_spec.rb:1213 + # ./spec/rspec/mocks/matchers/receive_spec.rb:221 - 1406) #any_instance when used in conjunction with a `dup` doesn't cause an infinite loop + 1406) 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/any_instance_spec.rb:1250 + # ./spec/rspec/mocks/matchers/receive_spec.rb:211 - 1407) #any_instance when used in conjunction with a `dup` doesn't bomb if the object doesn't support `dup` + 1407) 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/any_instance_spec.rb:1259 + # ./spec/rspec/mocks/matchers/receive_spec.rb:182 - 1408) #any_instance when used in conjunction with a `dup` doesn't fail when dup accepts parameters + 1408) 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/any_instance_spec.rb:1266 + # ./spec/rspec/mocks/matchers/receive_spec.rb:197 - 1409) #any_instance invocation order when setting a message expectation raises an error if 'with' follows 'and_raise' + 1409) 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/any_instance_spec.rb:83 + # ./spec/rspec/mocks/matchers/receive_spec.rb:203 - 1410) #any_instance invocation order when setting a message expectation raises an error if 'with' follows 'and_return' + 1410) 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/any_instance_spec.rb:78 + # ./spec/rspec/mocks/matchers/receive_spec.rb:177 - 1411) #any_instance invocation order when stubbing allows chaining 'and_yield' + 1411) 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/any_instance_spec.rb:71 + # ./spec/rspec/mocks/matchers/receive_spec.rb:63 - 1412) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_return' + 1412) 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/any_instance_spec.rb:55 + # ./spec/rspec/mocks/matchers/receive_spec.rb:191 - 1413) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_raise' + 1413) 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/any_instance_spec.rb:59 + # ./spec/rspec/mocks/matchers/receive_spec.rb:49 - 1414) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_yield' + 1414) 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/any_instance_spec.rb:63 + # ./spec/rspec/mocks/matchers/receive_spec.rb:54 - 1415) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_throw' + 1415) 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/any_instance_spec.rb:67 + # ./spec/rspec/mocks/matchers/receive_spec.rb:106 - 1416) #any_instance when resetting post-verification adds an instance to the current space when stubbed method is invoked + 1416) 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/any_instance_spec.rb:1169 + # ./spec/rspec/mocks/matchers/receive_spec.rb:153 - 1417) #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 + 1417) 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/any_instance_spec.rb:1159 + # ./spec/rspec/mocks/matchers/receive_spec.rb:81 - 1418) #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 + 1418) 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/any_instance_spec.rb:1056 + # ./spec/rspec/mocks/matchers/receive_spec.rb:126 - 1419) #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 + 1419) 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/any_instance_spec.rb:1065 + # ./spec/rspec/mocks/matchers/receive_spec.rb:90 - 1420) #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 + 1420) 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/any_instance_spec.rb:1049 + # ./spec/rspec/mocks/matchers/receive_spec.rb:133 - 1421) #any_instance when resetting post-verification existing method with stubbing private methods cleans up the backed up method + 1421) 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/any_instance_spec.rb:1083 + # ./spec/rspec/mocks/matchers/receive_spec.rb:159 - 1422) #any_instance when resetting post-verification existing method with stubbing private methods restores a stubbed private method after the spec is run + 1422) 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/any_instance_spec.rb:1087 + # ./spec/rspec/mocks/matchers/receive_spec.rb:98 - 1423) #any_instance when resetting post-verification existing method with stubbing private methods ensures that the restored method behaves as it originally did + 1423) 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/any_instance_spec.rb:1091 + # ./spec/rspec/mocks/matchers/receive_spec.rb:118 - 1424) #any_instance when resetting post-verification existing method with expectations ensures that the next spec does not see that expectation + 1424) 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/any_instance_spec.rb:1147 + # ./spec/rspec/mocks/matchers/receive_spec.rb:758 - 1425) #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 + 1425) 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/any_instance_spec.rb:1126 + # ./spec/rspec/mocks/matchers/receive_spec.rb:642 - 1426) #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 + 1426) 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/any_instance_spec.rb:1121 + # ./spec/rspec/mocks/matchers/receive_spec.rb:652 - 1427) #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 + 1427) 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/any_instance_spec.rb:1141 + # ./spec/rspec/mocks/matchers/receive_spec.rb:672 - 1428) #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 + 1428) 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/any_instance_spec.rb:1136 + # ./spec/rspec/mocks/matchers/receive_spec.rb:662 - 1429) #any_instance when resetting post-verification existing method with expectations private methods restores a stubbed private method after the spec is run + 1429) 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/any_instance_spec.rb:1110 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:6 - 1430) #any_instance when resetting post-verification existing method with expectations private methods cleans up the backed up method + 1430) 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/any_instance_spec.rb:1106 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:57 - 1431) #any_instance when resetting post-verification existing method with expectations private methods ensures that the restored method behaves as it originally did + 1431) 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/any_instance_spec.rb:1114 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:61 - 1432) #thrice passes when called thrice with unspecified args + 1432) 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/thrice_counts_spec.rb:20 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:41 - 1433) #thrice passes when called thrice + 1433) 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/thrice_counts_spec.rb:8 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:37 - 1434) #thrice passes when called thrice with specified args + 1434) 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/thrice_counts_spec.rb:14 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:53 - 1435) #thrice fails when call count is lower than expected + 1435) 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/thrice_counts_spec.rb:36 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:49 - 1436) #thrice fails fast when call count is higher than expected + 1436) 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/thrice_counts_spec.rb:28 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:45 - 1437) #thrice fails when called with wrong args on the second call + 1437) 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/thrice_counts_spec.rb:52 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:23 - 1438) #thrice fails when called with wrong args on the first call + 1438) 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/thrice_counts_spec.rb:44 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:19 - 1439) #thrice fails when called with wrong args on the third call + 1439) 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/thrice_counts_spec.rb:61 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:31 - 1440) #thrice when called with negative expectation raises an error + 1440) 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/thrice_counts_spec.rb:72 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:15 - 1441) Marshal extensions #dump outside the per-test lifecycle does not duplicate the object before serialization + 1441) 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/marshal_extension_spec.rb:58 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:27 - 1442) Marshal extensions #dump when rspec-mocks has been fully initialized does not duplicate nil before serialization + 1442) 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/marshal_extension_spec.rb:31 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:11 - 1443) Marshal extensions #dump when rspec-mocks has been fully initialized applying and unapplying patch is idempotent + 1443) 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/marshal_extension_spec.rb:36 + # ./spec/rspec/mocks/stub_spec.rb:462 - 1444) Marshal extensions #dump when rspec-mocks has been fully initialized does not duplicate other objects before serialization + 1444) 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/marshal_extension_spec.rb:24 + # ./spec/rspec/mocks/stub_spec.rb:88 - 1445) Marshal extensions #dump when rspec-mocks has been fully initialized duplicates objects with stubbed or mocked implementations before serialization + 1445) 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/marshal_extension_spec.rb:17 + # ./spec/rspec/mocks/stub_spec.rb:501 - 1446) Supporting Rails monkey patches works when Rails has monkey patched #with + 1446) 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/integration/rails_support_spec.rb:10 + # ./spec/rspec/mocks/stub_spec.rb:453 - 1447) Supporting Rails monkey patches works mocking any instance when Rails has monkey patched #with + 1447) 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/integration/rails_support_spec.rb:37 + # ./spec/rspec/mocks/stub_spec.rb:491 - 1448) expect_any_instance_of(...).to receive_messages(:a => 1, :b => 2) sets up multiple expectations + 1448) 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/matchers/receive_messages_spec.rb:112 + # ./spec/rspec/mocks/stub_spec.rb:507 - 1449) expect_any_instance_of(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given + 1449) 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/matchers/receive_messages_spec.rb:4 + # ./spec/rspec/mocks/stub_spec.rb:446 - 1450) 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 + 1450) 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/matchers/receive_messages_spec.rb:10 + # ./spec/rspec/mocks/stub_spec.rb:470 - 1451) negative expectation failure allow(...).to_not receive_messages(:a => 1, :b => 2) + 1451) 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/matchers/receive_messages_spec.rb:125 + # ./spec/rspec/mocks/stub_spec.rb:93 - 1452) negative expectation failure expect_any_instance_of(...).to_not receive_messages(:a => 1, :b => 2) + 1452) 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/matchers/receive_messages_spec.rb:146 + # ./spec/rspec/mocks/stub_spec.rb:486 - 1453) negative expectation failure expect(...).to_not receive_messages(:a => 1, :b => 2) + 1453) 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/matchers/receive_messages_spec.rb:139 + # ./spec/rspec/mocks/stub_spec.rb:44 - 1454) negative expectation failure allow_any_instance_of(...).to_not receive_messages(:a => 1, :b => 2) + 1454) 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/matchers/receive_messages_spec.rb:132 + # ./spec/rspec/mocks/stub_spec.rb:496 - 1455) when verify_partial_doubles configuration option is set does not allow a non-existing method to be called on any_instance + 1455) 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/partial_double_spec.rb:541 + # ./spec/rspec/mocks/stub_spec.rb:72 - 1456) when verify_partial_doubles configuration option is set allows the mock to raise an error with yield + 1456) 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/partial_double_spec.rb:566 + # ./spec/rspec/mocks/stub_spec.rb:78 - 1457) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks on any_instance before verifying a double + 1457) 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/partial_double_spec.rb:529 + # ./spec/rspec/mocks/stub_spec.rb:49 - 1458) when verify_partial_doubles configuration option is set allows valid methods to be expected on any_instance + 1458) 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/partial_double_spec.rb:507 + # ./spec/rspec/mocks/stub_spec.rb:39 - 1459) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks before verifying an expectation + 1459) 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/partial_double_spec.rb:421 + # ./spec/rspec/mocks/stub_spec.rb:65 - 1460) when verify_partial_doubles configuration option is set verifies arity range when matching arguments + 1460) 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/partial_double_spec.rb:497 + # ./spec/rspec/mocks/stub_spec.rb:57 - 1461) when verify_partial_doubles configuration option is set temporarily supressing partial doubles does not affect normal verifying doubles + 1461) 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/partial_double_spec.rb:413 + # ./spec/rspec/mocks/stub_spec.rb:479 - 1462) when verify_partial_doubles configuration option is set allows valid methods to be expected + 1462) 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/partial_double_spec.rb:375 + # ./spec/rspec/mocks/stub_spec.rb:83 - 1463) when verify_partial_doubles configuration option is set allows private methods to be expected on any_instance expectation + 1463) 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/partial_double_spec.rb:512 + # ./spec/rspec/mocks/stub_spec.rb:32 - 1464) when verify_partial_doubles configuration option is set allows a method defined with method_missing to be expected + 1464) 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/partial_double_spec.rb:502 + # ./spec/rspec/mocks/stub_spec.rb:299 - 1465) when verify_partial_doubles configuration option is set does not allow a non-existing method to be expected + 1465) 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/partial_double_spec.rb:487 + # ./spec/rspec/mocks/stub_spec.rb:318 - 1466) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks on any_instance before verifying a double allowance + 1466) 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/partial_double_spec.rb:517 + # ./spec/rspec/mocks/stub_spec.rb:285 - 1467) when verify_partial_doubles configuration option is set can be temporarily supressed and nested + 1467) 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/partial_double_spec.rb:398 + # ./spec/rspec/mocks/stub_spec.rb:292 - 1468) when verify_partial_doubles configuration option is set does not allow missing methods to be called on any_instance + 1468) 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/partial_double_spec.rb:547 + # ./spec/rspec/mocks/stub_spec.rb:259 - 1469) when verify_partial_doubles configuration option is set avoids deadlocks when a proxy is accessed from within a `before_verifying_doubles` callback + 1469) 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/partial_double_spec.rb:443 + # ./spec/rspec/mocks/stub_spec.rb:266 - 1470) when verify_partial_doubles configuration option is set can be temporarily supressed + 1470) 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/partial_double_spec.rb:385 + # ./spec/rspec/mocks/stub_spec.rb:334 - 1471) when verify_partial_doubles configuration option is set verifies arity range when receiving a message + 1471) 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/partial_double_spec.rb:556 + # ./spec/rspec/mocks/stub_spec.rb:253 - 1472) when verify_partial_doubles configuration option is set allows private methods to be expected + 1472) 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/partial_double_spec.rb:380 + # ./spec/rspec/mocks/stub_spec.rb:325 - 1473) when verify_partial_doubles configuration option is set does not allow a spy on unimplemented method + 1473) 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/partial_double_spec.rb:491 + # ./spec/rspec/mocks/stub_spec.rb:353 - 1474) when verify_partial_doubles configuration option is set allows stubbing and calls the stubbed implementation + 1474) 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/partial_double_spec.rb:572 + # ./spec/rspec/mocks/stub_spec.rb:408 - 1475) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks before verifying an allowance + 1475) 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/partial_double_spec.rb:432 + # ./spec/rspec/mocks/stub_spec.rb:400 - 1476) when verify_partial_doubles configuration option is set when `.new` is stubbed uses the method signature from `#initialize` for arg verification + 1476) 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/rspec/mocks/partial_double_spec.rb:582 + # ./spec/rspec/mocks/stub_spec.rb:431 - 1477) 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 + 1477) 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/partial_double_spec.rb:611 + # ./spec/rspec/mocks/stub_spec.rb:416 - 1478) 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 + 1478) 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/partial_double_spec.rb:588 + # ./spec/rspec/mocks/stub_spec.rb:168 - 1479) 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 + 1479) 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/partial_double_spec.rb:640 + # ./spec/rspec/mocks/stub_spec.rb:158 - 1480) 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 + 1480) 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/rspec/mocks/partial_double_spec.rb:626 + # ./spec/rspec/mocks/stub_spec.rb:189 - 1481) when verify_partial_doubles configuration option is set when `.new` is stubbed on a class that has undefined `new` prevents it from being stubbed + 1481) 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/partial_double_spec.rb:599 + # ./spec/rspec/mocks/stub_spec.rb:199 - 1482) when verify_partial_doubles configuration option is set for a class only runs the `before_verifying_doubles` callback for the class (not for superclasses) + 1482) 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/partial_double_spec.rb:462 + # ./spec/rspec/mocks/stub_spec.rb:178 - 1483) when verify_partial_doubles configuration option is set for a class can be temporarily supressed + 1483) 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/partial_double_spec.rb:474 + # ./spec/rspec/mocks/stub_spec.rb:143 - 1484) a message expectation with multiple invoke handlers and no specified count invokes procs in order + 1484) 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/multiple_invoke_handler_spec.rb:10 + # ./spec/rspec/mocks/stub_spec.rb:151 - 1485) a message expectation with multiple invoke handlers and no specified count falls back to a previously stubbed value + 1485) 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/multiple_invoke_handler_spec.rb:17 + # ./spec/rspec/mocks/stub_spec.rb:214 - 1486) a message expectation with multiple invoke handlers and no specified count fails when there are too many calls (if there is no stub) + 1486) 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/multiple_invoke_handler_spec.rb:31 + # ./spec/rspec/mocks/stub_spec.rb:231 - 1487) a message expectation with multiple invoke handlers and no specified count fails when there are too few calls (if there is no stub) + 1487) 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/multiple_invoke_handler_spec.rb:25 + # ./spec/rspec/mocks/stub_spec.rb:117 - 1488) a double declaration with a block handed to: times returns the value of executing the block + 1488) 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/block_return_value_spec.rb:71 + # ./spec/rspec/mocks/stub_spec.rb:107 - 1489) a double declaration with a block handed to: allow(...).to receive returns the value of executing the block + 1489) 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/block_return_value_spec.rb:19 + # ./spec/rspec/mocks/stub_spec.rb:99 - 1490) a double declaration with a block handed to: allow(...).to receive forwards all given args to the block, even when it receives a block + 1490) 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/block_return_value_spec.rb:27 + # ./spec/rspec/mocks/and_yield_spec.rb:7 - 1491) a double declaration with a block handed to: expect(...).to receive works when a multi-return stub has already been set + 1491) 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/block_return_value_spec.rb:9 + # ./spec/rspec/mocks/and_yield_spec.rb:35 - 1492) a double declaration with a block handed to: expect(...).to receive returns the value of executing the block + 1492) 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/block_return_value_spec.rb:3 + # ./spec/rspec/mocks/and_yield_spec.rb:21 - 1493) a double declaration with a block handed to: twice returns the value of executing the block + 1493) 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/block_return_value_spec.rb:53 + # ./spec/rspec/mocks/and_yield_spec.rb:29 - 1494) a double declaration with a block handed to: ordered returns the value of executing the block + 1494) 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/block_return_value_spec.rb:62 + # ./spec/rspec/mocks/and_yield_spec.rb:139 - 1495) a double declaration with a block handed to: once returns the value of executing the block + 1495) 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/block_return_value_spec.rb:53 + # ./spec/rspec/mocks/and_yield_spec.rb:128 - 1496) a double declaration with a block handed to: with returns the value of executing the block with given argument + 1496) 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/block_return_value_spec.rb:44 + # ./spec/rspec/mocks/and_yield_spec.rb:84 - 1497) a double declaration with a block handed to: with returns the value of executing the block + 1497) 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/block_return_value_spec.rb:38 + # ./spec/rspec/mocks/and_yield_spec.rb:103 - 1498) expection set on previously stubbed method indicates the site of expectation in the stacktrace when outputing arguments of similar calls + 1498) 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/stubbed_message_expectations_spec.rb:43 + # ./spec/rspec/mocks/and_yield_spec.rb:114 - 1499) expection set on previously stubbed method outputs arguments of similar calls + 1499) 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/stubbed_message_expectations_spec.rb:9 + # ./spec/rspec/mocks/and_yield_spec.rb:52 - 1500) expection set on previously stubbed method fails if message is not received after expectation is set + 1500) 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/stubbed_message_expectations_spec.rb:2 + # ./spec/rspec/mocks/and_yield_spec.rb:66 - 1501) expection set on previously stubbed method handles concurrent validation of expectations + 1501) 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/stubbed_message_expectations_spec.rb:26 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:72 - 1502) expection set on previously stubbed method with argument constraint on stub fails if expectation's arg constraint is not met + 1502) 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/stubbed_message_expectations_spec.rb:76 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:89 - 1503) expection set on previously stubbed method with argument constraint on stub matches specific args set on expectation + 1503) 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/stubbed_message_expectations_spec.rb:68 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:80 - 1504) expection set on previously stubbed method with argument constraint on stub distinguishes between individual values and arrays properly + 1504) 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/stubbed_message_expectations_spec.rb:84 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:80 - 1505) expection set on previously stubbed method with argument constraint on stub matches any args if no arg constraint set on expectation + 1505) 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/stubbed_message_expectations_spec.rb:60 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:60 - 1506) expection set on previously stubbed method with argument constraint on stub distinguishes between duplicate individual values and arrays properly + 1506) 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/stubbed_message_expectations_spec.rb:95 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:72 - 1507) PreciseCounts fails when exactly n times method is never called + 1507) 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/precise_counts_spec.rb:27 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:89 - 1508) PreciseCounts passes multiple calls with different args and counts + 1508) 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/precise_counts_spec.rb:56 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:66 - 1509) PreciseCounts returns the value given by a block when the exactly once method is called + 1509) 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/precise_counts_spec.rb:42 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:66 - 1510) PreciseCounts fails fast when exactly n times method is called more than n times + 1510) 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/precise_counts_spec.rb:17 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:60 - 1511) PreciseCounts fails when exactly n times method is called less than n times + 1511) 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/precise_counts_spec.rb:8 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:36 - 1512) PreciseCounts passes if exactly n times method is called exactly n times + 1512) 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/precise_counts_spec.rb:34 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:22 - 1513) PreciseCounts passes multiple calls with different args + 1513) 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/precise_counts_spec.rb:48 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:28 - 1514) Combining implementation instructions can combine and_yield and and_return + 1514) 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/combining_implementation_instructions_spec.rb:4 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:28 - 1515) Combining implementation instructions can combine and_call_original, with, and_return + 1515) 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/combining_implementation_instructions_spec.rb:173 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:36 - 1516) Combining implementation instructions raises an error if `and_call_original` is followed by any other instructions + 1516) 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/combining_implementation_instructions_spec.rb:181 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:22 - 1517) Combining implementation instructions can combine and_yield and and_raise + 1517) 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/combining_implementation_instructions_spec.rb:85 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:16 - 1518) Combining implementation instructions does not warn about overriding the stub when `:with` is chained off the block + 1518) 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/combining_implementation_instructions_spec.rb:165 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:45 - 1519) Combining implementation instructions can combine and_yield, a block implementation and and_throw + 1519) 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/combining_implementation_instructions_spec.rb:115 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:16 - 1520) Combining implementation instructions can combine and_yield, a block implementation and and_raise + 1520) 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/combining_implementation_instructions_spec.rb:94 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:45 - 1521) Combining implementation instructions warns when the inner implementation block is overridden + 1521) 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/combining_implementation_instructions_spec.rb:160 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:31 - 1522) Combining implementation instructions can combine and_yield and and_throw + 1522) 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/combining_implementation_instructions_spec.rb:106 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:17 - 1523) Combining implementation instructions a double that already has a terminal block action allows the block action to be overridden + 1523) 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/combining_implementation_instructions_spec.rb:152 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:10 - 1524) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `twice` + 1524) 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/combining_implementation_instructions_spec.rb:67 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:25 - 1525) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `at_least` + 1525) 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/combining_implementation_instructions_spec.rb:43 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:43 - 1526) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `exactly` + 1526) 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/combining_implementation_instructions_spec.rb:37 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:35 - 1527) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `once` + 1527) 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/combining_implementation_instructions_spec.rb:61 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:55 - 1528) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `at_most` + 1528) 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/combining_implementation_instructions_spec.rb:49 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:49 - 1529) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `times` + 1529) 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/combining_implementation_instructions_spec.rb:55 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:28 - 1530) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `ordered` + 1530) 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/combining_implementation_instructions_spec.rb:78 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:74 - 1531) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `with` + 1531) 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/combining_implementation_instructions_spec.rb:31 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:64 - 1532) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `stub` + 1532) 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/combining_implementation_instructions_spec.rb:25 + # ./spec/rspec/mocks/diffing_spec.rb:241 - 1533) 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)` + 1533) 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/combining_implementation_instructions_spec.rb:137 + # ./spec/rspec/mocks/diffing_spec.rb:90 - 1534) 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)` + 1534) 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/combining_implementation_instructions_spec.rb:142 + # ./spec/rspec/mocks/diffing_spec.rb:81 - 1535) 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)` + 1535) 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/combining_implementation_instructions_spec.rb:132 + # ./spec/rspec/mocks/diffing_spec.rb:68 - 1536) Reraising eager raises during the verify step does not reraise when a double receives a message that hasn't been allowed/expected + 1536) 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/reraising_eager_raises_spec.rb:4 + # ./spec/rspec/mocks/diffing_spec.rb:21 - 1537) 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 + 1537) 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/reraising_eager_raises_spec.rb:89 + # ./spec/rspec/mocks/diffing_spec.rb:12 - 1538) Reraising eager raises during the verify step when an expectation is called with the wrong arguments reraises during verification + 1538) 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/reraising_eager_raises_spec.rb:81 + # ./spec/rspec/mocks/diffing_spec.rb:57 - 1539) Reraising eager raises during the verify step when an expectation is called out of order reraises during verification + 1539) 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/reraising_eager_raises_spec.rb:99 + # ./spec/rspec/mocks/diffing_spec.rb:33 - 1540) 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 + 1540) 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/reraising_eager_raises_spec.rb:42 + # ./spec/rspec/mocks/diffing_spec.rb:46 - 1541) 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 + 1541) 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/reraising_eager_raises_spec.rb:20 + # ./spec/rspec/mocks/diffing_spec.rb:201 - 1542) 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 + 1542) 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/reraising_eager_raises_spec.rb:27 + # ./spec/rspec/mocks/diffing_spec.rb:174 - 1543) Reraising eager raises during the verify step when a negative expectation receives a call reraises during verification + 1543) 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/reraising_eager_raises_spec.rb:12 + # ./spec/rspec/mocks/diffing_spec.rb:187 - 1544) 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 + 1544) 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/reraising_eager_raises_spec.rb:72 + # ./spec/rspec/mocks/diffing_spec.rb:102 - 1545) Reraising eager raises during the verify step when an expectation with a count is exceeded reraises during verification + 1545) 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/reraising_eager_raises_spec.rb:63 + # ./spec/rspec/mocks/diffing_spec.rb:133 - 1546) 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 + 1546) 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/argument_matchers_spec.rb:378 + # ./spec/rspec/mocks/diffing_spec.rb:117 - 1547) 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 + 1547) 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/argument_matchers_spec.rb:373 + # ./spec/rspec/mocks/diffing_spec.rb:251 - 1548) 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 + 1548) 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/argument_matchers_spec.rb:383 + # ./spec/rspec/mocks/diffing_spec.rb:270 - 1549) argument matchers matching array_excluding fails array_excluding when arg contains some elements + 1549) 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/argument_matchers_spec.rb:316 + # ./spec/rspec/mocks/diffing_spec.rb:287 - 1550) argument matchers matching array_excluding fails array_excluding when is the same array + 1550) 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/argument_matchers_spec.rb:309 + # ./spec/rspec/mocks/methods_spec.rb:13 - 1551) argument matchers matching array_excluding fails array_excluding when using the fuzzy matcher + 1551) 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/argument_matchers_spec.rb:328 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:54 - 1552) argument matchers matching array_excluding matches array with array_excluding different array + 1552) 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/argument_matchers_spec.rb:304 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:146 - 1553) argument matchers matching array_excluding matches array_excluding when using the fuzzy matcher + 1553) 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/argument_matchers_spec.rb:323 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:80 - 1554) argument matchers matching instance_of handles non matching instances nicely + 1554) 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/argument_matchers_spec.rb:87 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:35 - 1555) argument matchers matching instance_of accepts float as instance_of(Float) + 1555) 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/argument_matchers_spec.rb:62 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:111 - 1556) argument matchers matching instance_of rejects non string + 1556) 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/argument_matchers_spec.rb:82 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:30 - 1557) argument matchers matching instance_of rejects non numeric + 1557) 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/argument_matchers_spec.rb:77 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:43 - 1558) argument matchers matching instance_of does NOT accept integer as instance_of(Numeric) + 1558) 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/argument_matchers_spec.rb:72 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:195 - 1559) argument matchers matching instance_of does NOT accept float as instance_of(Numeric) + 1559) 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/argument_matchers_spec.rb:67 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:25 - 1560) argument matchers matching boolean rejects non boolean + 1560) 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/argument_matchers_spec.rb:21 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:124 - 1561) argument matchers matching boolean accepts false as boolean + 1561) 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/argument_matchers_spec.rb:16 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:90 - 1562) argument matchers matching boolean accepts true as boolean + 1562) 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/argument_matchers_spec.rb:11 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:62 - 1563) argument matchers matching handling non-matcher arguments fails with sensible message when args respond to #description + 1563) 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/argument_matchers_spec.rb:484 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:100 - 1564) argument matchers matching handling non-matcher arguments fails with sensible message when arg#description is blank + 1564) 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/argument_matchers_spec.rb:498 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:183 - 1565) argument matchers matching handling non-matcher arguments matches a class against itself + 1565) 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/argument_matchers_spec.rb:458 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:188 - 1566) 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 + 1566) 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/argument_matchers_spec.rb:429 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:156 - 1567) argument matchers matching handling non-matcher arguments fails for a hash w/ wrong values + 1567) 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/argument_matchers_spec.rb:444 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:134 - 1568) argument matchers matching handling non-matcher arguments matches string against regexp + 1568) 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/argument_matchers_spec.rb:397 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:70 - 1569) argument matchers matching handling non-matcher arguments fails a class against an object of a different type + 1569) 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/argument_matchers_spec.rb:473 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:420 - 1570) 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) + 1570) 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/argument_matchers_spec.rb:422 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:411 - 1571) argument matchers matching handling non-matcher arguments fails with zero arguments + 1571) 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/argument_matchers_spec.rb:478 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:430 - 1572) argument matchers matching handling non-matcher arguments fails if regexp does not match submitted regexp + 1572) 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/argument_matchers_spec.rb:412 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:315 - 1573) argument matchers matching handling non-matcher arguments matches against a hash submitted and received by value + 1573) 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/argument_matchers_spec.rb:417 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:297 - 1574) argument matchers matching handling non-matcher arguments fails a class against an unrelated class + 1574) 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/argument_matchers_spec.rb:463 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:301 - 1575) argument matchers matching handling non-matcher arguments matches regexp against regexp + 1575) 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/argument_matchers_spec.rb:402 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:215 - 1576) argument matchers matching handling non-matcher arguments fails for a hash w/ wrong keys + 1576) 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/argument_matchers_spec.rb:451 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:221 - 1577) argument matchers matching handling non-matcher arguments fails with sensible message when arg#description is nil + 1577) 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/argument_matchers_spec.rb:491 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:239 - 1578) argument matchers matching handling non-matcher arguments fails if regexp does not match submitted string + 1578) 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/argument_matchers_spec.rb:407 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:247 - 1579) argument matchers matching handling non-matcher arguments matches a class against an instance of itself + 1579) 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/argument_matchers_spec.rb:468 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:285 - 1580) argument matchers matching any_args as the only arg passed to `with` matches one arg + 1580) 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/argument_matchers_spec.rb:139 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:273 - 1581) argument matchers matching any_args as the only arg passed to `with` matches no args + 1581) 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/argument_matchers_spec.rb:135 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:264 - 1582) argument matchers matching any_args as the only arg passed to `with` matches many args + 1582) 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/argument_matchers_spec.rb:143 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:231 - 1583) 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 + 1583) 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/argument_matchers_spec.rb:203 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:389 - 1584) 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 + 1584) 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/argument_matchers_spec.rb:207 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:398 - 1585) argument matchers matching any_args as the middle of three args does not match a call of no args + 1585) 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/argument_matchers_spec.rb:215 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:381 - 1586) 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 + 1586) 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/argument_matchers_spec.rb:199 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:339 - 1587) 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 + 1587) 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/argument_matchers_spec.rb:211 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:343 - 1588) argument matchers matching any_args as the last of three args does not match a call of no args + 1588) 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/argument_matchers_spec.rb:167 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:347 - 1589) 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 + 1589) 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/argument_matchers_spec.rb:159 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:361 - 1590) 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 + 1590) 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/argument_matchers_spec.rb:155 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:369 - 1591) argument matchers matching any_args as the last of three args does not match a call where the first two args do not match + 1591) 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/argument_matchers_spec.rb:163 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:355 - 1592) 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 + 1592) 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/argument_matchers_spec.rb:151 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:327 - 1593) 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 + 1593) 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/argument_matchers_spec.rb:179 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:323 - 1594) argument matchers matching any_args as the first of three args does not match a call where the last two args do not match + 1594) 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/argument_matchers_spec.rb:187 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:331 - 1595) 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 + 1595) 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/argument_matchers_spec.rb:175 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:517 - 1596) 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 + 1596) 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/argument_matchers_spec.rb:183 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:447 - 1597) argument matchers matching any_args as the first of three args does not match a call of no args + 1597) 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/argument_matchers_spec.rb:191 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:455 - 1598) argument matchers matching any_args when passed twice immediately signals that this is invalid + 1598) 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/argument_matchers_spec.rb:221 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:484 - 1599) argument matchers matching array_including fails array_including when args aren't array + 1599) 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/argument_matchers_spec.rb:288 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:533 - 1600) argument matchers matching array_including fails array_including when arg doesn't contain all elements + 1600) 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/argument_matchers_spec.rb:295 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:538 - 1601) argument matchers matching array_including matches array with array_including using fuzzymatcher + 1601) 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/argument_matchers_spec.rb:283 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:555 - 1602) argument matchers matching array_including matches array with array_including same array + 1602) 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/argument_matchers_spec.rb:278 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:560 - 1603) argument matchers matching hash_including matches hash with hash_including same hash + 1603) 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/argument_matchers_spec.rb:250 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:174 - 1604) argument matchers matching hash_including fails hash_including with missing key + 1604) 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/argument_matchers_spec.rb:255 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:169 - 1605) argument matchers matching no_args matches no args against no_args + 1605) 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/argument_matchers_spec.rb:230 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:653 - 1606) argument matchers matching no_args fails no_args with one arg + 1606) 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/argument_matchers_spec.rb:235 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:637 - 1607) argument matchers matching no_args when passed with other arguments immediately signals that this is invalid + 1607) 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/argument_matchers_spec.rb:241 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1608) argument matchers matching hash_excluding handles non matching instances nicely + 1608) 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/argument_matchers_spec.rb:269 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1609) argument matchers matching hash_excluding matches hash with hash_excluding same hash + 1609) 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/argument_matchers_spec.rb:264 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1610) argument matchers matching duck_type matches duck type with one method + 1610) 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/argument_matchers_spec.rb:113 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:571 - 1611) argument matchers matching duck_type rejects goose when expecting a duck + 1611) 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/argument_matchers_spec.rb:123 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1612) argument matchers matching duck_type matches duck type with two methods + 1612) 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/argument_matchers_spec.rb:118 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1613) argument matchers matching anything accepts string as anything + 1613) 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/argument_matchers_spec.rb:96 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:576 - 1614) argument matchers matching anything doesn't accept no arguments + 1614) 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/argument_matchers_spec.rb:101 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:584 - 1615) argument matchers matching anything handles non matching instances nicely + 1615) 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/argument_matchers_spec.rb:106 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1616) argument matchers matching kind_of accepts fixnum as kind_of(Numeric) + 1616) 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/argument_matchers_spec.rb:30 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:595 - 1617) argument matchers matching kind_of accepts float as kind_of(Numeric) + 1617) 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/argument_matchers_spec.rb:35 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:609 - 1618) argument matchers matching kind_of handles non matching kinds nicely + 1618) 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/argument_matchers_spec.rb:40 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:604 - 1619) argument matchers matching kind_of matches arguments that have defined `kind_of?` to return true + 1619) 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/argument_matchers_spec.rb:47 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:645 - 1620) argument matchers matching kind_of handles a class thats overridden === + 1620) 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/argument_matchers_spec.rb:53 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:629 - 1621) argument matchers matching handling arbitrary matchers fails when given an arbitrary object that returns false from #=== + 1621) 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/argument_matchers_spec.rb:352 + # ./spec/rspec/mocks/order_group_spec.rb:18 - 1622) argument matchers matching handling arbitrary matchers matches against a Matcher + 1622) 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/argument_matchers_spec.rb:345 + # ./spec/rspec/mocks/order_group_spec.rb:21 - 1623) argument matchers matching handling arbitrary matchers matches any arbitrary object using #=== + 1623) 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/argument_matchers_spec.rb:337 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:43 - 1624) at_least fails when at least thrice method is called less than three times + 1624) 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:45 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:9 - 1625) at_least passes when at least twice method is called twice + 1625) 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:94 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:2 - 1626) at_least returns the value given by a block when the at least once method is called + 1626) 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:118 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:26 - 1627) at_least passes when at least thrice method is called four times + 1627) 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:109 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:84 - 1628) at_least fails when at least once method is never called + 1628) 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:23 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:68 - 1629) at_least passes when at least thrice method is called three times + 1629) 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:101 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:60 - 1630) at_least passes when at least n times method is called exactly n times + 1630) 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:54 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:76 - 1631) at_least passes when at least once method is called twice + 1631) 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:79 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:95 - 1632) at_least passes when at least twice method is called three times + 1632) #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/at_least_spec.rb:86 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:70 - 1633) at_least prefers its own return value over a stub + 1633) #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/at_least_spec.rb:139 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:85 - 1634) at_least fails when at least twice method is called once + 1634) 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/at_least_spec.rb:30 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1635) at_least fails if method is never called + 1635) 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/at_least_spec.rb:6 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1636) at_least uses a stub value if no value set + 1636) 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/at_least_spec.rb:132 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1637) at_least passes when at least n times method is called n plus 1 times + 1637) 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/at_least_spec.rb:63 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1638) at_least fails when called less than n times + 1638) 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/at_least_spec.rb:13 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1639) at_least passes when at least once method is called once + 1639) 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/at_least_spec.rb:73 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1640) at_least fails when at least twice method is never called + 1640) 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/at_least_spec.rb:38 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1641) at_least when sent with 0 outputs a removal message + 1641) 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/at_least_spec.rb:125 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1642) at_least when called with negative expectation raises an error + 1642) 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/at_least_spec.rb:147 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:162 - 1643) .expect_message sets up basic message expectation, verifies as uncalled + 1643) 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/syntax_agnostic_message_matchers_spec.rb:56 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:131 - 1644) .expect_message fails if never is specified and the message is called + 1644) 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/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:66 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:119 - 1645) .expect_message does not get confused when the string and symbol message form are both used + 1645) 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/syntax_agnostic_message_matchers_spec.rb:91 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:104 - 1646) .expect_message sets up message expectation with params and return value + 1646) 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/syntax_agnostic_message_matchers_spec.rb:79 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:110 - 1647) .expect_message sets up basic message expectation, verifies as called + 1647) 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/syntax_agnostic_message_matchers_spec.rb:73 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:18 - 1648) .expect_message accepts a block implementation for the expected message + 1648) 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/syntax_agnostic_message_matchers_spec.rb:85 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:29 - 1649) .expect_message when target cannot be proxied raises ArgumentError with message + 1649) 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/syntax_agnostic_message_matchers_spec.rb:102 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:52 - 1650) Using the legacy should syntax #stub_chain raises an error with a useful message + 1650) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:24 - 1651) Using the legacy should syntax #stub_chain can stub a sequence of messages + 1651) 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:61 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:40 - 1652) Using the legacy should syntax #should_receive can set a canned response + 1652) 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:146 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:77 - 1653) Using the legacy should syntax #should_receive fails on verification if the message is not received + 1653) 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:133 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:93 - 1654) Using the legacy should syntax #should_receive raises an error with a useful message + 1654) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:85 - 1655) Using the legacy should syntax #should_receive does not fail on verification if the message is received + 1655) 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:139 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:155 - 1656) Using the legacy should syntax #should_receive with an options hash uses the message supplied with :message after a similar stub + 1656) 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:178 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:149 - 1657) Using the legacy should syntax #should_receive with an options hash uses the message supplied with :message + 1657) #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/should_syntax_spec.rb:170 + # ./spec/rspec/mocks/null_object_double_spec.rb:113 - 1658) Using the legacy should syntax #should_receive with an options hash reports the file and line submitted with :expected_from + 1658) 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/should_syntax_spec.rb:159 + # ./spec/rspec/mocks/test_double_spec.rb:34 - 1659) Using the legacy should syntax #should_not_receive fails when the message is received + 1659) 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/should_syntax_spec.rb:194 + # ./spec/rspec/mocks/test_double_spec.rb:34 - 1660) Using the legacy should syntax #should_not_receive does not fail on verification if the message is not received + 1660) 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/should_syntax_spec.rb:201 + # ./spec/rspec/mocks/test_double_spec.rb:48 - 1661) Using the legacy should syntax #should_not_receive returns a negative message expectation + 1661) 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/should_syntax_spec.rb:190 + # ./spec/rspec/mocks/test_double_spec.rb:17 - 1662) Using the legacy should syntax #should_not_receive raises an error with a useful message + 1662) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/test_double_spec.rb:27 - 1663) Using the legacy should syntax #stub returns `nil` from all terminal actions to discourage further configuration + 1663) 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/should_syntax_spec.rb:34 + # ./spec/rspec/mocks/test_double_spec.rb:12 - 1664) Using the legacy should syntax #stub can stub multiple messages using a hash + 1664) 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/should_syntax_spec.rb:46 + # ./spec/rspec/mocks/test_double_spec.rb:7 - 1665) Using the legacy should syntax #stub supports options + 1665) 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/should_syntax_spec.rb:30 + # ./spec/rspec/mocks/test_double_spec.rb:48 - 1666) Using the legacy should syntax #stub raises an error with a useful message + 1666) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/test_double_spec.rb:48 - 1667) Using the legacy should syntax #stub sets up a canned response + 1667) 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/should_syntax_spec.rb:40 + # ./spec/rspec/mocks_spec.rb:61 - 1668) Using the legacy should syntax #any_instance affects previously stubbed instances when stubbing a method + 1668) 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/should_syntax_spec.rb:255 + # ./spec/rspec/mocks_spec.rb:54 - 1669) Using the legacy should syntax #any_instance raises an error with a useful message + 1669) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks_spec.rb:76 - 1670) Using the legacy should syntax #any_instance affects previously stubbed instances when mocking a method + 1670) 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/should_syntax_spec.rb:263 + # ./spec/rspec/mocks_spec.rb:229 - 1671) Using the legacy should syntax #any_instance adds a class to the current space + 1671) 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/should_syntax_spec.rb:231 + # - 1672) Using the legacy should syntax #any_instance can get method objects for the fluent interface + 1672) 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/should_syntax_spec.rb:248 + # - 1673) Using the legacy should syntax #any_instance can stub a method + 1673) 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/should_syntax_spec.rb:237 + # - 1674) Using the legacy should syntax #any_instance can mock a method + 1674) 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/should_syntax_spec.rb:242 + # - 1675) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_raise' + 1675) 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/should_syntax_spec.rb:281 + # ./spec/rspec/mocks_spec.rb:89 - 1676) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_yield' + 1676) 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/should_syntax_spec.rb:285 + # ./spec/rspec/mocks_spec.rb:202 - 1677) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'stub' follows 'with' + 1677) 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/should_syntax_spec.rb:273 + # ./spec/rspec/mocks_spec.rb:212 - 1678) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_return' + 1678) 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/should_syntax_spec.rb:277 + # ./spec/rspec/mocks_spec.rb:189 - 1679) Using the legacy should syntax #any_instance invocation order #stub behaves as 'every instance' handles `unstub` on subclasses + 1679) 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/should_syntax_spec.rb:293 + # ./spec/rspec/mocks_spec.rb:133 - 1680) Using the legacy should syntax #any_instance invocation order #unstub removes stubs set directly on an instance + 1680) 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/should_syntax_spec.rb:419 + # ./spec/rspec/mocks_spec.rb:142 - 1681) Using the legacy should syntax #any_instance invocation order #unstub removes stubs from sub class after Invocation when super class was originally stubbed + 1681) 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/should_syntax_spec.rb:411 + # ./spec/rspec/mocks_spec.rb:137 - 1682) Using the legacy should syntax #any_instance invocation order #unstub does not get confused about string vs symbol usage for the message + 1682) 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/should_syntax_spec.rb:449 + # ./spec/rspec/mocks_spec.rb:158 - 1683) Using the legacy should syntax #any_instance invocation order #unstub raises a MockExpectationError if the method has not been stubbed + 1683) 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/should_syntax_spec.rb:443 + # ./spec/rspec/mocks_spec.rb:183 - 1684) Using the legacy should syntax #any_instance invocation order #unstub removes stubs even if they have already been invoked + 1684) 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/should_syntax_spec.rb:403 + # ./spec/rspec/mocks_spec.rb:173 - 1685) Using the legacy should syntax #any_instance invocation order #unstub replaces the stubbed method with the original method + 1685) 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/should_syntax_spec.rb:390 + # ./spec/rspec/mocks_spec.rb:177 - 1686) Using the legacy should syntax #any_instance invocation order #unstub removes all stubs with the supplied method name + 1686) 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/should_syntax_spec.rb:396 + # ./spec/rspec/mocks_spec.rb:107 - 1687) Using the legacy should syntax #any_instance invocation order #unstub does not remove any expectations with the same method name + 1687) 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/should_syntax_spec.rb:435 + # ./spec/rspec/mocks_spec.rb:111 - 1688) Using the legacy should syntax #any_instance invocation order #unstub does not remove message expectations set directly on an instance + 1688) 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/should_syntax_spec.rb:427 + # ./spec/rspec/mocks_spec.rb:117 - 1689) Using the legacy should syntax #any_instance invocation order #should_receive raises an error if 'should_receive' follows 'with' + 1689) 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/should_syntax_spec.rb:335 + # ./spec/rspec/mocks_spec.rb:42 - 1690) Using the legacy should syntax #any_instance invocation order #should_not_receive passes if no method is called + 1690) 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/should_syntax_spec.rb:349 + # ./spec/rspec/mocks/mutate_const_spec.rb:489 - 1691) Using the legacy should syntax #any_instance invocation order #should_not_receive passes if only a different method is called + 1691) 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/should_syntax_spec.rb:353 + # ./spec/rspec/mocks/mutate_const_spec.rb:485 - 1692) Using the legacy should syntax #any_instance invocation order #should_not_receive prevents confusing double-negative expressions involving `never` + 1692) 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/should_syntax_spec.rb:382 + # ./spec/rspec/mocks/mutate_const_spec.rb:488 - 1693) Using the legacy should syntax #any_instance invocation order #should_not_receive fails if the method is called + 1693) 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/should_syntax_spec.rb:341 + # ./spec/rspec/mocks/mutate_const_spec.rb:487 - 1694) 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 + 1694) 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/should_syntax_spec.rb:374 + # ./spec/rspec/mocks/mutate_const_spec.rb:486 - 1695) Using the legacy should syntax #any_instance invocation order #should_not_receive with constraints fails if the method is called with the specified parameters + 1695) 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/should_syntax_spec.rb:359 + # ./spec/rspec/mocks/mutate_const_spec.rb:483 - 1696) Using the legacy should syntax #any_instance invocation order #should_not_receive with constraints passes if the method is called with different parameters + 1696) 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/should_syntax_spec.rb:367 + # ./spec/rspec/mocks/mutate_const_spec.rb:484 - 1697) Using the legacy should syntax #any_instance invocation order #stub_chain raises an error if 'stub_chain' follows 'and_return' + 1697) 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/should_syntax_spec.rb:303 + # ./spec/rspec/mocks/mutate_const_spec.rb:536 - 1698) Using the legacy should syntax #any_instance invocation order #stub_chain affects previously stubbed instances + 1698) 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/should_syntax_spec.rb:324 + # ./spec/rspec/mocks/mutate_const_spec.rb:540 - 1699) 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 + 1699) 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/should_syntax_spec.rb:313 + # ./spec/rspec/mocks/mutate_const_spec.rb:541 - 1700) 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 + 1700) 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/should_syntax_spec.rb:308 + # ./spec/rspec/mocks/mutate_const_spec.rb:538 - 1701) 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 + 1701) 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/should_syntax_spec.rb:318 + # ./spec/rspec/mocks/mutate_const_spec.rb:539 - 1702) Using the legacy should syntax #received_message? answers false for received_message? when message received with incorrect args + 1702) 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/should_syntax_spec.rb:23 + # ./spec/rspec/mocks/mutate_const_spec.rb:542 - 1703) Using the legacy should syntax #received_message? answers false for received_message? when no messages received + 1703) 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/should_syntax_spec.rb:9 + # ./spec/rspec/mocks/mutate_const_spec.rb:537 - 1704) Using the legacy should syntax #received_message? answers true for received_message? when message received with correct args + 1704) 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/should_syntax_spec.rb:18 + # ./spec/rspec/mocks/mutate_const_spec.rb:476 - 1705) Using the legacy should syntax #received_message? answers true for received_message? when message received + 1705) 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/should_syntax_spec.rb:13 + # ./spec/rspec/mocks/mutate_const_spec.rb:475 - 1706) Using the legacy should syntax #unstub removes all stubs with the supplied method name + 1706) 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/should_syntax_spec.rb:92 + # ./spec/rspec/mocks/mutate_const_spec.rb:473 - 1707) Using the legacy should syntax #unstub replaces the stubbed method with the original method + 1707) 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/should_syntax_spec.rb:84 + # ./spec/rspec/mocks/mutate_const_spec.rb:474 - 1708) Using the legacy should syntax #unstub does not remove any expectations with the same method name + 1708) 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/should_syntax_spec.rb:101 + # ./spec/rspec/mocks/mutate_const_spec.rb:471 - 1709) Using the legacy should syntax #unstub restores the correct implementations when stubbed and unstubbed on a parent and child class + 1709) 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/should_syntax_spec.rb:111 + # ./spec/rspec/mocks/mutate_const_spec.rb:470 - 1710) Using the legacy should syntax #unstub raises an error with a useful message + 1710) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/mutate_const_spec.rb:472 - 1711) Using the legacy should syntax #unstub raises a MockExpectationError if the method has not been stubbed + 1711) 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/should_syntax_spec.rb:124 + # ./spec/rspec/mocks/mutate_const_spec.rb:555 - 1712) 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 + 1712) 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/multiple_return_value_spec.rb:109 + # ./spec/rspec/mocks/mutate_const_spec.rb:553 - 1713) 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 + 1713) 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/multiple_return_value_spec.rb:116 + # ./spec/rspec/mocks/mutate_const_spec.rb:551 - 1714) 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 + 1714) 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/multiple_return_value_spec.rb:122 + # ./spec/rspec/mocks/mutate_const_spec.rb:552 - 1715) when a class method is aliased on a subclass and the method is mocked restores the original aliased public method + 1715) 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/stash_spec.rb:26 + # ./spec/rspec/mocks/mutate_const_spec.rb:550 - 1716) MockExpectationError is not caught by StandardError rescue blocks + 1716) 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/mock_expectation_error_spec.rb:12 + # ./spec/rspec/mocks/mutate_const_spec.rb:549 - 1717) when the should syntax is enabled on a non-default syntax host continues to warn about the should syntax + 1717) 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/should_syntax_spec.rb:574 + # ./spec/rspec/mocks/mutate_const_spec.rb:554 - 1718) A method stub keeps returning last value in consecutive calls + 1718) 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/stub_spec.rb:453 + # ./spec/rspec/mocks/mutate_const_spec.rb:568 - 1719) A method stub is retained when stubbed object is `clone`d + 1719) 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/stub_spec.rb:78 + # ./spec/rspec/mocks/mutate_const_spec.rb:564 - 1720) A method stub throws when told to + 1720) 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/stub_spec.rb:486 + # ./spec/rspec/mocks/mutate_const_spec.rb:563 - 1721) A method stub instructs an instance to respond_to the message + 1721) 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/stub_spec.rb:39 + # ./spec/rspec/mocks/mutate_const_spec.rb:565 - 1722) A method stub overrides a pre-existing stub + 1722) 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/stub_spec.rb:501 + # ./spec/rspec/mocks/mutate_const_spec.rb:569 - 1723) A method stub yields a specified object and return another specified object + 1723) 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/stub_spec.rb:479 + # ./spec/rspec/mocks/mutate_const_spec.rb:567 - 1724) A method stub ignores when message is received with args + 1724) 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/stub_spec.rb:57 + # ./spec/rspec/mocks/mutate_const_spec.rb:566 - 1725) A method stub allows a stub and an expectation + 1725) 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/stub_spec.rb:507 + # ./spec/rspec/mocks/mutate_const_spec.rb:578 - 1726) A method stub ignores when expected message is received with no args + 1726) 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/stub_spec.rb:49 + # ./spec/rspec/mocks/mutate_const_spec.rb:580 - 1727) A method stub remains private when it stubs a private instance method + 1727) 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/stub_spec.rb:88 + # ./spec/rspec/mocks/mutate_const_spec.rb:577 - 1728) A method stub throws with argument when told to + 1728) 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/stub_spec.rb:491 + # ./spec/rspec/mocks/mutate_const_spec.rb:576 - 1729) A method stub handles multiple stubbed methods + 1729) 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/stub_spec.rb:72 + # ./spec/rspec/mocks/mutate_const_spec.rb:582 - 1730) A method stub overrides a pre-existing method + 1730) 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/stub_spec.rb:496 + # ./spec/rspec/mocks/mutate_const_spec.rb:581 - 1731) A method stub ignores when expected message is not received + 1731) 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/stub_spec.rb:65 + # ./spec/rspec/mocks/mutate_const_spec.rb:579 - 1732) A method stub yields multiple times with multiple calls to and_yield + 1732) 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/stub_spec.rb:470 + # ./spec/rspec/mocks/mutate_const_spec.rb:461 - 1733) A method stub remains private when it stubs a private class method + 1733) 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/stub_spec.rb:93 + # ./spec/rspec/mocks/mutate_const_spec.rb:462 - 1734) A method stub returns values in order to consecutive calls + 1734) 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/stub_spec.rb:446 + # ./spec/rspec/mocks/mutate_const_spec.rb:463 - 1735) A method stub is cleared when stubbed object when `dup`ed + 1735) 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/stub_spec.rb:83 + # ./spec/rspec/mocks/mutate_const_spec.rb:457 - 1736) A method stub yields a specified object + 1736) 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/stub_spec.rb:462 + # ./spec/rspec/mocks/mutate_const_spec.rb:458 - 1737) A method stub instructs a class object to respond_to the message + 1737) 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/stub_spec.rb:44 + # ./spec/rspec/mocks/mutate_const_spec.rb:459 - 1738) A method stub using `with` determines which value is returned + 1738) 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/stub_spec.rb:99 + # ./spec/rspec/mocks/mutate_const_spec.rb:460 - 1739) A method stub using `with` allows differing arities + 1739) 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/stub_spec.rb:107 + # ./spec/rspec/mocks/mutate_const_spec.rb:529 - 1740) A method stub stubbing with prepend does not unnecessarily prepend a module when the module was included + 1740) 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/stub_spec.rb:189 + # ./spec/rspec/mocks/mutate_const_spec.rb:525 - 1741) A method stub stubbing with prepend does not unnecessarily prepend a module when the prepended module does not override the stubbed method + 1741) 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/stub_spec.rb:168 + # ./spec/rspec/mocks/mutate_const_spec.rb:524 - 1742) A method stub stubbing with prepend does not unnecessarily prepend a module when stubbing a method on a module extended onto itself + 1742) 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/stub_spec.rb:178 + # ./spec/rspec/mocks/mutate_const_spec.rb:523 - 1743) A method stub stubbing with prepend handles stubbing prepended methods on an object's singleton class + 1743) 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/stub_spec.rb:158 + # ./spec/rspec/mocks/mutate_const_spec.rb:527 - 1744) A method stub stubbing with prepend reuses our prepend module so as not to keep mutating the ancestors + 1744) 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/stub_spec.rb:199 + # ./spec/rspec/mocks/mutate_const_spec.rb:528 - 1745) A method stub stubbing with prepend handles stubbing prepended methods + 1745) 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/stub_spec.rb:143 + # ./spec/rspec/mocks/mutate_const_spec.rb:526 - 1746) A method stub stubbing with prepend handles stubbing prepended methods on a class's singleton class + 1746) 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/stub_spec.rb:151 + # ./spec/rspec/mocks/mutate_const_spec.rb:509 - 1747) A method stub stubbing with prepend when a module with a method override is prepended after reset can still be stubbed again + 1747) 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/stub_spec.rb:231 + # ./spec/rspec/mocks/mutate_const_spec.rb:512 - 1748) 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 + 1748) 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/stub_spec.rb:214 + # ./spec/rspec/mocks/mutate_const_spec.rb:510 - 1749) A method stub #rspec_reset removes stubbed methods that didn't exist + 1749) 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/stub_spec.rb:253 + # ./spec/rspec/mocks/mutate_const_spec.rb:514 - 1750) A method stub #rspec_reset restores existing private class methods + 1750) 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/stub_spec.rb:318 + # ./spec/rspec/mocks/mutate_const_spec.rb:515 - 1751) A method stub #rspec_reset correctly restores the visibility of methods whose visibility has been tweaked on the singleton class + 1751) 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/stub_spec.rb:334 + # ./spec/rspec/mocks/mutate_const_spec.rb:513 - 1752) A method stub #rspec_reset restores existing instance methods + 1752) 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/stub_spec.rb:259 + # ./spec/rspec/mocks/mutate_const_spec.rb:511 - 1753) A method stub #rspec_reset restores existing singleton methods with the appropriate context + 1753) 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/stub_spec.rb:266 + # ./spec/rspec/mocks/mutate_const_spec.rb:447 - 1754) A method stub #rspec_reset correctly handles stubbing inherited mixed in class methods + 1754) 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/stub_spec.rb:353 + # ./spec/rspec/mocks/mutate_const_spec.rb:450 - 1755) A method stub #rspec_reset restores existing private instance methods + 1755) 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/stub_spec.rb:285 + # ./spec/rspec/mocks/mutate_const_spec.rb:444 - 1756) A method stub #rspec_reset restores existing class methods + 1756) 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/stub_spec.rb:292 + # ./spec/rspec/mocks/mutate_const_spec.rb:448 - 1757) A method stub #rspec_reset restores existing aliased module_function methods + 1757) 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/stub_spec.rb:299 + # ./spec/rspec/mocks/mutate_const_spec.rb:445 - 1758) A method stub #rspec_reset does not remove existing methods that have been stubbed twice + 1758) 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/stub_spec.rb:325 + # ./spec/rspec/mocks/mutate_const_spec.rb:449 - 1759) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores prepended instance methods + 1759) 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/stub_spec.rb:400 + # ./spec/rspec/mocks/mutate_const_spec.rb:446 - 1760) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores prepended object singleton methods + 1760) 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/stub_spec.rb:431 + # ./spec/rspec/mocks/mutate_const_spec.rb:496 - 1761) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores non-prepended instance methods + 1761) 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/stub_spec.rb:408 + # ./spec/rspec/mocks/mutate_const_spec.rb:495 - 1762) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores prepended class methods + 1762) 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/stub_spec.rb:416 + # ./spec/rspec/mocks/mutate_const_spec.rb:498 - 1763) A method stub using `and_return` returns declared value when message is received + 1763) 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/stub_spec.rb:32 + # ./spec/rspec/mocks/mutate_const_spec.rb:497 - 1764) A method stub when the stubbed method is called does not call any methods on the passed args, since that could mutate them + 1764) 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/stub_spec.rb:117 + # ./spec/rspec/mocks/mutate_const_spec.rb:501 - 1765) #twice passes when called twice with specified args + 1765) 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/twice_counts_spec.rb:15 + # ./spec/rspec/mocks/mutate_const_spec.rb:499 - 1766) #twice fails fast when call count is higher than expected + 1766) 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/twice_counts_spec.rb:29 + # ./spec/rspec/mocks/mutate_const_spec.rb:500 - 1767) #twice fails when called with wrong args on the first call + 1767) 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/twice_counts_spec.rb:46 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1768) #twice fails when call count is lower than expected + 1768) 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/twice_counts_spec.rb:38 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1769) #twice passes when called twice + 1769) 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/twice_counts_spec.rb:8 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1770) #twice passes when called twice with unspecified args + 1770) 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/twice_counts_spec.rb:22 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1771) #twice fails when called with wrong args on the second call + 1771) 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/twice_counts_spec.rb:54 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1772) #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 + 1772) 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/twice_counts_spec.rb:64 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1773) #twice when called with negative expectation raises an error + 1773) 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/twice_counts_spec.rb:89 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1774) Using a reopened file object as a partial mock allows `write` to be stubbed and reset + 1774) 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/partial_double_spec.rb:199 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1775) a message expectation with multiple return values with a specified count equal to the number of values returns values in order to consecutive calls + 1775) 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/multiple_return_value_spec.rb:60 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1776) #null_object? defaults to false + 1776) 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/null_object_double_spec.rb:120 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1777) ordering passes when messages are received in order + 1777) 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/mock_ordering_spec.rb:7 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1778) ordering passes when messages are received in order + 1778) 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/mock_ordering_spec.rb:16 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1779) ordering ignores order of non ordered messages + 1779) 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/mock_ordering_spec.rb:80 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1780) ordering supports duplicate messages + 1780) 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/mock_ordering_spec.rb:100 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1781) ordering passes when messages are received in order across objects + 1781) 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/mock_ordering_spec.rb:27 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1782) ordering fails when messages are received out of order (2nd message 1st) + 1782) 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/mock_ordering_spec.rb:38 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1783) ordering fails when messages are received out of order (3rd message 2nd) + 1783) 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/mock_ordering_spec.rb:56 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1784) ordering fails when messages are out of order across objects + 1784) 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/mock_ordering_spec.rb:66 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1785) ordering fails when messages are received out of order (3rd message 1st) + 1785) 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/mock_ordering_spec.rb:46 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:35 - 1786) a message expectation with multiple return values specifying at_least less than the number of values uses the last return value for subsequent calls + 1786) 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/multiple_return_value_spec.rb:74 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:22 - 1787) a message expectation with multiple return values specifying at_least less than the number of values fails when called less than the specified number + 1787) 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/multiple_return_value_spec.rb:81 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 - 1788) 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 + 1788) 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/multiple_return_value_spec.rb:89 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 - 1789) 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 + 1789) 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/multiple_return_value_spec.rb:96 + # ./spec/rspec/mocks/partial_double_spec.rb:199 -Finished in 5.92 seconds (files took 3.21 seconds to load) +Finished in 21.5 seconds (files took 10.31 seconds to load) 1789 examples, 0 failures, 1789 pending -Randomized with seed 2246 +Randomized with seed 48562 cd - @@ -8707,9 +8742,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/mutex_spec.rb spec/rspec/support/object_formatter_spec.rb spec/rspec/support/recursive_const_methods_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 44347 -..........................................................................................................................*..........fatal: not a git repository (or any of the parent directories): .git -................................................................................................................................................................*... +Randomized with seed 4668 +.................................................................................................................*............*............................................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) @@ -8724,10 +8759,10 @@ # Need to investigate why this is failing -- see https://travis-ci.org/rspec/rspec-core/jobs/60327106 and https://travis-ci.org/rspec/rspec-support/jobs/60296920 for examples # ./spec/rspec/support/spec/shell_out_spec.rb:22 -Finished in 5.62 seconds (files took 0.86777 seconds to load) +Finished in 18.35 seconds (files took 3.74 seconds to load) 297 examples, 0 failures, 2 pending -Randomized with seed 44347 +Randomized with seed 4668 cd - @@ -8763,22 +8798,22 @@ 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: 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-support: substitution variable ${ruby:Versions} used, but is not 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: package ruby-rspec: 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: substitution variable ${ruby:Depends} unused, but is 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 dh_md5sums -O--buildsystem=ruby dh_builddeb -O--buildsystem=ruby -dpkg-deb: building package 'ruby-rspec-support' in '../ruby-rspec-support_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-support' in '../ruby-rspec-support_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-mocks' in '../ruby-rspec-mocks_3.13.0c0e0m0s1-2_all.deb'. dpkg-genbuildinfo --build=binary -O../ruby-rspec_3.13.0c0e0m0s1-2_armhf.buildinfo @@ -8788,12 +8823,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/18057/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/18057/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/6948 and its subdirectories -I: Current time: Tue May 7 11:00:04 -12 2024 -I: pbuilder-time-stamp: 1715122804 +I: removing directory /srv/workspace/pbuilder/18057 and its subdirectories +I: Current time: Wed May 8 13:13:46 +14 2024 +I: pbuilder-time-stamp: 1715123626