Diff of the two buildlogs: -- --- b1/build.log 2024-06-01 06:54:21.189216635 +0000 +++ b2/build.log 2024-06-01 06:55:37.249977779 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri May 31 18:45:14 -12 2024 -I: pbuilder-time-stamp: 1717224314 +I: Current time: Sat Jul 5 03:17:22 +14 2025 +I: pbuilder-time-stamp: 1751635042 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-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/1680533/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/2251749/tmp/hooks/D01_modify_environment starting +debug: Running on ionos5-amd64. +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 Jul 4 13:17 /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/2251749/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/2251749/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='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=20 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='amd64' + 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]="x86_64-pc-linux-gnu") + 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=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='eafd27a2675e42afb2c76c39f2bc3a69' - 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='1680533' - PS1='# ' - PS2='> ' + INVOCATION_ID=3a99846723b241dc9b58dd6ee4333882 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=2251749 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.F9bs4CxT/pbuilderrc_OVh4 --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.F9bs4CxT/b1 --logfile b1/build.log ruby-rspec_3.13.0c0e0m0s1-2.dsc' - SUDO_GID='111' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://46.16.76.132:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.F9bs4CxT/pbuilderrc_Y3t7 --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.F9bs4CxT/b2 --logfile b2/build.log ruby-rspec_3.13.0c0e0m0s1-2.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://213.165.73.152:3128 I: uname -a - Linux ionos11-amd64 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.7.12+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.7.12-1~bpo12+1 (2024-05-06) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 27 07:42 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1680533/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Jun 29 14:05 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/2251749/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -318,7 +350,7 @@ Get: 163 http://deb.debian.org/debian unstable/main amd64 ruby-nokogiri amd64 1.16.4+dfsg-1 [263 kB] Get: 164 http://deb.debian.org/debian unstable/main amd64 ruby-rr all 3.1.0-1 [40.2 kB] Get: 165 http://deb.debian.org/debian unstable/main amd64 ruby-thread-order all 1.1.0-1.1 [5336 B] -Fetched 56.2 MB in 7s (8231 kB/s) +Fetched 56.2 MB in 1s (103 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.11-minimal:amd64. (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 ... 19719 files and directories currently installed.) @@ -866,8 +898,8 @@ Setting up tzdata (2024a-4) ... Current default time zone: 'Etc/UTC' -Local time is now: Sat Jun 1 06:48:06 UTC 2024. -Universal Time is now: Sat Jun 1 06:48:06 UTC 2024. +Local time is now: Fri Jul 4 13:17:53 UTC 2025. +Universal Time is now: Fri Jul 4 13:17:53 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up liberror-perl (0.17029-2) ... @@ -1012,7 +1044,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/2251749/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/2251749/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 @@ -1051,13 +1087,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/d20240531-1702974-1izdmx/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20250705-2258884-ancewi/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/d20240531-1702974-1izdmx/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/d20250705-2258884-ancewi/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 @@ -1076,7 +1112,7 @@ find lib/ -type d -empty -delete cd - cd - -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240531-1702974-oc3chp/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20250705-2258884-crb2vc/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: @@ -1086,7 +1122,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/d20240531-1702974-oc3chp/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/d20250705-2258884-crb2vc/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 @@ -1183,7 +1219,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/d20240531-1702974-78aeom/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20250705-2258884-rtc4z6/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: @@ -1196,7 +1232,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/d20240531-1702974-78aeom/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/d20250705-2258884-rtc4z6/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 @@ -1262,7 +1298,7 @@ find lib/ -type d -empty -delete cd - cd - -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240531-1702974-u47ba/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20250705-2258884-q0a98i/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: @@ -1275,7 +1311,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/d20240531-1702974-u47ba/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/d20250705-2258884-q0a98i/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 @@ -1333,7 +1369,7 @@ find lib/ -type d -empty -delete cd - cd - -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240531-1702974-am3w94/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20250705-2258884-qhwir/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: @@ -1343,7 +1379,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/d20240531-1702974-am3w94/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/d20250705-2258884-qhwir/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 @@ -1410,7 +1446,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/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0 ruby3.1 debian/ruby-tests.rb -PATH=/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/rspec-core/exe:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games +PATH=/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/rspec-core/exe:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path RUBYLIB=.:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/rspec-core/lib:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/rspec-expectations/lib:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/rspec-mocks/lib:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/rspec-support/lib ∙∙∙∙∙∙∙∙∙∙∙∙∙∙ @@ -1421,8 +1457,8 @@ /usr/bin/ruby3.1 -S rspec spec/integration/bisect_runners_spec.rb spec/integration/bisect_spec.rb spec/integration/fail_if_no_examples_spec.rb spec/integration/failed_line_detection_spec.rb spec/integration/filtering_spec.rb spec/integration/order_spec.rb spec/integration/output_stream_spec.rb spec/integration/persistence_failures_spec.rb spec/integration/suite_hooks_errors_spec.rb spec/rspec/core/aggregate_failures_spec.rb spec/rspec/core/backtrace_formatter_spec.rb spec/rspec/core/bisect/coordinator_spec.rb spec/rspec/core/bisect/example_minimizer_spec.rb spec/rspec/core/bisect/server_spec.rb spec/rspec/core/bisect/shell_command_spec.rb spec/rspec/core/bisect/shell_runner_spec.rb spec/rspec/core/bisect/utilities_spec.rb spec/rspec/core/configuration/only_failures_support_spec.rb spec/rspec/core/configuration_options_spec.rb spec/rspec/core/configuration_spec.rb spec/rspec/core/did_you_mean_spec.rb spec/rspec/core/drb_spec.rb spec/rspec/core/dsl_spec.rb spec/rspec/core/example_execution_result_spec.rb spec/rspec/core/example_group_constants_spec.rb spec/rspec/core/example_group_spec.rb spec/rspec/core/example_spec.rb spec/rspec/core/example_status_persister_spec.rb spec/rspec/core/failed_example_notification_spec.rb spec/rspec/core/filter_manager_spec.rb spec/rspec/core/filterable_item_repository_spec.rb spec/rspec/core/formatters/base_text_formatter_spec.rb spec/rspec/core/formatters/console_codes_spec.rb spec/rspec/core/formatters/deprecation_formatter_spec.rb spec/rspec/core/formatters/documentation_formatter_spec.rb spec/rspec/core/formatters/exception_presenter_spec.rb spec/rspec/core/formatters/failure_list_formatter_spec.rb spec/rspec/core/formatters/fallback_message_formatter_spec.rb spec/rspec/core/formatters/helpers_spec.rb spec/rspec/core/formatters/html_formatter_spec.rb spec/rspec/core/formatters/html_snippet_extractor_spec.rb spec/rspec/core/formatters/json_formatter_spec.rb spec/rspec/core/formatters/profile_formatter_spec.rb spec/rspec/core/formatters/progress_formatter_spec.rb spec/rspec/core/formatters/snippet_extractor_spec.rb spec/rspec/core/formatters/syntax_highlighter_spec.rb spec/rspec/core/formatters_spec.rb spec/rspec/core/hooks_filtering_spec.rb spec/rspec/core/hooks_spec.rb spec/rspec/core/invocations_spec.rb spec/rspec/core/memoized_helpers_spec.rb spec/rspec/core/metadata_filter_spec.rb spec/rspec/core/metadata_spec.rb spec/rspec/core/notifications_spec.rb spec/rspec/core/option_parser_spec.rb spec/rspec/core/ordering_spec.rb spec/rspec/core/output_wrapper_spec.rb spec/rspec/core/pending_example_spec.rb spec/rspec/core/pending_spec.rb spec/rspec/core/profiler_spec.rb spec/rspec/core/project_initializer_spec.rb spec/rspec/core/rake_task_spec.rb spec/rspec/core/reporter_spec.rb spec/rspec/core/resources/a_spec.rb spec/rspec/core/resources/acceptance/foo_spec.rb spec/rspec/core/rspec_matchers_spec.rb spec/rspec/core/ruby_project_spec.rb spec/rspec/core/runner_spec.rb spec/rspec/core/set_spec.rb spec/rspec/core/shared_context_spec.rb spec/rspec/core/shared_example_group_spec.rb spec/rspec/core/suite_hooks_spec.rb spec/rspec/core/warnings_spec.rb spec/rspec/core/world_spec.rb Run options: exclude {:ruby=>#} -Randomized with seed 20212 -.*................................................................................................*........................................................................................................................................................................................................................................................*.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... +Randomized with seed 60398 +.*..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*..................................................................................................................................................................... Pending: (Failures listed here are expected and do not affect your suite's status) @@ -1443,10 +1479,10 @@ (compared using ==) -Finished in 1 minute 28.92 seconds (files took 7.32 seconds to load) +Finished in 11.6 seconds (files took 0.81822 seconds to load) 2198 examples, 0 failures, 3 pending -Randomized with seed 20212 +Randomized with seed 60398 cd - @@ -1457,49 +1493,50 @@ 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 8391 -.......................................................................................................................................................................................................................................................................................................................................................................................................................................................********................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. +Randomized with seed 21246 +........................................................................................................................................................................................................................................................................................................................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) - 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 does not support count constraint # around hook at ./spec/rspec/matchers/built_in/include_spec.rb:376 did not execute the example - # ./spec/rspec/matchers/built_in/include_spec.rb:89 - - 2) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target provides a valid diff 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:129 + # ./spec/rspec/matchers/built_in/include_spec.rb:157 - 3) #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 + 2) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target fails if target does not include expected # around hook at ./spec/rspec/matchers/built_in/include_spec.rb:376 did not execute the example - # ./spec/rspec/matchers/built_in/include_spec.rb:95 + # ./spec/rspec/matchers/built_in/include_spec.rb:82 - 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 + 3) #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:74 + # ./spec/rspec/matchers/built_in/include_spec.rb:89 - 5) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target fails if target does not include expected + 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 # around hook at ./spec/rspec/matchers/built_in/include_spec.rb:376 did not execute the example - # ./spec/rspec/matchers/built_in/include_spec.rb:82 + # ./spec/rspec/matchers/built_in/include_spec.rb: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 + 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 # 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 - 7) #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 + 6) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target passes if target has the expected as a key 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:78 - 8) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target does not support count constraint + 7) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target works even when an entry in the hash overrides #send # around hook at ./spec/rspec/matchers/built_in/include_spec.rb:376 did not execute the example - # ./spec/rspec/matchers/built_in/include_spec.rb:157 + # ./spec/rspec/matchers/built_in/include_spec.rb:95 + + 8) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target 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:74 22 deprecation warnings total -Finished in 33.34 seconds (files took 2.86 seconds to load) +Finished in 3.07 seconds (files took 0.52197 seconds to load) 2400 examples, 0 failures, 8 pending -Randomized with seed 8391 +Randomized with seed 21246 cd - @@ -1511,7171 +1548,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 38455 +Randomized with seed 1450 ************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************* Pending: (Failures listed here are expected and do not affect your suite's status) - 1) Using a reopened file object as a partial mock allows `write` to be stubbed and reset + 1) 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/partial_double_spec.rb:199 + # ./spec/rspec/mocks/block_return_value_spec.rb:71 - 2) a double _not_ acting as a null object says it responds to messages it does understand + 2) 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/null_object_double_spec.rb:12 + # ./spec/rspec/mocks/block_return_value_spec.rb:27 - 3) a double _not_ acting as a null object says it does not respond to messages it doesn't understand + 3) 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/null_object_double_spec.rb:8 + # ./spec/rspec/mocks/block_return_value_spec.rb:19 - 4) a double _not_ acting as a null object raises an error when interpolated in a string as an integer + 4) 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/null_object_double_spec.rb:17 + # ./spec/rspec/mocks/block_return_value_spec.rb:53 - 5) when using the :expect syntax still supports null object doubles + 5) 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/null_object_double_spec.rb:129 + # ./spec/rspec/mocks/block_return_value_spec.rb:3 - 6) A class double with the doubled class loaded only allows class methods that exist to be expected + 6) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:20 + # ./spec/rspec/mocks/block_return_value_spec.rb:9 - 7) A class double with the doubled class loaded allows class to be specified by constant + 7) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:76 + # ./spec/rspec/mocks/block_return_value_spec.rb:53 - 8) A class double with the doubled class loaded checks that stubbed methods are invoked with the correct arity + 8) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:50 + # ./spec/rspec/mocks/block_return_value_spec.rb:38 - 9) A class double with the doubled class loaded validates `with` args against the method signature when stubbing a method + 9) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:123 + # ./spec/rspec/mocks/block_return_value_spec.rb:44 - 10) A class double with the doubled class loaded gives a descriptive error message for NoMethodError + 10) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:43 + # ./spec/rspec/mocks/block_return_value_spec.rb:62 - 11) A class double with the doubled class loaded allows dynamically defined class methods to be expected + 11) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:71 + # ./spec/rspec/mocks/expiration_spec.rb:23 - 12) A class double with the doubled class loaded allows dynamically defined class method mocks with arguments + 12) After a test double has been torn down for a plain double disallows being checked for nullness # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:64 + # ./spec/rspec/mocks/expiration_spec.rb:51 - 13) A class double with the doubled class loaded can replace existing constants for the duration of the test + 13) After a test double has been torn down for a plain double disallows mocking new methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:81 + # ./spec/rspec/mocks/expiration_spec.rb:41 - 14) A class double with the doubled class loaded only allows class methods that exist to be stubbed + 14) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:12 + # ./spec/rspec/mocks/expiration_spec.rb:15 - 15) A class double with the doubled class loaded doesn't suggest `instance_double` when a non-instance method is stubbed' + 15) After a test double has been torn down for a plain double disallows previously stubbed methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:38 + # ./spec/rspec/mocks/expiration_spec.rb:19 - 16) A class double with the doubled class loaded only allows defined methods for null objects + 16) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:108 + # ./spec/rspec/mocks/expiration_spec.rb:29 - 17) A class double with the doubled class loaded verifies arguments for null objects + 17) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:115 + # ./spec/rspec/mocks/expiration_spec.rb:35 - 18) A class double with the doubled class loaded can transfer nested constants to the double + 18) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:92 + # ./spec/rspec/mocks/expiration_spec.rb:47 - 19) A class double with the doubled class loaded suggests using `instance_double` when an instance method is stubbed + 19) After a test double has been torn down for an object_double disallows previously stubbed methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:33 + # ./spec/rspec/mocks/expiration_spec.rb:19 - 20) A class double with the doubled class loaded correctly verifies expectations when constant is removed + 20) After a test double has been torn down for an object_double disallows being checked for nullness # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:99 + # ./spec/rspec/mocks/expiration_spec.rb:51 - 21) A class double with the doubled class loaded allows dynamically defined class method stubs with arguments + 21) After a test double has been torn down for an object_double disallows stubbing new methods (with receive_messages) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:57 + # ./spec/rspec/mocks/expiration_spec.rb:29 - 22) 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)` + 22) After a test double has been torn down for an object_double disallows stubbing new methods (with receive) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:217 + # ./spec/rspec/mocks/expiration_spec.rb:23 - 23) 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')` + 23) After a test double has been torn down for an object_double disallows being turned into a null object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:211 + # ./spec/rspec/mocks/expiration_spec.rb:47 - 24) A class double with the doubled class loaded when `.new` is stubbed uses the method signature from `#initialize` for arg verification + 24) After a test double has been torn down for an object_double disallows previously mocked methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:135 + # ./spec/rspec/mocks/expiration_spec.rb:15 - 25) A class double with the doubled class loaded when `.new` is stubbed on a class that has undefined `new` prevents it from being stubbed + 25) After a test double has been torn down for an object_double disallows mocking new methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:154 + # ./spec/rspec/mocks/expiration_spec.rb:41 - 26) 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 + 26) After a test double has been torn down for an object_double disallows stubbing new message chains # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:167 + # ./spec/rspec/mocks/expiration_spec.rb:35 - 27) 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 + 27) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:142 + # ./spec/rspec/mocks/expiration_spec.rb:47 - 28) A class double with the doubled class loaded when given a class that has an overridden `#name` method properly verifies + 28) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:193 + # ./spec/rspec/mocks/expiration_spec.rb:41 - 29) A class double with the doubled class loaded when given a class that has an overridden `#name` method can still stub the const + 29) After a test double has been torn down for a class_double disallows stubbing new methods (with receive_messages) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:197 + # ./spec/rspec/mocks/expiration_spec.rb:29 - 30) A class double with the doubled class loaded when given an anonymous class properly verifies + 30) After a test double has been torn down for a class_double disallows being checked for nullness # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:184 + # ./spec/rspec/mocks/expiration_spec.rb:51 - 31) a message expectation with multiple return values specifying at_least less than the number of values uses the last return value for subsequent calls + 31) 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/multiple_return_value_spec.rb:74 + # ./spec/rspec/mocks/expiration_spec.rb:15 - 32) a message expectation with multiple return values specifying at_least less than the number of values fails when called less than the specified number + 32) 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/multiple_return_value_spec.rb:81 + # ./spec/rspec/mocks/expiration_spec.rb:35 - 33) 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 + 33) 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/multiple_return_value_spec.rb:96 + # ./spec/rspec/mocks/expiration_spec.rb:19 - 34) 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 + 34) 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/multiple_return_value_spec.rb:89 + # ./spec/rspec/mocks/expiration_spec.rb:23 - 35) A chained method stub returns expected value from chaining four method calls + 35) 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/stub_chain_spec.rb:96 + # ./spec/rspec/mocks/expiration_spec.rb:29 - 36) A chained method stub does not get confused by symbol vs string usage for the messages + 36) 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/stub_chain_spec.rb:6 + # ./spec/rspec/mocks/expiration_spec.rb:35 - 37) A chained method stub handles private instance methods (like Object#select) in the middle of a chain + 37) 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/stub_chain_spec.rb:160 + # ./spec/rspec/mocks/expiration_spec.rb:15 - 38) A chained method stub returns expected value from two chains with shared messages at the beginning + 38) 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/stub_chain_spec.rb:152 + # ./spec/rspec/mocks/expiration_spec.rb:51 - 39) A chained method stub returns expected value when chain is a dot separated string, like stub_chain('msg1.msg2.msg3') + 39) 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/stub_chain_spec.rb:147 + # ./spec/rspec/mocks/expiration_spec.rb:23 - 40) A chained method stub with messages shared across multiple chains using and_return starting with the same message returns expected value + 40) 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/stub_chain_spec.rb:104 + # ./spec/rspec/mocks/expiration_spec.rb:41 - 41) A chained method stub with messages shared across multiple chains using and_return starting with the different messages returns expected value + 41) 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/stub_chain_spec.rb:114 + # ./spec/rspec/mocks/expiration_spec.rb:19 - 42) A chained method stub with messages shared across multiple chains using => value starting with the same message returns expected value + 42) 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/stub_chain_spec.rb:126 + # ./spec/rspec/mocks/expiration_spec.rb:47 - 43) A chained method stub with messages shared across multiple chains using => value starting with different messages returns expected value + 43) 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/stub_chain_spec.rb:136 + # ./spec/rspec/mocks/partial_double_spec.rb:199 - 44) A chained method stub with four methods in chain using a hash returns the value of the key/value pair + 44) 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/stub_chain_spec.rb:82 + # ./spec/rspec/mocks/argument_matchers_spec.rb:21 - 45) A chained method stub with four methods in chain using and_return returns expected value from chaining two method calls + 45) 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/stub_chain_spec.rb:68 + # ./spec/rspec/mocks/argument_matchers_spec.rb:11 - 46) A chained method stub with four methods in chain using a hash with a string key returns the value of the key/value pair + 46) 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/stub_chain_spec.rb:89 + # ./spec/rspec/mocks/argument_matchers_spec.rb:16 - 47) A chained method stub with four methods in chain using a block returns the correct value + 47) 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/stub_chain_spec.rb:75 + # ./spec/rspec/mocks/argument_matchers_spec.rb:316 - 48) A chained method stub with one method in chain using a block returns the correct value + 48) 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/stub_chain_spec.rb:23 + # ./spec/rspec/mocks/argument_matchers_spec.rb:323 - 49) A chained method stub with one method in chain using a hash returns the value of the key/value pair + 49) 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/stub_chain_spec.rb:30 + # ./spec/rspec/mocks/argument_matchers_spec.rb:309 - 50) A chained method stub with one method in chain using and_return returns expected value from chaining only one method call + 50) 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/stub_chain_spec.rb:16 + # ./spec/rspec/mocks/argument_matchers_spec.rb:328 - 51) A chained method stub with two methods in chain accepts any number of arguments to the stubbed messages in the chain + 51) 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/stub_chain_spec.rb:38 + # ./spec/rspec/mocks/argument_matchers_spec.rb:304 - 52) A chained method stub with two methods in chain using and_return returns expected value from chaining two method calls + 52) 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/stub_chain_spec.rb:45 + # ./spec/rspec/mocks/argument_matchers_spec.rb:352 - 53) A chained method stub with two methods in chain using a hash returns the value of the key/value pair + 53) 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/stub_chain_spec.rb:59 + # ./spec/rspec/mocks/argument_matchers_spec.rb:337 - 54) A chained method stub with two methods in chain using a block returns the correct value + 54) 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/stub_chain_spec.rb:52 + # ./spec/rspec/mocks/argument_matchers_spec.rb:345 - 55) a message expectation with multiple return values and no specified count returns values in order + 55) 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/multiple_return_value_spec.rb:23 + # ./spec/rspec/mocks/argument_matchers_spec.rb:167 - 56) a message expectation with multiple return values and no specified count fails when there are too few calls (if there is no stub) + 56) 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/multiple_return_value_spec.rb:38 + # ./spec/rspec/mocks/argument_matchers_spec.rb:159 - 57) a message expectation with multiple return values and no specified count fails when there are too many calls (if there is no stub) + 57) 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/multiple_return_value_spec.rb:44 + # ./spec/rspec/mocks/argument_matchers_spec.rb:151 - 58) a message expectation with multiple return values and no specified count falls back to a previously stubbed value + 58) 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/multiple_return_value_spec.rb:30 + # ./spec/rspec/mocks/argument_matchers_spec.rb:155 - 59) Method visibility for verified doubles for an instance double (when the class is loaded) preserves protected visibility on a null object + 59) 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/verifying_doubles/method_visibility_spec.rb:45 + # ./spec/rspec/mocks/argument_matchers_spec.rb:163 - 60) Method visibility for verified doubles for an instance double (when the class is loaded) preserves private visibility when allowing a private method + 60) 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/verifying_doubles/method_visibility_spec.rb:28 + # ./spec/rspec/mocks/argument_matchers_spec.rb:135 - 61) Method visibility for verified doubles for an instance double (when the class is loaded) preserves private visibility when expecting a private method + 61) 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/verifying_doubles/method_visibility_spec.rb:36 + # ./spec/rspec/mocks/argument_matchers_spec.rb:139 - 62) Method visibility for verified doubles for an instance double (when the class is loaded) can expect a protected instance method + 62) 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/verifying_doubles/method_visibility_spec.rb:22 + # ./spec/rspec/mocks/argument_matchers_spec.rb:143 - 63) Method visibility for verified doubles for an instance double (when the class is loaded) can allow a private instance method + 63) argument matchers matching any_args as the first of three args does not match a call where the last two args do not match # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:16 + # ./spec/rspec/mocks/argument_matchers_spec.rb:187 - 64) Method visibility for verified doubles for an instance double (when the class is loaded) can allow a protected instance method + 64) 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/verifying_doubles/method_visibility_spec.rb:16 + # ./spec/rspec/mocks/argument_matchers_spec.rb:183 - 65) Method visibility for verified doubles for an instance double (when the class is loaded) preserves protected visibility when allowing a protected method + 65) argument matchers matching any_args as the first of three args matches a call of two args when it matches the last two explicit args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:28 + # ./spec/rspec/mocks/argument_matchers_spec.rb:175 - 66) Method visibility for verified doubles for an instance double (when the class is loaded) preserves private visibility on a null object + 66) argument matchers matching any_args as the first of three args matches a call of three args when it matches the last two explicit args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:45 + # ./spec/rspec/mocks/argument_matchers_spec.rb:179 - 67) Method visibility for verified doubles for an instance double (when the class is loaded) preserves protected visibility when expecting a protected method + 67) argument matchers matching any_args as the first of three args does not match a call of no args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:36 + # ./spec/rspec/mocks/argument_matchers_spec.rb:191 - 68) Method visibility for verified doubles for an instance double (when the class is loaded) can expect a private instance method + 68) 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/verifying_doubles/method_visibility_spec.rb:22 + # ./spec/rspec/mocks/argument_matchers_spec.rb:221 - 69) Method visibility for verified doubles for a class double (when the class is loaded) preserves private visibility on a null object + 69) 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/verifying_doubles/method_visibility_spec.rb:89 + # ./spec/rspec/mocks/argument_matchers_spec.rb:203 - 70) Method visibility for verified doubles for a class double (when the class is loaded) can allow a protected instance method + 70) 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/verifying_doubles/method_visibility_spec.rb:60 + # ./spec/rspec/mocks/argument_matchers_spec.rb:211 - 71) Method visibility for verified doubles for a class double (when the class is loaded) preserves protected visibility on a null object + 71) 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/verifying_doubles/method_visibility_spec.rb:89 + # ./spec/rspec/mocks/argument_matchers_spec.rb:207 - 72) Method visibility for verified doubles for a class double (when the class is loaded) can expect a protected instance method + 72) 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/verifying_doubles/method_visibility_spec.rb:66 + # ./spec/rspec/mocks/argument_matchers_spec.rb:215 - 73) Method visibility for verified doubles for a class double (when the class is loaded) preserves private visibility when allowing a private method + 73) 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/verifying_doubles/method_visibility_spec.rb:72 + # ./spec/rspec/mocks/argument_matchers_spec.rb:199 - 74) Method visibility for verified doubles for a class double (when the class is loaded) preserves protected visibility when allowing a protected method + 74) 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/verifying_doubles/method_visibility_spec.rb:72 + # ./spec/rspec/mocks/argument_matchers_spec.rb:422 - 75) Method visibility for verified doubles for a class double (when the class is loaded) can expect a private instance method + 75) 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/verifying_doubles/method_visibility_spec.rb:66 + # ./spec/rspec/mocks/argument_matchers_spec.rb:463 - 76) Method visibility for verified doubles for a class double (when the class is loaded) preserves protected visibility when expecting a protected method + 76) 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/verifying_doubles/method_visibility_spec.rb:80 + # ./spec/rspec/mocks/argument_matchers_spec.rb:397 - 77) Method visibility for verified doubles for a class double (when the class is loaded) can allow a private instance method + 77) 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/verifying_doubles/method_visibility_spec.rb:60 + # ./spec/rspec/mocks/argument_matchers_spec.rb:484 - 78) Method visibility for verified doubles for a class double (when the class is loaded) preserves private visibility when expecting a private method + 78) 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/verifying_doubles/method_visibility_spec.rb:80 + # ./spec/rspec/mocks/argument_matchers_spec.rb:491 - 79) receive_message_chain when the expect and should syntaxes are enabled stubs the message correctly + 79) 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:241 + # ./spec/rspec/mocks/argument_matchers_spec.rb:451 - 80) receive_message_chain with only the expect syntax enabled works with and_return + 80) 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:54 + # ./spec/rspec/mocks/argument_matchers_spec.rb:412 - 81) receive_message_chain with only the expect syntax enabled errors with a negative any_instance allowance + 81) 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:26 + # ./spec/rspec/mocks/argument_matchers_spec.rb:478 - 82) receive_message_chain with only the expect syntax enabled provides a matcher description (when passing a string) + 82) 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:222 + # ./spec/rspec/mocks/argument_matchers_spec.rb:417 - 83) receive_message_chain with only the expect syntax enabled accepts any number of arguments to the stubbed messages with an inline hash return value + 83) 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:121 + # ./spec/rspec/mocks/argument_matchers_spec.rb:429 - 84) receive_message_chain with only the expect syntax enabled works with expect where the first level of the chain is already stubbed + 84) 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:206 + # ./spec/rspec/mocks/argument_matchers_spec.rb:498 - 85) 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 + 85) 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:135 + # ./spec/rspec/mocks/argument_matchers_spec.rb:444 - 86) receive_message_chain with only the expect syntax enabled works with and_call_original + 86) 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:73 + # ./spec/rspec/mocks/argument_matchers_spec.rb:407 - 87) receive_message_chain with only the expect syntax enabled works with and_throw + 87) 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:91 + # ./spec/rspec/mocks/argument_matchers_spec.rb:402 - 88) receive_message_chain with only the expect syntax enabled works with expect where the first level of the chain is already expected + 88) 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:190 + # ./spec/rspec/mocks/argument_matchers_spec.rb:458 - 89) receive_message_chain with only the expect syntax enabled provides a matcher description (when passing symbols) + 89) 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:227 + # ./spec/rspec/mocks/argument_matchers_spec.rb:468 - 90) receive_message_chain with only the expect syntax enabled affects previously stubbed instances when `expect_any_instance_of` is called + 90) 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:175 + # ./spec/rspec/mocks/argument_matchers_spec.rb:473 - 91) receive_message_chain with only the expect syntax enabled does not raise when expect is used and the entire chain is called + 91) 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:143 + # ./spec/rspec/mocks/argument_matchers_spec.rb:383 - 92) receive_message_chain with only the expect syntax enabled fails with and_call_original when the entire chain is not called + 92) 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:79 + # ./spec/rspec/mocks/argument_matchers_spec.rb:378 - 93) 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 + 93) 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:168 + # ./spec/rspec/mocks/argument_matchers_spec.rb:373 - 94) receive_message_chain with only the expect syntax enabled works with allow where the first level of the chain is already stubbed + 94) 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:214 + # ./spec/rspec/mocks/argument_matchers_spec.rb:288 - 95) receive_message_chain with only the expect syntax enabled errors with a negative expectation + 95) 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:14 + # ./spec/rspec/mocks/argument_matchers_spec.rb:278 - 96) receive_message_chain with only the expect syntax enabled accepts any number of arguments to the stubbed messages + 96) 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:115 + # ./spec/rspec/mocks/argument_matchers_spec.rb:295 - 97) receive_message_chain with only the expect syntax enabled works with a string of messages to chain + 97) 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:103 + # ./spec/rspec/mocks/argument_matchers_spec.rb:283 - 98) receive_message_chain with only the expect syntax enabled can constrain the return value by the argument to the last call + 98) 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:66 + # ./spec/rspec/mocks/argument_matchers_spec.rb:250 - 99) receive_message_chain with only the expect syntax enabled errors with a negative any_instance expectation + 99) 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:20 + # ./spec/rspec/mocks/argument_matchers_spec.rb:255 - 100) receive_message_chain with only the expect syntax enabled works with a {} block + 100) 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/matchers/receive_message_chain_spec.rb:40 + # ./spec/rspec/mocks/argument_matchers_spec.rb:53 - 101) 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 + 101) 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/matchers/receive_message_chain_spec.rb:127 + # ./spec/rspec/mocks/argument_matchers_spec.rb:30 - 102) receive_message_chain with only the expect syntax enabled works with a hash return as the last argument in the chain + 102) 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/matchers/receive_message_chain_spec.rb:109 + # ./spec/rspec/mocks/argument_matchers_spec.rb:47 - 103) receive_message_chain with only the expect syntax enabled works with and_invoke + 103) 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/matchers/receive_message_chain_spec.rb:60 + # ./spec/rspec/mocks/argument_matchers_spec.rb:40 - 104) receive_message_chain with only the expect syntax enabled works with allow where the first level of the chain is already expected + 104) 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/matchers/receive_message_chain_spec.rb:198 + # ./spec/rspec/mocks/argument_matchers_spec.rb:35 - 105) receive_message_chain with only the expect syntax enabled gives the { } block precedence over the do block + 105) 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/matchers/receive_message_chain_spec.rb:46 + # ./spec/rspec/mocks/argument_matchers_spec.rb:230 - 106) receive_message_chain with only the expect syntax enabled works with and_raise + 106) 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/matchers/receive_message_chain_spec.rb:85 + # ./spec/rspec/mocks/argument_matchers_spec.rb:235 - 107) receive_message_chain with only the expect syntax enabled works with a do block + 107) 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/matchers/receive_message_chain_spec.rb:32 + # ./spec/rspec/mocks/argument_matchers_spec.rb:241 - 108) receive_message_chain with only the expect syntax enabled works with and_yield + 108) 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/matchers/receive_message_chain_spec.rb:97 + # ./spec/rspec/mocks/argument_matchers_spec.rb:82 - 109) receive_message_chain with only the expect syntax enabled errors with a negative allowance + 109) 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/matchers/receive_message_chain_spec.rb:8 + # ./spec/rspec/mocks/argument_matchers_spec.rb:77 - 110) receive_message_chain with only the expect syntax enabled passes when with expect_any_instance_of is used and the entire chain is called + 110) 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/matchers/receive_message_chain_spec.rb:183 + # ./spec/rspec/mocks/argument_matchers_spec.rb:72 - 111) receive_message_chain with only the expect syntax enabled works with allow_any_instance + 111) 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/matchers/receive_message_chain_spec.rb:151 + # ./spec/rspec/mocks/argument_matchers_spec.rb:87 - 112) receive_message_chain with only the expect syntax enabled provides a matcher description (when passing symbols and a hash) + 112) 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/matchers/receive_message_chain_spec.rb:232 + # ./spec/rspec/mocks/argument_matchers_spec.rb:62 - 113) receive_message_chain with only the expect syntax enabled stubs already stubbed instances when using `allow_any_instance_of` + 113) 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/matchers/receive_message_chain_spec.rb:159 + # ./spec/rspec/mocks/argument_matchers_spec.rb:67 - 114) allow(...).to receive_messages(:a => 1, :b => 2) allows the object to respond to multiple messages + 114) 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/matchers/receive_messages_spec.rb:35 + # ./spec/rspec/mocks/argument_matchers_spec.rb:106 - 115) allow(...).to receive_messages(:a => 1, :b => 2) behaves like handles partially mocked objects correctly resets partially mocked objects correctly + 115) 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/matchers/receive_messages_spec.rb:22 + # ./spec/rspec/mocks/argument_matchers_spec.rb:96 - 116) allow(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a do; end; block is given + 116) 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/matchers/receive_messages_spec.rb:10 + # ./spec/rspec/mocks/argument_matchers_spec.rb:101 - 117) allow(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given + 117) 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_messages_spec.rb:4 + # ./spec/rspec/mocks/argument_matchers_spec.rb:269 - 118) an expectation set on nil does not call #nil? on a double extra times + 118) 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/nil_expectation_warning_spec.rb:60 + # ./spec/rspec/mocks/argument_matchers_spec.rb:264 - 119) an expectation set on nil issues a warning when the expectation is negative + 119) 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/nil_expectation_warning_spec.rb:15 + # ./spec/rspec/mocks/argument_matchers_spec.rb:123 - 120) an expectation set on nil issues a warning with file and line number information + 120) 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/nil_expectation_warning_spec.rb:4 + # ./spec/rspec/mocks/argument_matchers_spec.rb:113 - 121) an expectation set on nil does not issue a warning when expectations are set to be allowed + 121) 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/nil_expectation_warning_spec.rb:24 + # ./spec/rspec/mocks/argument_matchers_spec.rb:118 - 122) an expectation set on nil configured to disallow expectations on nil raises an error when expectations on nil are disallowed + 122) 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/nil_expectation_warning_spec.rb:53 + # ./spec/rspec/mocks/diffing_spec.rb:81 - 123) an expectation set on nil configured to allow expectation on nil does not issue a warning when expectations are set to be allowed + 123) 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/nil_expectation_warning_spec.rb:38 + # ./spec/rspec/mocks/diffing_spec.rb:46 - 124) ordering fails when messages are received out of order (2nd message 1st) + 124) 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/mock_ordering_spec.rb:38 + # ./spec/rspec/mocks/diffing_spec.rb:21 - 125) ordering passes when messages are received in order across objects + 125) 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/mock_ordering_spec.rb:27 + # ./spec/rspec/mocks/diffing_spec.rb:33 - 126) ordering ignores order of non ordered messages + 126) 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/mock_ordering_spec.rb:80 + # ./spec/rspec/mocks/diffing_spec.rb:12 - 127) ordering passes when messages are received in order + 127) 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/mock_ordering_spec.rb:16 + # ./spec/rspec/mocks/diffing_spec.rb:57 - 128) ordering fails when messages are out of order across objects + 128) 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/mock_ordering_spec.rb:66 + # ./spec/rspec/mocks/diffing_spec.rb:241 - 129) ordering fails when messages are received out of order (3rd message 1st) + 129) 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/mock_ordering_spec.rb:46 + # ./spec/rspec/mocks/diffing_spec.rb:68 - 130) ordering fails when messages are received out of order (3rd message 2nd) + 130) 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/mock_ordering_spec.rb:56 + # ./spec/rspec/mocks/diffing_spec.rb:90 - 131) ordering supports duplicate messages + 131) 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/mock_ordering_spec.rb:100 + # ./spec/rspec/mocks/diffing_spec.rb:102 - 132) ordering passes when messages are received in order + 132) 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/mock_ordering_spec.rb:7 + # ./spec/rspec/mocks/diffing_spec.rb:117 - 133) a message expectation with multiple invoke handlers and no specified count invokes procs in order + 133) 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/multiple_invoke_handler_spec.rb:10 + # ./spec/rspec/mocks/diffing_spec.rb:133 - 134) a message expectation with multiple invoke handlers and no specified count fails when there are too few calls (if there is no stub) + 134) 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/multiple_invoke_handler_spec.rb:25 + # ./spec/rspec/mocks/diffing_spec.rb:201 - 135) a message expectation with multiple invoke handlers and no specified count fails when there are too many calls (if there is no stub) + 135) 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/multiple_invoke_handler_spec.rb:31 + # ./spec/rspec/mocks/diffing_spec.rb:187 - 136) a message expectation with multiple invoke handlers and no specified count falls back to a previously stubbed value + 136) 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/multiple_invoke_handler_spec.rb:17 + # ./spec/rspec/mocks/diffing_spec.rb:174 - 137) 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 + 137) 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/diffing_spec.rb:287 + # ./spec/rspec/mocks/diffing_spec.rb:251 - 138) Diffs printed when arguments don't match with a matcher object that defines #description uses the object's description + 138) 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/diffing_spec.rb:270 + # ./spec/rspec/mocks/diffing_spec.rb:287 - 139) Diffs printed when arguments don't match with a non matcher object prints a diff of the args lists for multiple mismatched string arguments + 139) 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/diffing_spec.rb:57 + # ./spec/rspec/mocks/diffing_spec.rb:270 - 140) 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 + 140) 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/diffing_spec.rb:46 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:4 - 141) 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 + 141) 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/diffing_spec.rb:33 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:15 - 142) 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 + 142) 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/diffing_spec.rb:21 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:24 - 143) Diffs printed when arguments don't match with a non matcher object does not print a diff when single line arguments are mismatched + 143) 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/diffing_spec.rb:12 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:60 - 144) Diffs printed when arguments don't match with a non matcher object prints a diff with hash args + 144) 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/diffing_spec.rb:81 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:38 - 145) Diffs printed when arguments don't match with a non matcher object prints a diff with array args + 145) 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/diffing_spec.rb:241 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:53 - 146) 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 + 146) #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/diffing_spec.rb:68 + # ./spec/rspec/mocks/thrice_counts_spec.rb:61 - 147) 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 + 147) #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/diffing_spec.rb:90 + # ./spec/rspec/mocks/thrice_counts_spec.rb:14 - 148) 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) + 148) #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/diffing_spec.rb:102 + # ./spec/rspec/mocks/thrice_counts_spec.rb:8 - 149) 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) + 149) #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/diffing_spec.rb:117 + # ./spec/rspec/mocks/thrice_counts_spec.rb:52 - 150) 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 + 150) #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/diffing_spec.rb:133 + # ./spec/rspec/mocks/thrice_counts_spec.rb:28 - 151) 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) + 151) #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/diffing_spec.rb:174 + # ./spec/rspec/mocks/thrice_counts_spec.rb:20 - 152) 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 + 152) #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/diffing_spec.rb:201 + # ./spec/rspec/mocks/thrice_counts_spec.rb:36 - 153) 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) + 153) #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/diffing_spec.rb:187 + # ./spec/rspec/mocks/thrice_counts_spec.rb:44 - 154) 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 + 154) #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/diffing_spec.rb:251 + # ./spec/rspec/mocks/thrice_counts_spec.rb:72 - 155) PartialDoubleUsingMocksDirectly passes when message is received with correct args + 155) 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/partial_double_using_mocks_directly_spec.rb:49 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:43 156) 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/partial_double_using_mocks_directly_spec.rb:28 - 157) PartialDoubleUsingMocksDirectly fails when message is received with incorrect args + 157) 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/partial_double_using_mocks_directly_spec.rb:35 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:55 - 158) PartialDoubleUsingMocksDirectly passes when expected message is received + 158) 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/partial_double_using_mocks_directly_spec.rb:43 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:49 - 159) PartialDoubleUsingMocksDirectly restores the original method if it existed + 159) 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/partial_double_using_mocks_directly_spec.rb:55 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:35 - 160) PartialDoubleUsingMocksDirectly with an instance method handled by method_missing restores the original behavior + 160) 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/partial_double_using_mocks_directly_spec.rb:64 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:74 - 161) PartialDoubleUsingMocksDirectly with a class method handled by method_missing restores the original behavior + 161) 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/partial_double_using_mocks_directly_spec.rb:74 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:64 - 162) when the should syntax is enabled on a non-default syntax host continues to warn about the should syntax + 162) #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/should_syntax_spec.rb:574 + # ./spec/rspec/mocks/null_object_double_spec.rb:120 - 163) RSpec::Mocks::TestDouble copies the `as_null_object` state when dup'd + 163) 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/test_double_spec.rb:34 + # ./spec/rspec/mocks/stub_spec.rb:534 - 164) RSpec::Mocks::TestDouble copies the `as_null_object` state when clone'd + 164) 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/test_double_spec.rb:34 + # ./spec/rspec/mocks/stub_spec.rb:524 - 165) RSpec::Mocks::TestDouble with syntax [:expect] stubs the methods passed in the stubs hash + 165) 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/test_double_spec.rb:48 + # ./spec/rspec/mocks/stub_spec.rb:528 - 166) RSpec::Mocks::TestDouble#freeze returns the instance of the test double + 166) 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/test_double_spec.rb:27 + # ./spec/rspec/mocks/stub_spec.rb:555 - 167) RSpec::Mocks::TestDouble#freeze gives a warning + 167) 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/test_double_spec.rb:7 + # ./spec/rspec/mocks/stub_spec.rb:546 - 168) RSpec::Mocks::TestDouble#freeze gives the correct call site for the warning + 168) 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/test_double_spec.rb:12 + # ./spec/rspec/mocks/stub_spec.rb:540 - 169) RSpec::Mocks::TestDouble#freeze doesn't freeze the object + 169) 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/test_double_spec.rb:17 + # ./spec/rspec/mocks/stub_spec.rb:521 - 170) RSpec::Mocks::TestDouble with syntax [:should] stubs the methods passed in the stubs hash + 170) 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/test_double_spec.rb:48 + # ./spec/rspec/mocks_spec.rb:54 - 171) RSpec::Mocks::TestDouble with syntax [:should, :expect] stubs the methods passed in the stubs hash + 171) 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/test_double_spec.rb:48 + # ./spec/rspec/mocks_spec.rb:61 - 172) 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 + 172) RSpec::Mocks.setup starts a new space scope that is later removed by .teardown # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks_spec.rb:76 - 173) 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 + 173) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks_spec.rb:89 - 174) 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 + 174) 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/modifying_invoked_expectations_spec.rb:5 + # - 175) 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 + 175) 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/modifying_invoked_expectations_spec.rb:5 + # - 176) 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 + 176) 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/modifying_invoked_expectations_spec.rb:5 + # - 177) 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 + 177) 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/modifying_invoked_expectations_spec.rb:5 + # - 178) 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 + 178) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks_spec.rb:42 - 179) 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 + 179) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks_spec.rb:212 - 180) An object double does not allow as_stubbed_constant for real objects + 180) 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/verifying_doubles/object_double_spec.rb:52 + # ./spec/rspec/mocks_spec.rb:202 - 181) An object double is not a module + 181) 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/verifying_doubles/object_double_spec.rb:58 + # ./spec/rspec/mocks_spec.rb:189 - 182) An object double can replace an unloaded constant + 182) 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/verifying_doubles/object_double_spec.rb:8 + # ./spec/rspec/mocks_spec.rb:133 - 183) An object double can create a double that matches the interface of any arbitrary object + 183) 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/verifying_doubles/object_double_spec.rb:32 + # ./spec/rspec/mocks_spec.rb:142 - 184) An object double validates `with` args against the method signature when stubbing a method + 184) 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/verifying_doubles/object_double_spec.rb:62 + # ./spec/rspec/mocks_spec.rb:137 - 185) An object double does not allow transferring constants to an object + 185) 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/verifying_doubles/object_double_spec.rb:45 + # ./spec/rspec/mocks_spec.rb:117 - 186) An object double can replace a constant by name and verify instance methods + 186) 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/verifying_doubles/object_double_spec.rb:17 + # ./spec/rspec/mocks_spec.rb:111 - 187) 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 + 187) 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/verifying_doubles/object_double_spec.rb:111 + # ./spec/rspec/mocks_spec.rb:107 - 188) An object double when an unloaded object constant has previously been stubbed with an object treats it as being unloaded for `object_double('ConstName')` + 188) 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/verifying_doubles/object_double_spec.rb:106 + # ./spec/rspec/mocks_spec.rb:158 - 189) An object double when an unloaded object constant has previously been stubbed with a class treats it as being unloaded for `object_double('ConstName')` + 189) 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/verifying_doubles/object_double_spec.rb:124 + # ./spec/rspec/mocks_spec.rb:173 - 190) An object double when an unloaded object constant has previously been stubbed with a class treats it as being unloaded for `object_double(ConstName)` + 190) 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/verifying_doubles/object_double_spec.rb:129 + # ./spec/rspec/mocks_spec.rb:177 - 191) 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')` + 191) 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/verifying_doubles/object_double_spec.rb:90 + # ./spec/rspec/mocks_spec.rb:183 - 192) 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)` + 192) 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/verifying_doubles/object_double_spec.rb:96 + # ./spec/rspec/mocks_spec.rb:229 - 193) 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 + 193) 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/verifying_doubles/object_double_spec.rb:78 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:241 - 194) 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')` + 194) 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/verifying_doubles/object_double_spec.rb:72 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:103 - 195) .allow_message does not set an expectation that the message will be received + 195) 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/syntax_agnostic_message_matchers_spec.rb:31 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:206 - 196) .allow_message sets up message allowance with params and return value + 196) 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/syntax_agnostic_message_matchers_spec.rb:16 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:79 - 197) .allow_message sets up basic message allowance + 197) 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/syntax_agnostic_message_matchers_spec.rb:6 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:46 - 198) .allow_message does not get confused when the string and symbol message form are both used + 198) 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/syntax_agnostic_message_matchers_spec.rb:36 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:214 - 199) .allow_message supports block implementations + 199) 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/syntax_agnostic_message_matchers_spec.rb:26 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:227 - 200) .allow_message when target cannot be proxied raises ArgumentError with message + 200) 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/syntax_agnostic_message_matchers_spec.rb:47 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:73 - 201) RSpec::Mocks::ExampleMethods works properly when extended onto an object + 201) 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/example_methods_spec.rb:21 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:222 - 202) RSpec::Mocks::ExampleMethods works properly when extended onto an object that has previous extended `RSpec::Matchers` + 202) 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/example_methods_spec.rb:25 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:26 - 203) 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 + 203) 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/example_methods_spec.rb:4 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:54 - 204) RSpec::Mocks::ExampleMethods works properly when extended onto an object that later extends `RSpec::Matchers` + 204) 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/example_methods_spec.rb:31 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:198 - 205) Supporting Rails monkey patches works mocking any instance when Rails has monkey patched #with + 205) 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/integration/rails_support_spec.rb:37 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:232 - 206) Supporting Rails monkey patches works when Rails has monkey patched #with + 206) 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/integration/rails_support_spec.rb:10 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:183 - 207) and_call_original on a partial double works for aliased methods + 207) 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/and_call_original_spec.rb:225 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:32 - 208) and_call_original on a partial double passes args and blocks through to the original method + 208) 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/and_call_original_spec.rb:76 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:85 - 209) and_call_original on a partial double works for class methods defined on a superclass + 209) 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/and_call_original_spec.rb:188 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:20 - 210) 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 + 210) 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/and_call_original_spec.rb:133 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:135 - 211) and_call_original on a partial double errors when you pass through the wrong number of args + 211) 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/and_call_original_spec.rb:82 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:168 - 212) and_call_original on a partial double warns when you override an existing implementation + 212) 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/and_call_original_spec.rb:90 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:121 - 213) and_call_original on a partial double works for methods added through an extended module + 213) 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/and_call_original_spec.rb:111 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:143 - 214) and_call_original on a partial double works for class methods defined on the Class class + 214) 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/and_call_original_spec.rb:213 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:66 - 215) and_call_original on a partial double works for methods that accept keyword arguments + 215) 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/and_call_original_spec.rb:237 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:91 - 216) 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 + 216) 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/and_call_original_spec.rb:124 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:14 - 217) and_call_original on a partial double works for method added through an extended module onto a class's ancestor + 217) 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/and_call_original_spec.rb:117 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:115 - 218) and_call_original on a partial double works for instance methods defined on the object's class's superclass + 218) 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/and_call_original_spec.rb:218 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:159 - 219) and_call_original on a partial double works for class methods defined on a grandparent class + 219) 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/and_call_original_spec.rb:207 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:60 - 220) and_call_original on a partial double passes the received message through to the original method + 220) 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/and_call_original_spec.rb:65 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:151 - 221) and_call_original on a partial double ignores prior declared stubs + 221) 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/and_call_original_spec.rb:70 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:97 - 222) and_call_original on a partial double when using any_instance works for instance methods that use required keyword arguments + 222) 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/and_call_original_spec.rb:168 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:109 - 223) and_call_original on a partial double when using any_instance works for instance methods defined on the class + 223) 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/and_call_original_spec.rb:143 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:8 - 224) 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 + 224) 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/and_call_original_spec.rb:182 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:127 - 225) and_call_original on a partial double when using any_instance works for instance methods that use optional keyword arguments with an argument supplied + 225) 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/and_call_original_spec.rb:159 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:175 - 226) and_call_original on a partial double when using any_instance works for instance methods defined on the superclass of the class + 226) 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/and_call_original_spec.rb:176 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:40 - 227) and_call_original on a partial double when using any_instance works for instance methods that use optional keyword arguments + 227) 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/and_call_original_spec.rb:154 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:190 - 228) and_call_original on a partial double when using any_instance works for instance methods that use double splat + 228) 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/and_call_original_spec.rb:149 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 229) and_call_original on a partial double when a non-existent method has been stubbed previously restores the original NameError behavior + 229) 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/and_call_original_spec.rb:54 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 230) 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 + 230) 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/and_call_original_spec.rb:312 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 231) 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 + 231) 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/and_call_original_spec.rb:305 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 232) and_call_original on a partial double on an object that defines method_missing works when the method_missing definition handles the message + 232) 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/and_call_original_spec.rb:295 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 233) and_call_original on a partial double on an object that defines method_missing works for an any_instance partial mock + 233) 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/and_call_original_spec.rb:300 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 234) 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 + 234) 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/and_call_original_spec.rb:271 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 235) 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 + 235) 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/and_call_original_spec.rb:266 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 236) and_call_original on a partial double when a method that exists has been stubbed previously restores the original behavior + 236) #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/and_call_original_spec.rb:46 + # ./spec/rspec/mocks/twice_counts_spec.rb:8 - 237) 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 + 237) #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/and_call_original_spec.rb:195 + # ./spec/rspec/mocks/twice_counts_spec.rb:29 - 238) and_call_original on a partial double for singleton methods works for SimpleDelegator subclasses + 238) #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/and_call_original_spec.rb:103 + # ./spec/rspec/mocks/twice_counts_spec.rb:46 - 239) and_call_original on a partial double for singleton methods works + 239) #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/and_call_original_spec.rb:97 + # ./spec/rspec/mocks/twice_counts_spec.rb:54 - 240) and_call_original on a partial double that overrides #method works for a singleton method + 240) #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/and_call_original_spec.rb:349 + # ./spec/rspec/mocks/twice_counts_spec.rb:22 - 241) and_call_original on a partial double that overrides #method still works even though #method has been overridden + 241) #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/and_call_original_spec.rb:344 + # ./spec/rspec/mocks/twice_counts_spec.rb:38 - 242) and_call_original on a pure test double raises an error even if the double object responds to the message + 242) #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/and_call_original_spec.rb:362 + # ./spec/rspec/mocks/twice_counts_spec.rb:15 - 243) the spy family of methods class_spy takes a class and a hash of method names and return values + 243) #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/spy_spec.rb:123 + # ./spec/rspec/mocks/twice_counts_spec.rb:89 - 244) 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 + 244) #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/spy_spec.rb:31 + # ./spec/rspec/mocks/twice_counts_spec.rb:64 - 245) 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 + 245) 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 - 246) 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 + 246) 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:45 + # ./spec/rspec/mocks/mock_ordering_spec.rb:7 - 247) the spy family of methods class_spy behaves like a verifying spy with a foo method records called methods + 247) 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:35 + # ./spec/rspec/mocks/mock_ordering_spec.rb:66 - 248) the spy family of methods class_spy behaves like a verifying spy with a foo method responds to methods on the verified object + 248) 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:27 + # ./spec/rspec/mocks/mock_ordering_spec.rb:80 - 249) the spy family of methods object_spy takes an instance and a hash of method names and return values + 249) 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:105 + # ./spec/rspec/mocks/mock_ordering_spec.rb:56 - 250) the spy family of methods object_spy behaves like a verifying spy with a foo method records called methods + 250) 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:35 + # ./spec/rspec/mocks/mock_ordering_spec.rb:46 - 251) 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 + 251) 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:45 + # ./spec/rspec/mocks/mock_ordering_spec.rb:100 - 252) 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 + 252) 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:31 + # ./spec/rspec/mocks/mock_ordering_spec.rb:27 - 253) 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 + 253) 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:39 + # ./spec/rspec/mocks/mock_ordering_spec.rb:38 - 254) the spy family of methods object_spy behaves like a verifying spy with a foo method responds to methods on the verified object + 254) 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/spy_spec.rb:27 + # ./spec/rspec/mocks/null_object_double_spec.rb:47 - 255) the spy family of methods spy takes a hash of method names and return values + 255) 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/spy_spec.rb:17 + # ./spec/rspec/mocks/null_object_double_spec.rb:69 - 256) the spy family of methods spy records called methods + 256) 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/spy_spec.rb:13 + # ./spec/rspec/mocks/null_object_double_spec.rb:96 - 257) the spy family of methods spy takes a name and a hash of method names and return values + 257) 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/spy_spec.rb:21 + # ./spec/rspec/mocks/null_object_double_spec.rb:90 - 258) the spy family of methods spy responds to arbitrary methods + 258) 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/spy_spec.rb:5 + # ./spec/rspec/mocks/null_object_double_spec.rb:56 - 259) the spy family of methods spy takes a name + 259) 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/spy_spec.rb:9 + # ./spec/rspec/mocks/null_object_double_spec.rb:42 - 260) the spy family of methods instance_spy when passing a class object takes a class and a hash of method names and return values + 260) 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/spy_spec.rb:66 + # ./spec/rspec/mocks/null_object_double_spec.rb:33 - 261) 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 + 261) 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/spy_spec.rb:31 + # ./spec/rspec/mocks/null_object_double_spec.rb:51 - 262) 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 + 262) 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/spy_spec.rb:45 + # ./spec/rspec/mocks/null_object_double_spec.rb:104 - 263) 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 + 263) 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/spy_spec.rb:39 + # ./spec/rspec/mocks/null_object_double_spec.rb:74 - 264) the spy family of methods instance_spy when passing a class object behaves like a verifying spy with a foo method records called methods + 264) 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/spy_spec.rb:35 + # ./spec/rspec/mocks/null_object_double_spec.rb:79 - 265) 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 + 265) 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/spy_spec.rb:27 + # ./spec/rspec/mocks/null_object_double_spec.rb:37 - 266) 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 + 266) 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/spy_spec.rb:84 + # ./spec/rspec/mocks/null_object_double_spec.rb:84 - 267) 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 + 267) 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/spy_spec.rb:31 + # ./spec/rspec/mocks/null_object_double_spec.rb:62 - 268) 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 + 268) 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/spy_spec.rb:27 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:58 - 269) 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 + 269) 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/spy_spec.rb:35 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:17 - 270) 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 + 270) 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/spy_spec.rb:39 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:52 - 271) 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 + 271) 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/spy_spec.rb:45 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:8 - 272) expect_any_instance_of(...).to receive_messages(:a => 1, :b => 2) sets up multiple expectations + 272) 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/matchers/receive_messages_spec.rb:112 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:45 - 273) expect_any_instance_of(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given + 273) 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/matchers/receive_messages_spec.rb:4 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:62 - 274) 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 + 274) 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/matchers/receive_messages_spec.rb:10 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:32 - 275) Using the legacy should syntax #should_receive can set a canned response + 275) 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/should_syntax_spec.rb:146 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:124 - 276) Using the legacy should syntax #should_receive does not fail on verification if the message is received + 276) 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/should_syntax_spec.rb:139 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:129 - 277) Using the legacy should syntax #should_receive raises an error with a useful message + 277) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:111 - 278) Using the legacy should syntax #should_receive fails on verification if the message is not received + 278) 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/should_syntax_spec.rb:133 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:106 - 279) Using the legacy should syntax #should_receive with an options hash uses the message supplied with :message after a similar stub + 279) 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/should_syntax_spec.rb:178 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:72 - 280) Using the legacy should syntax #should_receive with an options hash reports the file and line submitted with :expected_from + 280) 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/should_syntax_spec.rb:159 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:78 - 281) Using the legacy should syntax #should_receive with an options hash uses the message supplied with :message + 281) 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/should_syntax_spec.rb:170 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:90 - 282) Using the legacy should syntax #should_not_receive returns a negative message expectation + 282) 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/should_syntax_spec.rb:190 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:96 - 283) Using the legacy should syntax #should_not_receive does not fail on verification if the message is not received + 283) #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/should_syntax_spec.rb:201 + # ./spec/rspec/mocks/any_instance_spec.rb:523 - 284) Using the legacy should syntax #should_not_receive raises an error with a useful message + 284) #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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/any_instance_spec.rb:572 - 285) Using the legacy should syntax #should_not_receive fails when the message is received + 285) #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/should_syntax_spec.rb:194 + # ./spec/rspec/mocks/any_instance_spec.rb:555 - 286) Using the legacy should syntax #received_message? answers true for received_message? when message received with correct args + 286) #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/should_syntax_spec.rb:18 + # ./spec/rspec/mocks/any_instance_spec.rb:547 - 287) Using the legacy should syntax #received_message? answers false for received_message? when message received with incorrect args + 287) #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/should_syntax_spec.rb:23 + # ./spec/rspec/mocks/any_instance_spec.rb:538 - 288) Using the legacy should syntax #received_message? answers true for received_message? when message received + 288) #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/should_syntax_spec.rb:13 + # ./spec/rspec/mocks/any_instance_spec.rb:585 - 289) Using the legacy should syntax #received_message? answers false for received_message? when no messages received + 289) #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/should_syntax_spec.rb:9 + # ./spec/rspec/mocks/any_instance_spec.rb:782 - 290) Using the legacy should syntax #any_instance raises an error with a useful message + 290) #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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/any_instance_spec.rb:563 - 291) Using the legacy should syntax #any_instance affects previously stubbed instances when stubbing a method + 291) #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/should_syntax_spec.rb:255 + # ./spec/rspec/mocks/any_instance_spec.rb:792 - 292) Using the legacy should syntax #any_instance adds a class to the current space + 292) #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/should_syntax_spec.rb:231 + # ./spec/rspec/mocks/any_instance_spec.rb:602 - 293) Using the legacy should syntax #any_instance can get method objects for the fluent interface + 293) #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/should_syntax_spec.rb:248 + # ./spec/rspec/mocks/any_instance_spec.rb:595 - 294) Using the legacy should syntax #any_instance affects previously stubbed instances when mocking a method + 294) #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/should_syntax_spec.rb:263 + # ./spec/rspec/mocks/any_instance_spec.rb:734 - 295) Using the legacy should syntax #any_instance can mock a method + 295) #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/should_syntax_spec.rb:242 + # ./spec/rspec/mocks/any_instance_spec.rb:739 - 296) Using the legacy should syntax #any_instance can stub a method + 296) #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/should_syntax_spec.rb:237 + # ./spec/rspec/mocks/any_instance_spec.rb:754 - 297) Using the legacy should syntax #any_instance invocation order #stub_chain raises an error if 'stub_chain' follows 'and_return' + 297) #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/should_syntax_spec.rb:303 + # ./spec/rspec/mocks/any_instance_spec.rb:747 - 298) Using the legacy should syntax #any_instance invocation order #stub_chain affects previously stubbed instances + 298) #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/should_syntax_spec.rb:324 + # ./spec/rspec/mocks/any_instance_spec.rb:769 - 299) 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 + 299) #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/should_syntax_spec.rb:308 + # ./spec/rspec/mocks/any_instance_spec.rb:763 - 300) 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 + 300) #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/should_syntax_spec.rb:313 + # ./spec/rspec/mocks/any_instance_spec.rb:824 - 301) 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 + 301) #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/should_syntax_spec.rb:318 + # ./spec/rspec/mocks/any_instance_spec.rb:813 - 302) Using the legacy should syntax #any_instance invocation order #unstub does not get confused about string vs symbol usage for the message + 302) #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/should_syntax_spec.rb:449 + # ./spec/rspec/mocks/any_instance_spec.rb:831 - 303) Using the legacy should syntax #any_instance invocation order #unstub removes stubs even if they have already been invoked + 303) #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/should_syntax_spec.rb:403 + # ./spec/rspec/mocks/any_instance_spec.rb:807 - 304) Using the legacy should syntax #any_instance invocation order #unstub removes stubs from sub class after Invocation when super class was originally stubbed + 304) #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/should_syntax_spec.rb:411 + # ./spec/rspec/mocks/any_instance_spec.rb:684 - 305) Using the legacy should syntax #any_instance invocation order #unstub raises a MockExpectationError if the method has not been stubbed + 305) #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/should_syntax_spec.rb:443 + # ./spec/rspec/mocks/any_instance_spec.rb:676 - 306) Using the legacy should syntax #any_instance invocation order #unstub does not remove any expectations with the same method name + 306) #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/should_syntax_spec.rb:435 + # ./spec/rspec/mocks/any_instance_spec.rb:669 - 307) Using the legacy should syntax #any_instance invocation order #unstub removes all stubs with the supplied method name + 307) #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/should_syntax_spec.rb:396 + # ./spec/rspec/mocks/any_instance_spec.rb:661 - 308) Using the legacy should syntax #any_instance invocation order #unstub does not remove message expectations set directly on an instance + 308) #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/should_syntax_spec.rb:427 + # ./spec/rspec/mocks/any_instance_spec.rb:656 - 309) Using the legacy should syntax #any_instance invocation order #unstub removes stubs set directly on an instance + 309) #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/should_syntax_spec.rb:419 + # ./spec/rspec/mocks/any_instance_spec.rb:694 - 310) Using the legacy should syntax #any_instance invocation order #unstub replaces the stubbed method with the original method + 310) #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/should_syntax_spec.rb:390 + # ./spec/rspec/mocks/any_instance_spec.rb:700 - 311) Using the legacy should syntax #any_instance invocation order #should_not_receive prevents confusing double-negative expressions involving `never` + 311) #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/should_syntax_spec.rb:382 + # ./spec/rspec/mocks/any_instance_spec.rb:724 - 312) Using the legacy should syntax #any_instance invocation order #should_not_receive passes if no method is called + 312) #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/should_syntax_spec.rb:349 + # ./spec/rspec/mocks/any_instance_spec.rb:713 - 313) Using the legacy should syntax #any_instance invocation order #should_not_receive passes if only a different method is called + 313) #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/should_syntax_spec.rb:353 + # ./spec/rspec/mocks/any_instance_spec.rb:645 - 314) Using the legacy should syntax #any_instance invocation order #should_not_receive fails if the method is called + 314) #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/should_syntax_spec.rb:341 + # ./spec/rspec/mocks/any_instance_spec.rb:636 - 315) Using the legacy should syntax #any_instance invocation order #should_not_receive with constraints passes if the method is called with different parameters + 315) #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/should_syntax_spec.rb:367 + # ./spec/rspec/mocks/any_instance_spec.rb:622 - 316) Using the legacy should syntax #any_instance invocation order #should_not_receive with constraints fails if the method is called with the specified parameters + 316) #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/should_syntax_spec.rb:359 + # ./spec/rspec/mocks/any_instance_spec.rb:958 - 317) 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 + 317) #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/should_syntax_spec.rb:374 + # ./spec/rspec/mocks/any_instance_spec.rb:964 - 318) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_yield' + 318) #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/should_syntax_spec.rb:285 + # ./spec/rspec/mocks/any_instance_spec.rb:973 - 319) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_raise' + 319) #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/should_syntax_spec.rb:281 + # ./spec/rspec/mocks/any_instance_spec.rb:981 - 320) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'stub' follows 'with' + 320) #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/should_syntax_spec.rb:273 + # ./spec/rspec/mocks/any_instance_spec.rb:993 - 321) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_return' + 321) #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/should_syntax_spec.rb:277 + # ./spec/rspec/mocks/any_instance_spec.rb:987 - 322) Using the legacy should syntax #any_instance invocation order #stub behaves as 'every instance' handles `unstub` on subclasses + 322) #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/should_syntax_spec.rb:293 + # ./spec/rspec/mocks/any_instance_spec.rb:1008 - 323) Using the legacy should syntax #any_instance invocation order #should_receive raises an error if 'should_receive' follows 'with' + 323) #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/should_syntax_spec.rb:335 + # ./spec/rspec/mocks/any_instance_spec.rb:1003 - 324) Using the legacy should syntax #unstub replaces the stubbed method with the original method + 324) #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/should_syntax_spec.rb:84 + # ./spec/rspec/mocks/any_instance_spec.rb:1022 - 325) Using the legacy should syntax #unstub raises a MockExpectationError if the method has not been stubbed + 325) #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/should_syntax_spec.rb:124 + # ./spec/rspec/mocks/any_instance_spec.rb:1016 - 326) Using the legacy should syntax #unstub does not remove any expectations with the same method name + 326) #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/should_syntax_spec.rb:101 + # ./spec/rspec/mocks/any_instance_spec.rb:881 - 327) Using the legacy should syntax #unstub raises an error with a useful message + 327) #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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/any_instance_spec.rb:875 - 328) Using the legacy should syntax #unstub removes all stubs with the supplied method name + 328) #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/should_syntax_spec.rb:92 + # ./spec/rspec/mocks/any_instance_spec.rb:948 - 329) Using the legacy should syntax #unstub restores the correct implementations when stubbed and unstubbed on a parent and child class + 329) #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/should_syntax_spec.rb:111 + # ./spec/rspec/mocks/any_instance_spec.rb:933 - 330) Using the legacy should syntax #stub_chain raises an error with a useful message + 330) #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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/any_instance_spec.rb:939 - 331) Using the legacy should syntax #stub_chain can stub a sequence of messages + 331) #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/should_syntax_spec.rb:61 + # ./spec/rspec/mocks/any_instance_spec.rb:924 - 332) Using the legacy should syntax #stub sets up a canned response + 332) #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/should_syntax_spec.rb:40 + # ./spec/rspec/mocks/any_instance_spec.rb:918 - 333) Using the legacy should syntax #stub supports options + 333) #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/should_syntax_spec.rb:30 + # ./spec/rspec/mocks/any_instance_spec.rb:849 - 334) Using the legacy should syntax #stub can stub multiple messages using a hash + 334) #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/should_syntax_spec.rb:46 + # ./spec/rspec/mocks/any_instance_spec.rb:864 - 335) Using the legacy should syntax #stub raises an error with a useful message + 335) #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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/any_instance_spec.rb:844 - 336) Using the legacy should syntax #stub returns `nil` from all terminal actions to discourage further configuration + 336) #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/should_syntax_spec.rb:34 + # ./spec/rspec/mocks/any_instance_spec.rb:856 - 337) PreciseCounts passes multiple calls with different args and counts + 337) #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/precise_counts_spec.rb:56 + # ./spec/rspec/mocks/any_instance_spec.rb:906 - 338) PreciseCounts fails when exactly n times method is called less than n times + 338) #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/precise_counts_spec.rb:8 + # ./spec/rspec/mocks/any_instance_spec.rb:892 - 339) PreciseCounts returns the value given by a block when the exactly once method is called + 339) #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/precise_counts_spec.rb:42 + # ./spec/rspec/mocks/any_instance_spec.rb:898 - 340) PreciseCounts fails when exactly n times method is never called + 340) #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/precise_counts_spec.rb:27 + # ./spec/rspec/mocks/any_instance_spec.rb:612 - 341) PreciseCounts passes multiple calls with different args + 341) #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/precise_counts_spec.rb:48 + # ./spec/rspec/mocks/any_instance_spec.rb:47 - 342) PreciseCounts fails fast when exactly n times method is called more than n times + 342) #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/precise_counts_spec.rb:17 + # ./spec/rspec/mocks/any_instance_spec.rb:427 - 343) PreciseCounts passes if exactly n times method is called exactly n times + 343) #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/precise_counts_spec.rb:34 + # ./spec/rspec/mocks/any_instance_spec.rb:405 - 344) a message expectation with multiple invoke handlers with a specified count equal to the number of values returns values in order to consecutive calls + 344) #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/multiple_invoke_handler_spec.rb:47 + # ./spec/rspec/mocks/any_instance_spec.rb:436 - 345) MockExpectationError is not caught by StandardError rescue blocks + 345) #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/mock_expectation_error_spec.rb:12 + # ./spec/rspec/mocks/any_instance_spec.rb:418 - 346) A method stub with args uses the correct stubbed response when responding to a mock expectation + 346) #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/stub_spec.rb:555 + # ./spec/rspec/mocks/any_instance_spec.rb:411 - 347) A method stub with args complains if also mocked w/ different args AND called w/ a 3rd set of args + 347) #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/stub_spec.rb:546 + # ./spec/rspec/mocks/any_instance_spec.rb:444 - 348) A method stub with args does not complain if also mocked w/ different args + 348) #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/stub_spec.rb:540 + # ./spec/rspec/mocks/any_instance_spec.rb:452 - 349) A method stub with args complains if called with other arg + 349) #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/stub_spec.rb:534 + # ./spec/rspec/mocks/any_instance_spec.rb:1169 - 350) A method stub with args does not complain if not called + 350) #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/stub_spec.rb:521 + # ./spec/rspec/mocks/any_instance_spec.rb:1159 - 351) A method stub with args does not complain if called with arg + 351) #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/stub_spec.rb:524 + # ./spec/rspec/mocks/any_instance_spec.rb:1083 - 352) A method stub with args complains if called with no arg + 352) #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/stub_spec.rb:528 + # ./spec/rspec/mocks/any_instance_spec.rb:1087 - 353) #any_instance when used after the test has finished restores the original behavior of a stubbed method + 353) #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/any_instance_spec.rb:1312 + # ./spec/rspec/mocks/any_instance_spec.rb:1091 - 354) #any_instance when used after the test has finished does not restore a stubbed method not originally implemented in the class + 354) #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/any_instance_spec.rb:1323 + # ./spec/rspec/mocks/any_instance_spec.rb:1049 - 355) #any_instance when used after the test has finished restores the original behaviour, even if the expectation fails + 355) #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/any_instance_spec.rb:1331 + # ./spec/rspec/mocks/any_instance_spec.rb:1065 - 356) #any_instance when used in conjunction with a `dup` doesn't cause an infinite loop + 356) #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/any_instance_spec.rb:1250 + # ./spec/rspec/mocks/any_instance_spec.rb:1056 - 357) #any_instance when used in conjunction with a `dup` doesn't bomb if the object doesn't support `dup` + 357) #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/any_instance_spec.rb:1259 + # ./spec/rspec/mocks/any_instance_spec.rb:1147 - 358) #any_instance when used in conjunction with a `dup` doesn't fail when dup accepts parameters + 358) #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/any_instance_spec.rb:1266 + # ./spec/rspec/mocks/any_instance_spec.rb:1106 - 359) #any_instance when resetting post-verification adds an instance to the current space when stubbed method is invoked + 359) #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/any_instance_spec.rb:1169 + # ./spec/rspec/mocks/any_instance_spec.rb:1114 - 360) #any_instance when resetting post-verification existing method with stubbing private methods ensures that the restored method behaves as it originally did + 360) #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/any_instance_spec.rb:1091 + # ./spec/rspec/mocks/any_instance_spec.rb:1110 - 361) #any_instance when resetting post-verification existing method with stubbing private methods restores a stubbed private method after the spec is run + 361) #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/any_instance_spec.rb:1087 + # ./spec/rspec/mocks/any_instance_spec.rb:1126 - 362) #any_instance when resetting post-verification existing method with stubbing private methods cleans up the backed up method + 362) #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/any_instance_spec.rb:1083 + # ./spec/rspec/mocks/any_instance_spec.rb:1121 - 363) #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 + 363) #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/any_instance_spec.rb:1065 + # ./spec/rspec/mocks/any_instance_spec.rb:1136 - 364) #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 + 364) #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/any_instance_spec.rb:1049 + # ./spec/rspec/mocks/any_instance_spec.rb:1141 - 365) #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 + 365) #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:1056 + # ./spec/rspec/mocks/any_instance_spec.rb:1266 - 366) #any_instance when resetting post-verification existing method with expectations ensures that the next spec does not see that expectation + 366) #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:1147 + # ./spec/rspec/mocks/any_instance_spec.rb:1250 - 367) #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 + 367) #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:1136 + # ./spec/rspec/mocks/any_instance_spec.rb:1259 - 368) #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 + 368) #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/any_instance_spec.rb:1141 + # ./spec/rspec/mocks/any_instance_spec.rb:1286 - 369) #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 + 369) #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/any_instance_spec.rb:1126 + # ./spec/rspec/mocks/any_instance_spec.rb:1281 - 370) #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 + 370) #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/any_instance_spec.rb:1121 + # ./spec/rspec/mocks/any_instance_spec.rb:91 - 371) #any_instance when resetting post-verification existing method with expectations private methods ensures that the restored method behaves as it originally did + 371) #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/any_instance_spec.rb:1114 + # ./spec/rspec/mocks/any_instance_spec.rb:229 - 372) #any_instance when resetting post-verification existing method with expectations private methods restores a stubbed private method after the spec is run + 372) #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/any_instance_spec.rb:1110 + # ./spec/rspec/mocks/any_instance_spec.rb:235 - 373) #any_instance when resetting post-verification existing method with expectations private methods cleans up the backed up method + 373) #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/any_instance_spec.rb:1106 + # ./spec/rspec/mocks/any_instance_spec.rb:213 - 374) #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 + 374) #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/any_instance_spec.rb:1159 + # ./spec/rspec/mocks/any_instance_spec.rb:144 - 375) #any_instance passing the receiver to the implementation block when configured to pass the instance an any instance expectation doesn't effect with + 375) #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/any_instance_spec.rb:1207 + # ./spec/rspec/mocks/any_instance_spec.rb:163 - 376) #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 + 376) #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/any_instance_spec.rb:1213 + # ./spec/rspec/mocks/any_instance_spec.rb:138 - 377) #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 + 377) #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/any_instance_spec.rb:1194 + # ./spec/rspec/mocks/any_instance_spec.rb:172 - 378) #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 + 378) #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/any_instance_spec.rb:1185 + # ./spec/rspec/mocks/any_instance_spec.rb:157 - 379) #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 + 379) #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/any_instance_spec.rb:1240 + # ./spec/rspec/mocks/any_instance_spec.rb:150 - 380) #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 + 380) #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/any_instance_spec.rb:1231 + # ./spec/rspec/mocks/any_instance_spec.rb:323 - 381) #any_instance when a class overrides Object#method mocks the method correctly + 381) #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/any_instance_spec.rb:1305 + # ./spec/rspec/mocks/any_instance_spec.rb:328 - 382) #any_instance when a class overrides Object#method stubs the method correctly + 382) #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/any_instance_spec.rb:1300 + # ./spec/rspec/mocks/any_instance_spec.rb:349 - 383) #any_instance setting a message expectation properly notifies any instance recorders when they are created after the object's mock proxy + 383) #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/any_instance_spec.rb:585 + # ./spec/rspec/mocks/any_instance_spec.rb:254 - 384) #any_instance setting a message expectation does not modify the return value of stubs set on an instance + 384) #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/any_instance_spec.rb:555 + # ./spec/rspec/mocks/any_instance_spec.rb:248 - 385) #any_instance setting a message expectation works with a BasicObject subclass that mixes in Kernel + 385) #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/any_instance_spec.rb:782 + # ./spec/rspec/mocks/any_instance_spec.rb:291 - 386) #any_instance setting a message expectation properly notifies any instance recorders at multiple levels of hierarchy when a directly stubbed object receives a message + 386) #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/any_instance_spec.rb:572 + # ./spec/rspec/mocks/any_instance_spec.rb:365 - 387) #any_instance setting a message expectation affects previously stubbed instances + 387) #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/any_instance_spec.rb:538 + # ./spec/rspec/mocks/any_instance_spec.rb:385 - 388) #any_instance setting a message expectation does not modify the return value of stubs set on an instance of a subclass + 388) #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/any_instance_spec.rb:563 + # ./spec/rspec/mocks/any_instance_spec.rb:396 - 389) #any_instance setting a message expectation does not set the expectation on every instance + 389) #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/any_instance_spec.rb:547 + # ./spec/rspec/mocks/any_instance_spec.rb:380 - 390) #any_instance setting a message expectation handles inspect accessing expected methods + 390) #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/any_instance_spec.rb:523 + # ./spec/rspec/mocks/any_instance_spec.rb:375 - 391) #any_instance setting a message expectation works with a SimpleDelegator subclass + 391) #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/any_instance_spec.rb:792 + # ./spec/rspec/mocks/any_instance_spec.rb:390 - 392) #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 + 392) #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/any_instance_spec.rb:636 + # ./spec/rspec/mocks/any_instance_spec.rb:370 - 393) #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 + 393) #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/any_instance_spec.rb:645 + # ./spec/rspec/mocks/any_instance_spec.rb:340 - 394) #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 + 394) #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/any_instance_spec.rb:684 + # ./spec/rspec/mocks/any_instance_spec.rb:335 - 395) #any_instance setting a message expectation with an expectation is set on a method which does not exist returns the expected value + 395) #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/any_instance_spec.rb:656 + # ./spec/rspec/mocks/any_instance_spec.rb:97 - 396) #any_instance setting a message expectation with an expectation is set on a method which does not exist fails if no instance is created + 396) #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/any_instance_spec.rb:669 + # ./spec/rspec/mocks/any_instance_spec.rb:105 - 397) #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 + 397) #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/any_instance_spec.rb:676 + # ./spec/rspec/mocks/any_instance_spec.rb:127 - 398) #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 + 398) #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/any_instance_spec.rb:661 + # ./spec/rspec/mocks/any_instance_spec.rb:120 - 399) #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 + 399) #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/any_instance_spec.rb:713 + # ./spec/rspec/mocks/any_instance_spec.rb:110 - 400) #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 + 400) #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/any_instance_spec.rb:724 + # ./spec/rspec/mocks/any_instance_spec.rb:115 - 401) #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 + 401) #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/any_instance_spec.rb:694 + # ./spec/rspec/mocks/any_instance_spec.rb:301 - 402) #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 + 402) #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/any_instance_spec.rb:700 + # ./spec/rspec/mocks/any_instance_spec.rb:203 - 403) #any_instance setting a message expectation with argument matching fails when arguments do not match + 403) #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/any_instance_spec.rb:831 + # ./spec/rspec/mocks/any_instance_spec.rb:181 - 404) #any_instance setting a message expectation with argument matching is not affected by the invocation of existing methods on other instances + 404) #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/any_instance_spec.rb:824 + # ./spec/rspec/mocks/any_instance_spec.rb:188 - 405) #any_instance setting a message expectation with argument matching fails when the arguments match but different instances are used + 405) #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/any_instance_spec.rb:813 + # ./spec/rspec/mocks/any_instance_spec.rb:196 - 406) #any_instance setting a message expectation with argument matching returns the expected value when arguments match + 406) #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/any_instance_spec.rb:807 + # ./spec/rspec/mocks/any_instance_spec.rb:311 - 407) #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 + 407) #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/any_instance_spec.rb:754 + # ./spec/rspec/mocks/any_instance_spec.rb:316 - 408) #any_instance setting a message expectation with an expectation is set on a method that exists fails if no instance is created + 408) #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/any_instance_spec.rb:747 + # ./spec/rspec/mocks/any_instance_spec.rb:266 - 409) #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 + 409) #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/any_instance_spec.rb:739 + # ./spec/rspec/mocks/any_instance_spec.rb:278 - 410) #any_instance setting a message expectation with an expectation is set on a method that exists returns the expected value + 410) #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/any_instance_spec.rb:734 + # ./spec/rspec/mocks/any_instance_spec.rb:271 - 411) #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 + 411) #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/any_instance_spec.rb:763 + # ./spec/rspec/mocks/any_instance_spec.rb:261 - 412) #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 + 412) #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/any_instance_spec.rb:769 + # ./spec/rspec/mocks/any_instance_spec.rb:1312 - 413) #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 + 413) #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/any_instance_spec.rb:595 + # ./spec/rspec/mocks/any_instance_spec.rb:1331 - 414) #any_instance setting a message expectation when the class has a prepended module prevents mocking a method that is defined on the prepended module + 414) #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/any_instance_spec.rb:602 + # ./spec/rspec/mocks/any_instance_spec.rb:1323 - 415) #any_instance setting a message expectation message count the 'once' constraint passes for one invocation + 415) #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:844 + # ./spec/rspec/mocks/any_instance_spec.rb:1231 - 416) #any_instance setting a message expectation message count the 'once' constraint fails for more than one invocation + 416) #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/any_instance_spec.rb:864 + # ./spec/rspec/mocks/any_instance_spec.rb:1240 - 417) #any_instance setting a message expectation message count the 'once' constraint fails when no instances are declared + 417) #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/any_instance_spec.rb:849 + # ./spec/rspec/mocks/any_instance_spec.rb:1213 - 418) #any_instance setting a message expectation message count the 'once' constraint fails when an instance is declared but there are no invocations + 418) #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/any_instance_spec.rb:856 + # ./spec/rspec/mocks/any_instance_spec.rb:1207 - 419) #any_instance setting a message expectation message count the 'never' constraint fails on the first invocation + 419) #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/any_instance_spec.rb:1008 + # ./spec/rspec/mocks/any_instance_spec.rb:1194 - 420) #any_instance setting a message expectation message count the 'never' constraint passes for 0 invocations + 420) #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/any_instance_spec.rb:1003 + # ./spec/rspec/mocks/any_instance_spec.rb:1185 - 421) #any_instance setting a message expectation message count the 'never' constraint when combined with other expectations fails when the other expectations are not met + 421) #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/any_instance_spec.rb:1022 + # ./spec/rspec/mocks/any_instance_spec.rb:477 - 422) #any_instance setting a message expectation message count the 'never' constraint when combined with other expectations passes when the other expectations are met + 422) #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/any_instance_spec.rb:1016 + # ./spec/rspec/mocks/any_instance_spec.rb:468 - 423) #any_instance setting a message expectation message count the 'twice' constraint fails for more than two invocations + 423) #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/any_instance_spec.rb:881 + # ./spec/rspec/mocks/any_instance_spec.rb:472 - 424) #any_instance setting a message expectation message count the 'twice' constraint passes for two invocations + 424) #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/any_instance_spec.rb:875 + # ./spec/rspec/mocks/any_instance_spec.rb:512 - 425) #any_instance setting a message expectation message count the 'at_most(n)' constraint passes for n invocations where n = 3 + 425) #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/any_instance_spec.rb:981 + # ./spec/rspec/mocks/any_instance_spec.rb:460 - 426) #any_instance setting a message expectation message count the 'at_most(n)' constraint fails for n invocations where n > 3 + 426) #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/any_instance_spec.rb:993 + # ./spec/rspec/mocks/any_instance_spec.rb:497 - 427) #any_instance setting a message expectation message count the 'at_most(n)' constraint passes for n invocations where n < 3 + 427) #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/any_instance_spec.rb:987 + # ./spec/rspec/mocks/any_instance_spec.rb:490 - 428) #any_instance setting a message expectation message count the 'exactly(n)' constraint fails for n invocations where n > 3 + 428) #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/any_instance_spec.rb:948 + # ./spec/rspec/mocks/any_instance_spec.rb:504 - 429) #any_instance setting a message expectation message count the 'exactly(n)' constraint passes for n invocations where n = 3 + 429) #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/any_instance_spec.rb:933 + # ./spec/rspec/mocks/any_instance_spec.rb:1300 - 430) #any_instance setting a message expectation message count the 'exactly(n)' constraint fails for n invocations where n < 3 + 430) #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/any_instance_spec.rb:939 + # ./spec/rspec/mocks/any_instance_spec.rb:1305 - 431) #any_instance setting a message expectation message count the 'exactly(n)' constraint time alias fails for 2 invocations + 431) #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/any_instance_spec.rb:924 + # ./spec/rspec/mocks/any_instance_spec.rb:83 - 432) #any_instance setting a message expectation message count the 'exactly(n)' constraint time alias passes for 1 invocation + 432) #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/any_instance_spec.rb:918 + # ./spec/rspec/mocks/any_instance_spec.rb:78 - 433) #any_instance setting a message expectation message count the 'thrice' constraint fails for less than three invocations + 433) #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/any_instance_spec.rb:906 + # ./spec/rspec/mocks/any_instance_spec.rb:67 - 434) #any_instance setting a message expectation message count the 'thrice' constraint passes for three invocations + 434) #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/any_instance_spec.rb:892 + # ./spec/rspec/mocks/any_instance_spec.rb:71 - 435) #any_instance setting a message expectation message count the 'thrice' constraint fails for more than three invocations + 435) #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/any_instance_spec.rb:898 + # ./spec/rspec/mocks/any_instance_spec.rb:63 - 436) #any_instance setting a message expectation message count the 'at_least(n)' constraint passes for n invocations where n > 3 + 436) #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/any_instance_spec.rb:973 + # ./spec/rspec/mocks/any_instance_spec.rb:55 - 437) #any_instance setting a message expectation message count the 'at_least(n)' constraint fails for n invocations where n < 3 + 437) #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/any_instance_spec.rb:964 + # ./spec/rspec/mocks/any_instance_spec.rb:59 - 438) #any_instance setting a message expectation message count the 'at_least(n)' constraint passes for n invocations where n = 3 + 438) RSpec::Mocks::Double#and_yield when the method double has been constrained by `with` uses the default stub if the provided args do not match # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:958 + # ./spec/rspec/mocks/and_yield_spec.rb:7 - 439) #any_instance setting a message expectation when an instance has been directly stubbed fails when a second instance to receive the message + 439) RSpec::Mocks::Double#and_yield with eval context as block argument passes an eval context object to the supplied block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:622 + # ./spec/rspec/mocks/and_yield_spec.rb:29 - 440) #any_instance setting a message expectation when the class has an included module allows mocking a method that is defined on the module + 440) RSpec::Mocks::Double#and_yield with eval context as block argument evaluates the supplied block as it is read # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:612 + # ./spec/rspec/mocks/and_yield_spec.rb:21 - 441) #any_instance when stubbing does not suppress an exception when a method that doesn't exist is invoked + 441) RSpec::Mocks::Double#and_yield with eval context as block argument evaluates the block passed to the stubbed method in the context of the supplied eval context # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:91 + # ./spec/rspec/mocks/and_yield_spec.rb:35 - 442) #any_instance when stubbing when partially mocking objects resets partially mocked objects correctly + 442) RSpec::Mocks::Double#and_yield with eval context as block argument and no yielded arguments passes when expectations set on the eval context are met # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:349 + # ./spec/rspec/mocks/and_yield_spec.rb:52 - 443) #any_instance when stubbing with #and_raise can stub a method that doesn't exist + 443) RSpec::Mocks::Double#and_yield with eval context as block argument and no yielded arguments fails when expectations set on the eval context are not met # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:311 + # ./spec/rspec/mocks/and_yield_spec.rb:66 - 444) #any_instance when stubbing with #and_raise can stub a method that exists + 444) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments fails when expectations set on the eval context and yielded arguments are not met # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:316 + # ./spec/rspec/mocks/and_yield_spec.rb:139 - 445) #any_instance when stubbing with argument matching returns the stubbed value when arguments match + 445) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments passes when expectations set on the eval context and yielded arguments are met # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:229 + # ./spec/rspec/mocks/and_yield_spec.rb:84 - 446) #any_instance when stubbing with argument matching fails the spec with an expectation error when the arguments do not match + 446) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments can yield to a block that uses `super` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:235 + # ./spec/rspec/mocks/and_yield_spec.rb:128 - 447) #any_instance when stubbing with multiple stubs returns the same value for calls on different instances + 447) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments that are optional yields the default argument when the argument is not given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:254 + # ./spec/rspec/mocks/and_yield_spec.rb:103 - 448) #any_instance when stubbing with multiple stubs stubs a method + 448) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments that are optional yields given argument when the argument is given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:248 + # ./spec/rspec/mocks/and_yield_spec.rb:114 - 449) #any_instance when stubbing with #and_return can stub a method that doesn't exist + 449) 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/any_instance_spec.rb:261 + # ./spec/rspec/mocks/stub_spec.rb:470 - 450) #any_instance when stubbing with #and_return can stub a method that exists + 450) 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/any_instance_spec.rb:266 + # ./spec/rspec/mocks/stub_spec.rb:446 - 451) #any_instance when stubbing with #and_return can change how instances responds in the middle of an example + 451) 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/any_instance_spec.rb:278 + # ./spec/rspec/mocks/stub_spec.rb:57 - 452) #any_instance when stubbing with #and_return returns the same object for calls on different instances + 452) 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/any_instance_spec.rb:271 + # ./spec/rspec/mocks/stub_spec.rb:462 - 453) #any_instance when stubbing multiple methods allows multiple methods to be stubbed in a single invocation + 453) 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/any_instance_spec.rb:97 + # ./spec/rspec/mocks/stub_spec.rb:39 - 454) #any_instance when stubbing multiple methods allows a chain of methods to be stubbed using #receive_message_chain given symbols representing the methods + 454) 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/any_instance_spec.rb:105 + # ./spec/rspec/mocks/stub_spec.rb:49 - 455) #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 + 455) 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/any_instance_spec.rb:110 + # ./spec/rspec/mocks/stub_spec.rb:486 - 456) #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 + 456) 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/any_instance_spec.rb:120 + # ./spec/rspec/mocks/stub_spec.rb:88 - 457) #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 + 457) A method stub throws with argument when told to # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:115 + # ./spec/rspec/mocks/stub_spec.rb:491 - 458) #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 + 458) 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/any_instance_spec.rb:127 + # ./spec/rspec/mocks/stub_spec.rb:72 - 459) #any_instance when stubbing with #and_yield yields the value specified + 459) 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/any_instance_spec.rb:291 + # ./spec/rspec/mocks/stub_spec.rb:479 - 460) #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 + 460) 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/any_instance_spec.rb:203 + # ./spec/rspec/mocks/stub_spec.rb:501 - 461) #any_instance when stubbing when the class has a prepended module prevents stubbing a method that is defined on the prepended module + 461) 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/any_instance_spec.rb:188 + # ./spec/rspec/mocks/stub_spec.rb:496 - 462) #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 + 462) 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/any_instance_spec.rb:196 + # ./spec/rspec/mocks/stub_spec.rb:83 - 463) #any_instance when stubbing when the class has a prepended module allows stubbing a method that is not defined on the prepended module + 463) 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/any_instance_spec.rb:181 + # ./spec/rspec/mocks/stub_spec.rb:78 - 464) #any_instance when stubbing with #and_call_original and competing #with can combine and_call_original, with, and_return + 464) 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/any_instance_spec.rb:301 + # ./spec/rspec/mocks/stub_spec.rb:65 - 465) #any_instance when stubbing aliased methods tracks aliased method calls + 465) 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/any_instance_spec.rb:213 + # ./spec/rspec/mocks/stub_spec.rb:507 - 466) #any_instance when stubbing core ruby objects works uniformly across *everything* + 466) 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/any_instance_spec.rb:365 + # ./spec/rspec/mocks/stub_spec.rb:93 - 467) #any_instance when stubbing core ruby objects works with the non-standard constructor '' + 467) A method stub keeps returning last value in consecutive calls # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:385 + # ./spec/rspec/mocks/stub_spec.rb:453 - 468) #any_instance when stubbing core ruby objects works with the non-standard constructor "" + 468) 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/any_instance_spec.rb:380 + # ./spec/rspec/mocks/stub_spec.rb:44 - 469) #any_instance when stubbing core ruby objects works with the non-standard constructor class + 469) 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/any_instance_spec.rb:396 + # ./spec/rspec/mocks/stub_spec.rb:32 - 470) #any_instance when stubbing core ruby objects works with the non-standard constructor module + 470) 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/any_instance_spec.rb:390 + # ./spec/rspec/mocks/stub_spec.rb:318 - 471) #any_instance when stubbing core ruby objects works with the non-standard constructor {} + 471) 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/any_instance_spec.rb:375 + # ./spec/rspec/mocks/stub_spec.rb:353 - 472) #any_instance when stubbing core ruby objects works with the non-standard constructor [] + 472) 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/any_instance_spec.rb:370 + # ./spec/rspec/mocks/stub_spec.rb:259 - 473) #any_instance when stubbing with #and_throw can stub a method that exists + 473) 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/any_instance_spec.rb:328 + # ./spec/rspec/mocks/stub_spec.rb:285 - 474) #any_instance when stubbing with #and_throw can stub a method that doesn't exist + 474) 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/any_instance_spec.rb:323 + # ./spec/rspec/mocks/stub_spec.rb:292 - 475) #any_instance when stubbing behaves as 'every instance' handles freeze and duplication correctly + 475) 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/any_instance_spec.rb:150 + # ./spec/rspec/mocks/stub_spec.rb:253 - 476) #any_instance when stubbing behaves as 'every instance' stubs every instance in the spec + 476) 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/any_instance_spec.rb:138 + # ./spec/rspec/mocks/stub_spec.rb:325 - 477) #any_instance when stubbing behaves as 'every instance' handles stubbing on super and subclasses + 477) 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/any_instance_spec.rb:157 + # ./spec/rspec/mocks/stub_spec.rb:266 - 478) #any_instance when stubbing behaves as 'every instance' handles stubbing on a sub class when a super class is stubbed differently + 478) 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/any_instance_spec.rb:163 + # ./spec/rspec/mocks/stub_spec.rb:334 - 479) #any_instance when stubbing behaves as 'every instance' stubs instance created before any_instance was called + 479) 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/any_instance_spec.rb:144 + # ./spec/rspec/mocks/stub_spec.rb:299 - 480) #any_instance when stubbing behaves as 'every instance' handles method restoration on subclasses + 480) 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/any_instance_spec.rb:172 + # ./spec/rspec/mocks/stub_spec.rb:416 - 481) #any_instance when stubbing with a block returns the same computed value for calls on different instances + 481) 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/any_instance_spec.rb:340 + # ./spec/rspec/mocks/stub_spec.rb:408 - 482) #any_instance when stubbing with a block stubs a method + 482) 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/any_instance_spec.rb:335 + # ./spec/rspec/mocks/stub_spec.rb:431 - 483) #any_instance invocation order when setting a message expectation raises an error if 'with' follows 'and_raise' + 483) 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/any_instance_spec.rb:83 + # ./spec/rspec/mocks/stub_spec.rb:400 - 484) #any_instance invocation order when setting a message expectation raises an error if 'with' follows 'and_return' + 484) 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/any_instance_spec.rb:78 + # ./spec/rspec/mocks/stub_spec.rb:178 - 485) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_yield' + 485) 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/any_instance_spec.rb:63 + # ./spec/rspec/mocks/stub_spec.rb:158 - 486) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_raise' + 486) 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/any_instance_spec.rb:59 + # ./spec/rspec/mocks/stub_spec.rb:151 - 487) #any_instance invocation order when stubbing allows chaining 'and_yield' + 487) 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/any_instance_spec.rb:71 + # ./spec/rspec/mocks/stub_spec.rb:189 - 488) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_throw' + 488) 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/any_instance_spec.rb:67 + # ./spec/rspec/mocks/stub_spec.rb:143 - 489) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_return' + 489) 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/any_instance_spec.rb:55 + # ./spec/rspec/mocks/stub_spec.rb:168 - 490) #any_instance chain yields the value specified + 490) 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/any_instance_spec.rb:47 + # ./spec/rspec/mocks/stub_spec.rb:199 - 491) #any_instance expect_any_instance_of(...).not_to receive prevents confusing double-negative expressions involving `never` + 491) 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/any_instance_spec.rb:512 + # ./spec/rspec/mocks/stub_spec.rb:214 - 492) #any_instance expect_any_instance_of(...).not_to receive passes if no method is called + 492) 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/any_instance_spec.rb:468 + # ./spec/rspec/mocks/stub_spec.rb:231 - 493) #any_instance expect_any_instance_of(...).not_to receive fails if the method is called + 493) 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/any_instance_spec.rb:460 + # ./spec/rspec/mocks/stub_spec.rb:117 - 494) #any_instance expect_any_instance_of(...).not_to receive affects previously stubbed instances + 494) 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/any_instance_spec.rb:477 + # ./spec/rspec/mocks/stub_spec.rb:107 - 495) #any_instance expect_any_instance_of(...).not_to receive passes if only a different method is called + 495) 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/any_instance_spec.rb:472 + # ./spec/rspec/mocks/stub_spec.rb:99 - 496) #any_instance expect_any_instance_of(...).not_to receive with constraints passes if the method is called with different parameters + 496) 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/any_instance_spec.rb:497 + # ./spec/rspec/mocks/stub_implementation_spec.rb:30 - 497) #any_instance expect_any_instance_of(...).not_to receive with constraints fails if the method is called with the specified parameters + 497) 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/any_instance_spec.rb:490 + # ./spec/rspec/mocks/stub_implementation_spec.rb:38 - 498) #any_instance expect_any_instance_of(...).not_to receive when used in combination with should_receive passes if only the expected message is received + 498) 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/any_instance_spec.rb:504 + # ./spec/rspec/mocks/stub_implementation_spec.rb:47 - 499) #any_instance unstubbing using `and_call_original` removes any stubs set directly on an instance + 499) 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/any_instance_spec.rb:436 + # ./spec/rspec/mocks/stub_implementation_spec.rb:97 - 500) #any_instance unstubbing using `and_call_original` removes stubs from sub class after Invocation when super class was originally stubbed + 500) 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/any_instance_spec.rb:427 + # ./spec/rspec/mocks/stub_implementation_spec.rb:71 - 501) #any_instance unstubbing using `and_call_original` does not remove any expectations with the same method name + 501) 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/any_instance_spec.rb:444 + # ./spec/rspec/mocks/stub_implementation_spec.rb:58 - 502) #any_instance unstubbing using `and_call_original` removes stubs even if they have already been invoked + 502) 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/any_instance_spec.rb:418 + # ./spec/rspec/mocks/stub_implementation_spec.rb:58 - 503) #any_instance unstubbing using `and_call_original` does not get confused about string vs symbol usage for the message + 503) 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/any_instance_spec.rb:452 + # ./spec/rspec/mocks/stub_implementation_spec.rb:71 - 504) #any_instance unstubbing using `and_call_original` replaces the stubbed method with the original method + 504) Method visibility for verified doubles for a class double (when the class is loaded) preserves protected visibility on a null object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:405 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:89 - 505) #any_instance unstubbing using `and_call_original` removes all stubs with the supplied method name + 505) Method visibility for verified doubles for a class double (when the class is loaded) can expect a private instance method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:411 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:66 - 506) #any_instance when directed at a method defined on a superclass mocks the method correctly + 506) Method visibility for verified doubles for a class double (when the class is loaded) preserves protected visibility when allowing a protected method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1286 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:72 - 507) #any_instance when directed at a method defined on a superclass stubs the method correctly + 507) Method visibility for verified doubles for a class double (when the class is loaded) can allow a private instance method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1281 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:60 - 508) Serialization of mocked objects marshals the same with and without stubbing + 508) 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/serialization_spec.rb:84 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:80 - 509) Serialization of mocked objects without YAML loaded does not add #to_yaml to the stubbed object + 509) 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/serialization_spec.rb:77 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:66 - 510) 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 + 510) 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/serialization_spec.rb:47 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:80 - 511) 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 + 511) 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/serialization_spec.rb:43 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:60 - 512) a double receiving to_ary double without as_null_object doesn't respond to to_ary + 512) 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/to_ary_spec.rb:40 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:72 - 513) a double receiving to_ary double without as_null_object can be overridden with a stub + 513) 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/to_ary_spec.rb:3 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:89 - 514) a double receiving to_ary double without as_null_object responds when overridden + 514) 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/to_ary_spec.rb:8 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:36 - 515) a double receiving to_ary double without as_null_object raises + 515) 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/to_ary_spec.rb:48 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:22 - 516) a double receiving to_ary double without as_null_object doesn't respond to to_a + 516) 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/to_ary_spec.rb:44 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:36 - 517) a double receiving to_ary double without as_null_object supports Array#flatten + 517) 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/to_ary_spec.rb:13 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:45 - 518) a double receiving to_ary double as_null_object can be overridden with a stub + 518) 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/to_ary_spec.rb:3 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:16 - 519) a double receiving to_ary double as_null_object does respond to to_a + 519) 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/to_ary_spec.rb:27 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:16 - 520) a double receiving to_ary double as_null_object does respond to to_ary + 520) 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/to_ary_spec.rb:23 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:28 - 521) a double receiving to_ary double as_null_object responds when overridden + 521) 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/to_ary_spec.rb:8 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:22 - 522) a double receiving to_ary double as_null_object supports Array#flatten + 522) 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/to_ary_spec.rb:13 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:28 - 523) a double receiving to_ary double as_null_object returns nil + 523) 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/to_ary_spec.rb:31 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:45 - 524) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher describes itself properly + 524) 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/array_including_matcher_spec.rb:5 + # ./spec/rspec/mocks/stub_implementation_spec.rb:13 - 525) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher describes passed matchers + 525) 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/array_including_matcher_spec.rb:9 + # ./spec/rspec/mocks/stub_implementation_spec.rb:5 - 526) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing works with duplicates in expected + 526) 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/array_including_matcher_spec.rb:32 + # ./spec/rspec/mocks/stub_implementation_spec.rb:21 - 527) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, specified without square brackets + 527) 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/array_including_matcher_spec.rb:20 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:2 - 528) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing is composable when nested + 528) 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/array_including_matcher_spec.rb:48 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:26 - 529) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing is composable with other matchers + 529) 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/array_including_matcher_spec.rb:40 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:43 - 530) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array + 530) 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/array_including_matcher_spec.rb:16 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:9 - 531) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, specified without square brackets + 531) 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/array_including_matcher_spec.rb:24 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:95 - 532) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, which includes nested arrays + 532) 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/array_including_matcher_spec.rb:28 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:60 - 533) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing works with duplicates in actual + 533) 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/array_including_matcher_spec.rb:36 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:68 - 534) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher failing fails when not all the entries in the expected are present + 534) 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/array_including_matcher_spec.rb:56 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:84 - 535) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher failing fails when passed a composed matcher is passed and not satisfied + 535) 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/array_including_matcher_spec.rb:60 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:76 - 536) Marshal extensions #dump when rspec-mocks has been fully initialized applying and unapplying patch is idempotent + 536) 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/marshal_extension_spec.rb:36 + # ./spec/rspec/mocks/spy_spec.rb:123 - 537) Marshal extensions #dump when rspec-mocks has been fully initialized does not duplicate other objects before serialization + 537) 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/marshal_extension_spec.rb:24 + # ./spec/rspec/mocks/spy_spec.rb:35 - 538) Marshal extensions #dump when rspec-mocks has been fully initialized duplicates objects with stubbed or mocked implementations before serialization + 538) 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/marshal_extension_spec.rb:17 + # ./spec/rspec/mocks/spy_spec.rb:27 - 539) Marshal extensions #dump when rspec-mocks has been fully initialized does not duplicate nil before serialization + 539) 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/marshal_extension_spec.rb:31 + # ./spec/rspec/mocks/spy_spec.rb:45 - 540) Marshal extensions #dump outside the per-test lifecycle does not duplicate the object before serialization + 540) 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/marshal_extension_spec.rb:58 + # ./spec/rspec/mocks/spy_spec.rb:39 - 541) expect(...).to receive_messages(:a => 1, :b => 2) fails with the correct location + 541) 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/matchers/receive_messages_spec.rb:93 + # ./spec/rspec/mocks/spy_spec.rb:31 - 542) expect(...).to receive_messages(:a => 1, :b => 2) sets up multiple expectations + 542) 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/matchers/receive_messages_spec.rb:81 + # ./spec/rspec/mocks/spy_spec.rb:105 - 543) expect(...).to receive_messages(:a => 1, :b => 2) fails with a sensible message + 543) 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/matchers/receive_messages_spec.rb:87 + # ./spec/rspec/mocks/spy_spec.rb:31 - 544) expect(...).to receive_messages(:a => 1, :b => 2) provides a matcher description + 544) 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/matchers/receive_messages_spec.rb:101 + # ./spec/rspec/mocks/spy_spec.rb:27 - 545) expect(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a do; end; block is given + 545) 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/matchers/receive_messages_spec.rb:10 + # ./spec/rspec/mocks/spy_spec.rb:35 - 546) expect(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given + 546) 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/matchers/receive_messages_spec.rb:4 + # ./spec/rspec/mocks/spy_spec.rb:45 - 547) expect(...).to receive_messages(:a => 1, :b => 2) behaves like handles partially mocked objects correctly resets partially mocked objects correctly + 547) 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/matchers/receive_messages_spec.rb:22 + # ./spec/rspec/mocks/spy_spec.rb:39 - 548) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher describes itself properly + 548) 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/hash_including_matcher_spec.rb:6 + # ./spec/rspec/mocks/spy_spec.rb:66 - 549) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher describes passed matchers + 549) 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/hash_including_matcher_spec.rb:10 + # ./spec/rspec/mocks/spy_spec.rb:35 - 550) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing matches a hash with extra stuff + 550) 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/hash_including_matcher_spec.rb:21 + # ./spec/rspec/mocks/spy_spec.rb:39 - 551) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing matches the same hash + 551) 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/hash_including_matcher_spec.rb:17 + # ./spec/rspec/mocks/spy_spec.rb:31 - 552) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing matches against classes inheriting from Hash + 552) 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/hash_including_matcher_spec.rb:25 + # ./spec/rspec/mocks/spy_spec.rb:27 - 553) 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 + 553) 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/hash_including_matcher_spec.rb:60 + # ./spec/rspec/mocks/spy_spec.rb:45 - 554) 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 + 554) 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/hash_including_matcher_spec.rb:56 + # ./spec/rspec/mocks/spy_spec.rb:84 - 555) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches if the key is present + 555) 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/hash_including_matcher_spec.rb:44 + # ./spec/rspec/mocks/spy_spec.rb:39 - 556) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches if more keys are present + 556) 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/hash_including_matcher_spec.rb:48 + # ./spec/rspec/mocks/spy_spec.rb:45 - 557) 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 + 557) 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/hash_including_matcher_spec.rb:64 + # ./spec/rspec/mocks/spy_spec.rb:27 - 558) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches a string against a given key + 558) 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/hash_including_matcher_spec.rb:52 + # ./spec/rspec/mocks/spy_spec.rb:31 - 559) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when matching against other matchers can match against arbitrary objects that implement #=== + 559) 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/hash_including_matcher_spec.rb:38 + # ./spec/rspec/mocks/spy_spec.rb:35 - 560) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when matching against other matchers matches a string against anything() + 560) the spy family of methods spy records called methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:34 + # ./spec/rspec/mocks/spy_spec.rb:13 - 561) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when matching against other matchers matches an int against anything() + 561) the spy family of methods spy takes a hash of method names and return values # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:30 + # ./spec/rspec/mocks/spy_spec.rb:17 - 562) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with an incorrect value + 562) the spy family of methods spy responds to arbitrary methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:91 + # ./spec/rspec/mocks/spy_spec.rb:5 - 563) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with a missing key when one pair is matching + 563) the spy family of methods spy takes a name and a hash of method names and return values # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:87 + # ./spec/rspec/mocks/spy_spec.rb:21 - 564) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with a missing key + 564) the spy family of methods spy takes a name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:79 + # ./spec/rspec/mocks/spy_spec.rb:9 - 565) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with a missing key + 565) 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/hash_including_matcher_spec.rb:75 + # ./spec/rspec/mocks/partial_double_spec.rb:278 - 566) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match when values are nil but keys are different + 566) 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/hash_including_matcher_spec.rb:95 + # ./spec/rspec/mocks/partial_double_spec.rb:296 - 567) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a non-hash + 567) 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/hash_including_matcher_spec.rb:71 + # ./spec/rspec/mocks/partial_double_spec.rb:292 - 568) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match an empty hash with a given key + 568) 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/hash_including_matcher_spec.rb:83 + # ./spec/rspec/mocks/at_least_spec.rb:118 - 569) Method visibility when using partial mocks keeps private methods private + 569) 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/partial_double_spec.rb:324 + # ./spec/rspec/mocks/at_least_spec.rb:109 - 570) Method visibility when using partial mocks keeps public methods public + 570) 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/partial_double_spec.rb:318 + # ./spec/rspec/mocks/at_least_spec.rb:132 - 571) Method visibility when using partial mocks keeps protected methods protected + 571) 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/partial_double_spec.rb:330 + # ./spec/rspec/mocks/at_least_spec.rb:94 - 572) expection set on previously stubbed method outputs arguments of similar calls + 572) 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/stubbed_message_expectations_spec.rb:9 + # ./spec/rspec/mocks/at_least_spec.rb:101 - 573) expection set on previously stubbed method fails if message is not received after expectation is set + 573) 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/stubbed_message_expectations_spec.rb:2 + # ./spec/rspec/mocks/at_least_spec.rb:63 - 574) expection set on previously stubbed method handles concurrent validation of expectations + 574) 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/stubbed_message_expectations_spec.rb:26 + # ./spec/rspec/mocks/at_least_spec.rb:86 - 575) expection set on previously stubbed method indicates the site of expectation in the stacktrace when outputing arguments of similar calls + 575) 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/stubbed_message_expectations_spec.rb:43 + # ./spec/rspec/mocks/at_least_spec.rb:79 - 576) expection set on previously stubbed method with argument constraint on stub fails if expectation's arg constraint is not met + 576) 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/stubbed_message_expectations_spec.rb:76 + # ./spec/rspec/mocks/at_least_spec.rb:30 - 577) expection set on previously stubbed method with argument constraint on stub matches any args if no arg constraint set on expectation + 577) 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/stubbed_message_expectations_spec.rb:60 + # ./spec/rspec/mocks/at_least_spec.rb:38 - 578) expection set on previously stubbed method with argument constraint on stub distinguishes between individual values and arrays properly + 578) 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/stubbed_message_expectations_spec.rb:84 + # ./spec/rspec/mocks/at_least_spec.rb:45 - 579) expection set on previously stubbed method with argument constraint on stub matches specific args set on expectation + 579) 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/stubbed_message_expectations_spec.rb:68 + # ./spec/rspec/mocks/at_least_spec.rb:13 - 580) expection set on previously stubbed method with argument constraint on stub distinguishes between duplicate individual values and arrays properly + 580) 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/stubbed_message_expectations_spec.rb:95 + # ./spec/rspec/mocks/at_least_spec.rb:139 - 581) #allow_message_expectations_on_nil does not affect subsequent examples + 581) 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/nil_expectation_warning_spec.rb:70 + # ./spec/rspec/mocks/at_least_spec.rb:54 - 582) #allow_message_expectations_on_nil doesnt error when marshalled + 582) 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/nil_expectation_warning_spec.rb:85 + # ./spec/rspec/mocks/at_least_spec.rb:23 - 583) Constant Mutating #stub_const requires a string argument + 583) 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/mutate_const_spec.rb:221 + # ./spec/rspec/mocks/at_least_spec.rb:6 - 584) Constant Mutating #stub_const for a loaded unnested constant raises an error when asked to transfer a nested inherited constant + 584) 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/mutate_const_spec.rb:264 + # ./spec/rspec/mocks/at_least_spec.rb:73 - 585) Constant Mutating #stub_const for a loaded unnested constant raises an error if asked to transfer a nested constant that is not defined + 585) 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/mutate_const_spec.rb:313 + # ./spec/rspec/mocks/at_least_spec.rb:125 - 586) Constant Mutating #stub_const for a loaded unnested constant can be stubbed multiple times but still restores the original value properly + 586) 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/mutate_const_spec.rb:228 + # ./spec/rspec/mocks/at_least_spec.rb:147 - 587) 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 + 587) 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/mutate_const_spec.rb:298 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:35 - 588) Constant Mutating #stub_const for a loaded unnested constant removes the transferred constants on reset + 588) 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/mutate_const_spec.rb:247 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:22 - 589) Constant Mutating #stub_const for a loaded unnested constant allows nested constants to be transferred to a stub module + 589) 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/mutate_const_spec.rb:238 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 - 590) 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 + 590) 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/mutate_const_spec.rb:282 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 - 591) Constant Mutating #stub_const for a loaded unnested constant does not transfer nested constants that are inherited from a superclass + 591) 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:256 + # ./spec/rspec/mocks/message_expectation_string_representation_spec.rb:6 - 592) Constant Mutating #stub_const for a loaded unnested constant allows nested constants to be selectively transferred to a stub module + 592) 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:274 + # ./spec/rspec/mocks/message_expectation_string_representation_spec.rb:18 - 593) 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 + 593) 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:332 + # ./spec/rspec/mocks/message_expectation_string_representation_spec.rb:12 - 594) 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 + 594) 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/mutate_const_spec.rb:347 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:6 - 595) 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 + 595) 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/mutate_const_spec.rb:342 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:57 - 596) 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 + 596) 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/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:41 - 597) Constant Mutating #stub_const for a loaded unnested constant behaves like loaded constant stubbing returns the stubbed value + 597) 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/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:49 - 598) Constant Mutating #stub_const for a loaded unnested constant behaves like loaded constant stubbing allows it to be stubbed + 598) 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/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:61 - 599) Constant Mutating #stub_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant stubbing returns the stubbed value + 599) 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/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:45 - 600) 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 + 600) 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/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:53 - 601) 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 + 601) 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/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:37 - 602) Constant Mutating #stub_const for a loaded nested constant behaves like loaded constant stubbing returns the stubbed value + 602) 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/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:19 - 603) Constant Mutating #stub_const for a loaded nested constant behaves like loaded constant stubbing allows it to be stubbed + 603) 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/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:23 - 604) 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 + 604) 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/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:31 - 605) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 605) 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/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:15 - 606) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing returns the stubbed value + 606) 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/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:11 - 607) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 607) 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/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:27 - 608) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing allows it to be stubbed + 608) #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/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:85 - 609) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 609) #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/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:70 - 610) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing allows it to be stubbed + 610) 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/mutate_const_spec.rb:105 + # ./spec/integration/rails_support_spec.rb:10 - 611) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing returns the stubbed value + 611) 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/mutate_const_spec.rb:116 + # ./spec/integration/rails_support_spec.rb:37 - 612) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 612) 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/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/partial_double_spec.rb:268 - 613) Constant Mutating #stub_const for an unloaded deeply nested constant removes the root constant when rspec clears its mocks + 613) #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/mutate_const_spec.rb:398 + # ./spec/rspec/mocks/once_counts_spec.rb:14 - 614) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 614) #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/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/once_counts_spec.rb:20 - 615) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing allows it to be stubbed + 615) #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/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/once_counts_spec.rb:34 - 616) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing returns the stubbed value + 616) #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/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/once_counts_spec.rb:26 - 617) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 617) #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/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/once_counts_spec.rb:8 - 618) Constant Mutating #stub_const for a loaded deeply nested constant behaves like loaded constant stubbing allows it to be stubbed + 618) #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/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/once_counts_spec.rb:42 - 619) Constant Mutating #stub_const for a loaded deeply nested constant behaves like loaded constant stubbing returns the stubbed value + 619) #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/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/once_counts_spec.rb:50 - 620) 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 + 620) #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/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/once_counts_spec.rb:73 - 621) 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 + 621) 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/mutate_const_spec.rb:427 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:637 - 622) 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 + 622) 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/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:645 - 623) 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 + 623) 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/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 624) 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 + 624) 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/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 625) 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 + 625) 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/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 626) Constant Mutating #stub_const for a loaded constant prefixed with :: behaves like loaded constant stubbing allows it to be stubbed + 626) 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/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:584 - 627) Constant Mutating #stub_const for a loaded constant prefixed with :: behaves like loaded constant stubbing returns the stubbed value + 627) 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/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:571 - 628) 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 + 628) 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/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 629) 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 + 629) 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/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:595 - 630) 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 + 630) 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/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 631) 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 + 631) 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/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 632) 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 + 632) 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/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:576 - 633) 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 + 633) 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/mutate_const_spec.rb:409 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:609 - 634) 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 + 634) 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/mutate_const_spec.rb:418 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:604 - 635) Constant Mutating #stub_const for an unloaded constant nested within a loaded constant behaves like unloaded constant stubbing returns the stubbed value + 635) 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/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:653 - 636) Constant Mutating #stub_const for an unloaded constant nested within a loaded constant behaves like unloaded constant stubbing allows it to be stubbed + 636) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received fails when the method has been mocked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:70 - 637) 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 + 637) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received generates a useful description # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:183 - 638) 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 + 638) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received takes a do-end block and yields the arguments given to the stubbed method call # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:90 - 639) Constant Mutating #stub_const for an unloaded nested constant removes the root constant when rspec clears its mocks + 639) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received fails when the double has not received the given message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:387 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:35 - 640) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 640) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received can generate a description after mocks have been torn down (e.g. when rspec-core requests it) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:188 - 641) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing allows it to be stubbed + 641) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received notifies failures via rspec-support's failure notification system # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:43 - 642) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing returns the stubbed value + 642) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received gives precedence to a `{ ... }` block when both forms are provided since that form actually binds to `receive` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:134 - 643) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 643) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received produces an error message that matches the expected method if another method was called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:195 - 644) 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 + 644) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received fails if expectations against the yielded arguments fail # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:124 - 645) Constant Mutating #stub_const for an unloaded constant nested in a module that redefines `send` behaves like unloaded constant stubbing returns the stubbed value + 645) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received fails when a null object has not received the given message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:54 - 646) 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 + 646) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received passes when a null object has received the given message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:30 - 647) 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 + 647) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received resets expectations on class methods when mocks are reset # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:156 - 648) Constant Mutating #hide_const can be hidden multiple times but still restores the original value properly + 648) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received passes when the double has received the given message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:193 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:25 - 649) Constant Mutating #hide_const allows a constant to be hidden, then stubbed, restoring it to its original value properly + 649) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received passes if expectations against yielded keyword arguments pass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:202 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:111 - 650) Constant Mutating #hide_const for an unloaded nested constant behaves like unloaded constant hiding returns nil + 650) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received forwards any block passed during method invocation to the `have_received` block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:145 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:146 - 651) Constant Mutating #hide_const for an unloaded nested constant behaves like unloaded constant hiding remains undefined after rspec clears its mocks + 651) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received passes if expectations against the yielded arguments pass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:139 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:100 - 652) 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 + 652) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received fails when the method has not been previously stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:134 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:62 - 653) Constant Mutating #hide_const for a loaded nested constant behaves like loaded constant hiding allows it to be hidden + 653) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received takes a curly-bracket block and yields the arguments given to the stubbed method call # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:82 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:80 - 654) Constant Mutating #hide_const for a loaded nested constant behaves like loaded constant hiding returns nil + 654) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received with passes when the given args match the args used with the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:93 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:169 - 655) Constant Mutating #hide_const for a loaded nested constant behaves like loaded constant hiding resets the constant when rspec clear its mocks + 655) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received with fails when the given args do not match the args used with the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:87 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:174 - 656) Constant Mutating #hide_const for an unloaded constant with nested name that matches a top-level constant does not hide the top-level constant + 656) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered passes when the messages were received in order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:166 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:447 - 657) 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 + 657) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered passes with exact receive counts when received in order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:139 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:455 - 658) Constant Mutating #hide_const for an unloaded constant with nested name that matches a top-level constant behaves like unloaded constant hiding returns nil + 658) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered fails with exact receive counts when received out of order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:145 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:484 - 659) 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 + 659) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered fails when the messages are received out of order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:134 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:517 - 660) Constant Mutating #hide_const for a loaded deeply nested constant behaves like loaded constant hiding allows it to be hidden + 660) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered when used on individually allowed messages fails when the messages are received out of order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:82 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:560 - 661) Constant Mutating #hide_const for a loaded deeply nested constant behaves like loaded constant hiding returns nil + 661) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered when used on individually allowed messages passes when the messages were received in order # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:93 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:555 - 662) Constant Mutating #hide_const for a loaded deeply nested constant behaves like loaded constant hiding resets the constant when rspec clear its mocks + 662) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered when used with `with` passes when the order lines up # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:87 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:533 - 663) Constant Mutating #hide_const for an unloaded unnested constant behaves like unloaded constant hiding remains undefined after rspec clears its mocks + 663) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered when used with `with` fails when the order is not matched # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:139 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:538 - 664) 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 + 664) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts twice fails when the message was received once # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:134 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:389 - 665) Constant Mutating #hide_const for an unloaded unnested constant behaves like unloaded constant hiding returns nil + 665) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts twice fails when the message was received thrice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:145 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:398 - 666) Constant Mutating #hide_const for a loaded constant prefixed with :: behaves like loaded constant hiding allows it to be hidden + 666) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts twice passes when the message was received twice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:82 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:381 - 667) Constant Mutating #hide_const for a loaded constant prefixed with :: behaves like loaded constant hiding returns nil + 667) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts once fails when the message was received twice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:93 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:369 - 668) Constant Mutating #hide_const for a loaded constant prefixed with :: behaves like loaded constant hiding resets the constant when rspec clear its mocks + 668) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts once passes when the message was received once # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:87 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:355 - 669) Constant Mutating #hide_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant hiding returns nil + 669) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts once fails when the message was never received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:93 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:361 - 670) 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 + 670) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts exactly passes when the message was received the given number of times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:82 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:297 - 671) 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 + 671) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts exactly fails when the message was received more times than expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:87 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:301 - 672) Combining implementation instructions can combine and_call_original, with, and_return + 672) 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/combining_implementation_instructions_spec.rb:173 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:315 - 673) Combining implementation instructions raises an error if `and_call_original` is followed by any other instructions + 673) 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/combining_implementation_instructions_spec.rb:181 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:420 - 674) Combining implementation instructions can combine and_yield and and_return + 674) 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/combining_implementation_instructions_spec.rb:4 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:430 - 675) Combining implementation instructions can combine and_yield, a block implementation and and_raise + 675) 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/combining_implementation_instructions_spec.rb:94 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:411 - 676) Combining implementation instructions can combine and_yield, a block implementation and and_throw + 676) 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/combining_implementation_instructions_spec.rb:115 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:215 - 677) Combining implementation instructions can combine and_yield and and_throw + 677) 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/combining_implementation_instructions_spec.rb:106 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:273 - 678) Combining implementation instructions can combine and_yield and and_raise + 678) 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/combining_implementation_instructions_spec.rb:85 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:264 - 679) Combining implementation instructions does not warn about overriding the stub when `:with` is chained off the block + 679) 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/combining_implementation_instructions_spec.rb:165 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:285 - 680) Combining implementation instructions warns when the inner implementation block is overridden + 680) 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/combining_implementation_instructions_spec.rb:160 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:247 - 681) Combining implementation instructions a double that already has a terminal block action allows the block action to be overridden + 681) 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/combining_implementation_instructions_spec.rb:152 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:221 - 682) 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)` + 682) 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/combining_implementation_instructions_spec.rb:142 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:231 - 683) 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)` + 683) 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/combining_implementation_instructions_spec.rb:137 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:239 - 684) 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)` + 684) 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/combining_implementation_instructions_spec.rb:132 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:339 - 685) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `at_most` + 685) 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/combining_implementation_instructions_spec.rb:49 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:347 - 686) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `times` + 686) 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/combining_implementation_instructions_spec.rb:55 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:343 - 687) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `at_least` + 687) 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/combining_implementation_instructions_spec.rb:43 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:331 - 688) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `exactly` + 688) 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/combining_implementation_instructions_spec.rb:37 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:323 - 689) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `once` + 689) 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/combining_implementation_instructions_spec.rb:61 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:327 - 690) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `stub` + 690) 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/combining_implementation_instructions_spec.rb:25 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:629 - 691) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `with` + 691) 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/combining_implementation_instructions_spec.rb:31 + # ./spec/rspec/mocks/partial_double_spec.rb:86 - 692) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `ordered` + 692) 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/combining_implementation_instructions_spec.rb:78 + # ./spec/rspec/mocks/partial_double_spec.rb:124 - 693) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `twice` + 693) 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/combining_implementation_instructions_spec.rb:67 + # ./spec/rspec/mocks/partial_double_spec.rb:46 - 694) A method stub yields a specified object + 694) 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/stub_spec.rb:462 + # ./spec/rspec/mocks/partial_double_spec.rb:119 - 695) A method stub remains private when it stubs a private instance method + 695) 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/stub_spec.rb:88 + # ./spec/rspec/mocks/partial_double_spec.rb:19 - 696) A method stub yields a specified object and return another specified object + 696) 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/stub_spec.rb:479 + # ./spec/rspec/mocks/partial_double_spec.rb:79 - 697) A method stub allows a stub and an expectation + 697) 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/stub_spec.rb:507 + # ./spec/rspec/mocks/partial_double_spec.rb:100 - 698) A method stub yields multiple times with multiple calls to and_yield + 698) 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/stub_spec.rb:470 + # ./spec/rspec/mocks/partial_double_spec.rb:132 - 699) A method stub keeps returning last value in consecutive calls + 699) 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/stub_spec.rb:453 + # ./spec/rspec/mocks/partial_double_spec.rb:32 - 700) A method stub remains private when it stubs a private class method + 700) 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/stub_spec.rb:93 + # ./spec/rspec/mocks/partial_double_spec.rb:160 - 701) A method stub instructs a class object to respond_to the message + 701) 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/stub_spec.rb:44 + # ./spec/rspec/mocks/partial_double_spec.rb:168 - 702) A method stub instructs an instance to respond_to the message + 702) 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/stub_spec.rb:39 + # ./spec/rspec/mocks/partial_double_spec.rb:145 - 703) A method stub returns values in order to consecutive calls + 703) 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/stub_spec.rb:446 + # ./spec/rspec/mocks/partial_double_spec.rb:26 - 704) A method stub throws when told to + 704) 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/stub_spec.rb:486 + # ./spec/rspec/mocks/partial_double_spec.rb:74 - 705) A method stub throws with argument when told to + 705) 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/stub_spec.rb:491 + # ./spec/rspec/mocks/partial_double_spec.rb:12 - 706) A method stub ignores when expected message is received with no args + 706) 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/stub_spec.rb:49 + # ./spec/rspec/mocks/partial_double_spec.rb:112 - 707) A method stub ignores when message is received with args + 707) 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/stub_spec.rb:57 + # ./spec/rspec/mocks/partial_double_spec.rb:64 - 708) A method stub ignores when expected message is not received + 708) 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/stub_spec.rb:65 + # ./spec/rspec/mocks/partial_double_spec.rb:6 - 709) A method stub handles multiple stubbed methods + 709) 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/stub_spec.rb:72 + # ./spec/rspec/mocks/partial_double_spec.rb:95 - 710) A method stub is retained when stubbed object is `clone`d + 710) 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/stub_spec.rb:78 + # ./spec/rspec/mocks/partial_double_spec.rb:236 - 711) A method stub is cleared when stubbed object when `dup`ed + 711) 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/stub_spec.rb:83 + # ./spec/rspec/mocks/partial_double_spec.rb:241 - 712) A method stub overrides a pre-existing method + 712) 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/stub_spec.rb:496 + # ./spec/rspec/mocks/stash_spec.rb:26 - 713) A method stub overrides a pre-existing stub + 713) .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/stub_spec.rb:501 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:16 - 714) A method stub stubbing with prepend reuses our prepend module so as not to keep mutating the ancestors + 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/stub_spec.rb:199 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:6 - 715) A method stub stubbing with prepend does not unnecessarily prepend a module when the module was included + 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/stub_spec.rb:189 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:31 - 716) A method stub stubbing with prepend handles stubbing prepended methods on an object's singleton class + 716) .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/stub_spec.rb:158 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:36 - 717) A method stub stubbing with prepend handles stubbing prepended methods + 717) .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/stub_spec.rb:143 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:26 - 718) A method stub stubbing with prepend handles stubbing prepended methods on a class's singleton class + 718) .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/stub_spec.rb:151 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:47 - 719) A method stub stubbing with prepend does not unnecessarily prepend a module when the prepended module does not override the stubbed method + 719) #as_null_object sets the object to null_object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:168 + # ./spec/rspec/mocks/null_object_double_spec.rb:113 - 720) A method stub stubbing with prepend does not unnecessarily prepend a module when stubbing a method on a module extended onto itself + 720) 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/stub_spec.rb:178 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:162 - 721) A method stub stubbing with prepend when a module with a method override is prepended after reset can still be stubbed again + 721) 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/stub_spec.rb:231 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:110 - 722) 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 + 722) 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/stub_spec.rb:214 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:119 - 723) A method stub when the stubbed method is called does not call any methods on the passed args, since that could mutate them + 723) 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/stub_spec.rb:117 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:104 - 724) A method stub #rspec_reset correctly handles stubbing inherited mixed in class methods + 724) 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/stub_spec.rb:353 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:149 - 725) A method stub #rspec_reset does not remove existing methods that have been stubbed twice + 725) 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/stub_spec.rb:325 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:155 - 726) A method stub #rspec_reset removes stubbed methods that didn't exist + 726) 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/stub_spec.rb:253 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:131 - 727) A method stub #rspec_reset restores existing private instance methods + 727) Constructing a verifying double instance doubles can be constructed with a struct # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:285 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:24 - 728) A method stub #rspec_reset restores existing singleton methods with the appropriate context + 728) 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/stub_spec.rb:266 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:18 - 729) A method stub #rspec_reset correctly restores the visibility of methods whose visibility has been tweaked on the singleton class + 729) 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/stub_spec.rb:334 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:40 - 730) A method stub #rspec_reset restores existing class methods + 730) 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/stub_spec.rb:292 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:29 - 731) A method stub #rspec_reset restores existing instance methods + 731) 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/stub_spec.rb:259 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:52 - 732) A method stub #rspec_reset restores existing private class methods + 732) Constructing a verifying double instance doubles any_instance calls the callback for allow_any_instance_of # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stub_spec.rb:318 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:85 - 733) A method stub #rspec_reset restores existing aliased module_function methods + 733) 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/stub_spec.rb:299 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:93 - 734) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores prepended class methods + 734) 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/stub_spec.rb:416 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:77 - 735) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores prepended instance methods + 735) 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/stub_spec.rb:400 + # ./spec/rspec/mocks/space_spec.rb:241 - 736) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores non-prepended instance methods + 736) 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/stub_spec.rb:408 + # ./spec/rspec/mocks/space_spec.rb:229 - 737) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores prepended object singleton methods + 737) 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/stub_spec.rb:431 + # ./spec/rspec/mocks/space_spec.rb:108 - 738) A method stub using `with` determines which value is returned + 738) 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/stub_spec.rb:99 + # ./spec/rspec/mocks/space_spec.rb:120 - 739) A method stub using `with` allows differing arities + 739) 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/stub_spec.rb:107 + # ./spec/rspec/mocks/space_spec.rb:166 - 740) A method stub using `and_return` returns declared value when message is received + 740) 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/stub_spec.rb:32 + # ./spec/rspec/mocks/space_spec.rb:176 - 741) RSpec::Mocks::Matchers::Receive has a description before being matched + 741) RSpec::Mocks::Space#registered? returns true if registered in a parent space # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:636 + # ./spec/rspec/mocks/space_spec.rb:171 - 742) 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 + 742) RSpec::Mocks::Space#constant_mutator_for can still return a mutator from a parent context # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:240 + # ./spec/rspec/mocks/space_spec.rb:192 - 743) 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 + 743) RSpec::Mocks::Space#constant_mutator_for returns the mutator for the given const name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:309 + # ./spec/rspec/mocks/space_spec.rb:182 - 744) 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` + 744) RSpec::Mocks::Space#ensure_registered does not store a parent's proxy in the child space # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:301 + # ./spec/rspec/mocks/space_spec.rb:154 - 745) 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` + 745) RSpec::Mocks::Space#ensure_registered can still return a proxy from a parent context # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:322 + # ./spec/rspec/mocks/space_spec.rb:147 - 746) 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 + 746) RSpec::Mocks::Space#ensure_registered returns the proxy for the given object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:293 + # ./spec/rspec/mocks/space_spec.rb:138 - 747) 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 + 747) RSpec::Mocks::Space#reset_all resets all mocks within # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:288 + # ./spec/rspec/mocks/space_spec.rb:50 - 748) 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 + 748) RSpec::Mocks::Space#reset_all allows Array#reverse to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:254 + # ./spec/rspec/mocks/space_spec.rb:61 - 749) 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 + 749) RSpec::Mocks::Space#any_instance_recorder_for returns the recorder for the given class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:268 + # ./spec/rspec/mocks/space_spec.rb:206 - 750) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation provides a useful matcher description + 750) RSpec::Mocks::Space#any_instance_recorder_for does not store a parent's proxy in the child space # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:278 + # ./spec/rspec/mocks/space_spec.rb:219 - 751) 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 + 751) RSpec::Mocks::Space#any_instance_recorder_for can still return a recorder from a parent context # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:260 + # ./spec/rspec/mocks/space_spec.rb:212 - 752) 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 + 752) RSpec::Mocks::Space#proxies_of(klass) returns proxies # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:611 + # ./spec/rspec/mocks/space_spec.rb:69 - 753) 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 + 753) RSpec::Mocks::Space#proxies_of(klass) returns only the proxies whose object is an instance of the given class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:191 + # ./spec/rspec/mocks/space_spec.rb:86 - 754) 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 + 754) RSpec::Mocks::Space#proxies_of(klass) looks in the parent space for matching proxies # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:169 + # ./spec/rspec/mocks/space_spec.rb:97 - 755) 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 + 755) RSpec::Mocks::Space#verify_all verifies all any_instance recorders within # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:49 + # ./spec/rspec/mocks/space_spec.rb:25 - 756) 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 + 756) RSpec::Mocks::Space#verify_all does not reset the proxies (as that should be delayed until reset_all) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:177 + # ./spec/rspec/mocks/space_spec.rb:39 - 757) 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 + 757) RSpec::Mocks::Space#verify_all verifies all mocks within # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:211 + # ./spec/rspec/mocks/space_spec.rb:9 - 758) 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 + 758) RSpec::Mocks::Space#proxy_for can still return a proxy from a parent context # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:221 + # ./spec/rspec/mocks/space_spec.rb:147 - 759) 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 + 759) RSpec::Mocks::Space#proxy_for does not store a parent's proxy in the child space # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:63 + # ./spec/rspec/mocks/space_spec.rb:154 - 760) 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 + 760) RSpec::Mocks::Space#proxy_for returns the proxy for the given object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:54 + # ./spec/rspec/mocks/space_spec.rb:138 - 761) 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 + 761) 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/matchers/receive_spec.rb:203 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:60 - 762) 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 + 762) 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/matchers/receive_spec.rb:197 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:67 - 763) 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` + 763) 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/matchers/receive_spec.rb:182 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:82 - 764) 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 + 764) 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/matchers/receive_spec.rb:159 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:75 - 765) 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 + 765) 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/matchers/receive_spec.rb:90 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:18 - 766) 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 + 766) 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/matchers/receive_spec.rb:126 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:67 - 767) 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 + 767) 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/matchers/receive_spec.rb:98 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:32 - 768) 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 + 768) 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/matchers/receive_spec.rb:106 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:58 - 769) 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 + 769) 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/matchers/receive_spec.rb:118 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:45 - 770) 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 + 770) 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/matchers/receive_spec.rb:81 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:10 - 771) 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 + 771) 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/matchers/receive_spec.rb:153 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:165 - 772) 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 + 772) 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/matchers/receive_spec.rb:133 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:181 - 773) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like resets partial mocks of any instance cleanly removes the method double + 773) 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/matchers/receive_spec.rb:347 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:173 - 774) RSpec::Mocks::Matchers::Receive allow(...).not_to receive behaves like an expect syntax negative allowance is disabled since this expression is confusing + 774) 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/matchers/receive_spec.rb:240 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:160 - 775) RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations cannot use `expect` with another matcher + 775) 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/matchers/receive_spec.rb:696 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:94 - 776) RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations can toggle the available syntax + 776) 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/matchers/receive_spec.rb:704 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:4 - 777) 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` + 777) 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/matchers/receive_spec.rb:662 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:115 - 778) 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 + 778) 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/matchers/receive_spec.rb:642 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:85 - 779) 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 + 779) 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/matchers/receive_spec.rb:652 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:106 - 780) 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` + 780) 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/matchers/receive_spec.rb:672 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:152 - 781) 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 + 781) 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/matchers/receive_spec.rb:375 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:43 - 782) 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 + 782) 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/matchers/receive_spec.rb:382 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:49 - 783) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like handles frozen objects cleanly when adding the method double raises clear error + 783) 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/matchers/receive_spec.rb:360 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:25 - 784) 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 + 784) 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/matchers/receive_spec.rb:395 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:55 - 785) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts passes with at most when the ordering is correct + 785) 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/matchers/receive_spec.rb:568 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:61 - 786) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts passes with exact receive counts when the ordering is correct + 786) 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/matchers/receive_spec.rb:524 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:31 - 787) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts does not result in infinite recursion when `respond_to?` is stubbed + 787) 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/matchers/receive_spec.rb:590 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:37 - 788) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts passes with at least when the ordering is correct + 788) 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/matchers/receive_spec.rb:546 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:67 - 789) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts fails with exact receive counts when the ordering is incorrect + 789) 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/matchers/receive_spec.rb:533 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:78 - 790) 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 + 790) 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/matchers/receive_spec.rb:260 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:132 - 791) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation reports the line number of expectation of unreceived message + 791) 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/matchers/receive_spec.rb:268 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:142 - 792) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation provides a useful matcher description + 792) 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/matchers/receive_spec.rb:278 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:137 - 793) 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 + 793) 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/matchers/receive_spec.rb:254 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:6 - 794) 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 + 794) 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/matchers/receive_spec.rb:54 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:10 - 795) 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 + 795) 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/matchers/receive_spec.rb:177 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:75 - 796) 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 + 796) 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/matchers/receive_spec.rb:63 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:95 - 797) 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 + 797) 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/matchers/receive_spec.rb:169 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:71 - 798) 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 + 798) 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/matchers/receive_spec.rb:211 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:79 - 799) 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 + 799) 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/matchers/receive_spec.rb:221 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:91 - 800) 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 + 800) 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/matchers/receive_spec.rb:49 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:83 - 801) 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 + 801) 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/matchers/receive_spec.rb:203 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:87 - 802) 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` + 802) 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/matchers/receive_spec.rb:182 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:17 - 803) 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 + 803) 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/matchers/receive_spec.rb:90 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:21 - 804) 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 + 804) 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/matchers/receive_spec.rb:126 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:25 - 805) 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 + 805) 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/matchers/receive_spec.rb:159 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:64 - 806) 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 + 806) 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/matchers/receive_spec.rb:81 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:60 - 807) 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 + 807) 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/matchers/receive_spec.rb:153 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:56 - 808) 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 + 808) 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/matchers/receive_spec.rb:98 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:52 - 809) 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 + 809) 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/matchers/receive_spec.rb:106 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:44 - 810) 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 + 810) 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/matchers/receive_spec.rb:133 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:48 - 811) 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 + 811) 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/matchers/receive_spec.rb:118 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:30 - 812) 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 + 812) 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/matchers/receive_spec.rb:502 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:34 - 813) 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 + 813) 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/matchers/receive_spec.rb:493 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:38 - 814) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like resets partial mocks cleanly removes the method double + 814) Using the legacy should syntax #any_instance can mock a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:337 + # ./spec/rspec/mocks/should_syntax_spec.rb:242 - 815) 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 + 815) Using the legacy should syntax #any_instance affects previously stubbed instances when stubbing a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:451 + # ./spec/rspec/mocks/should_syntax_spec.rb:255 - 816) 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 + 816) Using the legacy should syntax #any_instance adds a class to the current space # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:446 + # ./spec/rspec/mocks/should_syntax_spec.rb:231 - 817) 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 + 817) Using the legacy should syntax #any_instance affects previously stubbed instances when mocking a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:431 + # ./spec/rspec/mocks/should_syntax_spec.rb:263 - 818) 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 + 818) Using the legacy should syntax #any_instance can stub a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:439 + # ./spec/rspec/mocks/should_syntax_spec.rb:237 - 819) 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 + 819) Using the legacy should syntax #any_instance raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:375 + # ./spec/support/before_all_shared_example_group.rb:11 - 820) 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 + 820) Using the legacy should syntax #any_instance can get method objects for the fluent interface # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:382 + # ./spec/rspec/mocks/should_syntax_spec.rb:248 - 821) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like handles frozen objects cleanly when adding the method double raises clear error + 821) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_return' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:360 + # ./spec/rspec/mocks/should_syntax_spec.rb:277 - 822) 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 + 822) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_raise' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:395 + # ./spec/rspec/mocks/should_syntax_spec.rb:281 - 823) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance does not expect the message to be received + 823) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'stub' follows 'with' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:233 + # ./spec/rspec/mocks/should_syntax_spec.rb:273 - 824) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does not support other matchers + 824) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_yield' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:191 + # ./spec/rspec/mocks/should_syntax_spec.rb:285 - 825) 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 + 825) Using the legacy should syntax #any_instance invocation order #stub behaves as 'every instance' handles `unstub` on subclasses # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:211 + # ./spec/rspec/mocks/should_syntax_spec.rb:293 - 826) 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 + 826) Using the legacy should syntax #any_instance invocation order #should_not_receive passes if only a different method is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:54 + # ./spec/rspec/mocks/should_syntax_spec.rb:353 - 827) 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 + 827) Using the legacy should syntax #any_instance invocation order #should_not_receive fails if the method is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:221 + # ./spec/rspec/mocks/should_syntax_spec.rb:341 - 828) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does support inherited matchers + 828) Using the legacy should syntax #any_instance invocation order #should_not_receive prevents confusing double-negative expressions involving `never` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:197 + # ./spec/rspec/mocks/should_syntax_spec.rb:382 - 829) 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` + 829) Using the legacy should syntax #any_instance invocation order #should_not_receive passes if no method is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:182 + # ./spec/rspec/mocks/should_syntax_spec.rb:349 - 830) 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 + 830) Using the legacy should syntax #any_instance invocation order #should_not_receive with constraints passes if the method is called with different parameters # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:49 + # ./spec/rspec/mocks/should_syntax_spec.rb:367 - 831) 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 + 831) Using the legacy should syntax #any_instance invocation order #should_not_receive with constraints fails if the method is called with the specified parameters # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:63 + # ./spec/rspec/mocks/should_syntax_spec.rb:359 - 832) 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 + 832) Using the legacy should syntax #any_instance invocation order #should_not_receive when used in combination with should_receive passes if only the expected message is received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:169 + # ./spec/rspec/mocks/should_syntax_spec.rb:374 - 833) 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 + 833) Using the legacy should syntax #any_instance invocation order #should_receive raises an error if 'should_receive' follows 'with' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:203 + # ./spec/rspec/mocks/should_syntax_spec.rb:335 - 834) 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 + 834) Using the legacy should syntax #any_instance invocation order #stub_chain raises an error if 'stub_chain' follows 'and_return' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:177 + # ./spec/rspec/mocks/should_syntax_spec.rb:303 - 835) 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 + 835) Using the legacy should syntax #any_instance invocation order #stub_chain affects previously stubbed instances # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:98 + # ./spec/rspec/mocks/should_syntax_spec.rb:324 - 836) 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 + 836) Using the legacy should syntax #any_instance invocation order #stub_chain allows a chain of methods to be stubbed using #stub_chain given a string of '.' separated method names representing the chain # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:159 + # ./spec/rspec/mocks/should_syntax_spec.rb:318 - 837) 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 + 837) Using the legacy should syntax #any_instance invocation order #stub_chain allows a chain of methods to be stubbed using #stub_chain given a hash as the last argument uses the value as the expected return value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:81 + # ./spec/rspec/mocks/should_syntax_spec.rb:313 - 838) 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 + 838) Using the legacy should syntax #any_instance invocation order #stub_chain allows a chain of methods to be stubbed using #stub_chain given symbols representing the methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:90 + # ./spec/rspec/mocks/should_syntax_spec.rb:308 - 839) 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 + 839) Using the legacy should syntax #any_instance invocation order #unstub removes stubs from sub class after Invocation when super class was originally stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:106 + # ./spec/rspec/mocks/should_syntax_spec.rb:411 - 840) 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 + 840) Using the legacy should syntax #any_instance invocation order #unstub replaces the stubbed method with the original method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:118 + # ./spec/rspec/mocks/should_syntax_spec.rb:390 - 841) 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 + 841) Using the legacy should syntax #any_instance invocation order #unstub removes stubs even if they have already been invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:153 + # ./spec/rspec/mocks/should_syntax_spec.rb:403 - 842) 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 + 842) Using the legacy should syntax #any_instance invocation order #unstub does not get confused about string vs symbol usage for the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:126 + # ./spec/rspec/mocks/should_syntax_spec.rb:449 - 843) 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 + 843) Using the legacy should syntax #any_instance invocation order #unstub does not remove any expectations with the same method name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:133 + # ./spec/rspec/mocks/should_syntax_spec.rb:435 - 844) RSpec::Mocks::Matchers::Receive allow(...).to receive ordered with receive counts is not supported + 844) Using the legacy should syntax #any_instance invocation order #unstub raises a MockExpectationError if the method has not been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:417 + # ./spec/rspec/mocks/should_syntax_spec.rb:443 - 845) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like resets partial mocks cleanly removes the method double + 845) Using the legacy should syntax #any_instance invocation order #unstub removes stubs set directly on an instance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:337 + # ./spec/rspec/mocks/should_syntax_spec.rb:419 - 846) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like resets partial mocks of any instance cleanly removes the method double + 846) Using the legacy should syntax #any_instance invocation order #unstub does not remove message expectations set directly on an instance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:347 + # ./spec/rspec/mocks/should_syntax_spec.rb:427 - 847) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance does not expect the message to be received + 847) Using the legacy should syntax #any_instance invocation order #unstub removes all stubs with the supplied method name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:233 + # ./spec/rspec/mocks/should_syntax_spec.rb:396 - 848) 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 + 848) Using the legacy should syntax #should_receive can set a canned response # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:177 + # ./spec/rspec/mocks/should_syntax_spec.rb:146 - 849) 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 + 849) Using the legacy should syntax #should_receive does not fail on verification if the message is received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:203 + # ./spec/rspec/mocks/should_syntax_spec.rb:139 - 850) 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 + 850) Using the legacy should syntax #should_receive fails on verification if the message is not received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:63 + # ./spec/rspec/mocks/should_syntax_spec.rb:133 - 851) 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 + 851) Using the legacy should syntax #should_receive raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:191 + # ./spec/support/before_all_shared_example_group.rb:11 - 852) 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 + 852) Using the legacy should syntax #should_receive with an options hash uses the message supplied with :message after a similar stub # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:211 + # ./spec/rspec/mocks/should_syntax_spec.rb:178 - 853) 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 + 853) Using the legacy should syntax #should_receive with an options hash reports the file and line submitted with :expected_from # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:54 + # ./spec/rspec/mocks/should_syntax_spec.rb:159 - 854) 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` + 854) Using the legacy should syntax #should_receive with an options hash uses the message supplied with :message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:182 + # ./spec/rspec/mocks/should_syntax_spec.rb:170 - 855) 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 + 855) Using the legacy should syntax #stub sets up a canned response # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:221 + # ./spec/rspec/mocks/should_syntax_spec.rb:40 - 856) 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 + 856) 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_spec.rb:49 + # ./spec/rspec/mocks/should_syntax_spec.rb:46 - 857) 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 + 857) Using the legacy should syntax #stub returns `nil` from all terminal actions to discourage further configuration # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:169 + # ./spec/rspec/mocks/should_syntax_spec.rb:34 - 858) 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 + 858) 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_spec.rb:197 + # ./spec/rspec/mocks/should_syntax_spec.rb:30 - 859) 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 + 859) 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_spec.rb:98 + # ./spec/support/before_all_shared_example_group.rb:11 - 860) 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 + 860) Using the legacy should syntax #stub_chain can stub a sequence of messages # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:133 + # ./spec/rspec/mocks/should_syntax_spec.rb:61 - 861) 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 + 861) Using the legacy should syntax #stub_chain raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:153 + # ./spec/support/before_all_shared_example_group.rb:11 - 862) 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 + 862) 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/matchers/receive_spec.rb:90 + # ./spec/rspec/mocks/should_syntax_spec.rb:23 - 863) 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 + 863) 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/matchers/receive_spec.rb:81 + # ./spec/rspec/mocks/should_syntax_spec.rb:18 - 864) 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 + 864) 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/matchers/receive_spec.rb:118 + # ./spec/rspec/mocks/should_syntax_spec.rb:9 - 865) 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 + 865) Using the legacy should syntax #received_message? answers true for received_message? when message received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:126 + # ./spec/rspec/mocks/should_syntax_spec.rb:13 - 866) 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 + 866) 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/matchers/receive_spec.rb:106 + # ./spec/rspec/mocks/should_syntax_spec.rb:84 - 867) 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 + 867) 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/matchers/receive_spec.rb:159 + # ./spec/support/before_all_shared_example_group.rb:11 - 868) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation prevents confusing double-negative expressions involving `never` + 868) 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/matchers/receive_spec.rb:322 + # ./spec/rspec/mocks/should_syntax_spec.rb:92 - 869) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation allows the caller to constrain the received arguments + 869) 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_spec.rb:309 + # ./spec/rspec/mocks/should_syntax_spec.rb:111 - 870) 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 + 870) 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/matchers/receive_spec.rb:288 + # ./spec/rspec/mocks/should_syntax_spec.rb:124 - 871) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation supports `to_not` as an alias for `not_to` + 871) 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/matchers/receive_spec.rb:301 + # ./spec/rspec/mocks/should_syntax_spec.rb:101 - 872) 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 + 872) Using the legacy should syntax #should_not_receive does not fail on verification if the message is not received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:293 + # ./spec/rspec/mocks/should_syntax_spec.rb:201 - 873) 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 + 873) Using the legacy should syntax #should_not_receive fails when the message is received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:736 + # ./spec/rspec/mocks/should_syntax_spec.rb:194 - 874) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework first can use `expect` with any matcher + 874) Using the legacy should syntax #should_not_receive returns a negative message expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:730 + # ./spec/rspec/mocks/should_syntax_spec.rb:190 - 875) 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` + 875) Using the legacy should syntax #should_not_receive raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:672 + # ./spec/support/before_all_shared_example_group.rb:11 - 876) 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` + 876) 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/matchers/receive_spec.rb:662 + # ./spec/rspec/mocks/formatting_spec.rb:94 - 877) 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 + 877) 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/matchers/receive_spec.rb:642 + # ./spec/rspec/mocks/formatting_spec.rb:68 - 878) 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 + 878) 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/matchers/receive_spec.rb:652 + # ./spec/rspec/mocks/formatting_spec.rb:74 - 879) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders includes the correct call site in the expect warning + 879) 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/matchers/receive_spec.rb:26 + # ./spec/rspec/mocks/formatting_spec.rb:59 - 880) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders warns about expect(Klass.any_instance).to receive... + 880) 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/matchers/receive_spec.rb:19 + # ./spec/rspec/mocks/formatting_spec.rb:48 - 881) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders includes the correct call site in the allow warning + 881) 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/matchers/receive_spec.rb:14 + # ./spec/rspec/mocks/formatting_spec.rb:54 - 882) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders warns about allow(Klass.any_instance).to receive... + 882) 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/matchers/receive_spec.rb:9 + # ./spec/rspec/mocks/formatting_spec.rb:39 - 883) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework last can use `expect` with any matcher + 883) 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/matchers/receive_spec.rb:758 + # ./spec/rspec/mocks/formatting_spec.rb:28 - 884) 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 + 884) 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/matchers/receive_spec.rb:652 + # ./spec/rspec/mocks/formatting_spec.rb:24 - 885) 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` + 885) 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/matchers/receive_spec.rb:662 + # ./spec/rspec/mocks/formatting_spec.rb:34 - 886) 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` + 886) 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/matchers/receive_spec.rb:672 + # ./spec/rspec/mocks/formatting_spec.rb:82 - 887) 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 + 887) 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/matchers/receive_spec.rb:642 + # ./spec/rspec/mocks/formatting_spec.rb:88 - 888) argument matchers matching array_including fails array_including when args aren't array + 888) 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/argument_matchers_spec.rb:288 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:5 - 889) argument matchers matching array_including matches array with array_including same array + 889) 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/argument_matchers_spec.rb:278 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:9 - 890) argument matchers matching array_including fails array_including when arg doesn't contain all elements + 890) 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/argument_matchers_spec.rb:295 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:40 - 891) argument matchers matching array_including matches array with array_including using fuzzymatcher + 891) 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/argument_matchers_spec.rb:283 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:24 - 892) argument matchers matching instance_of does NOT accept float as instance_of(Numeric) + 892) 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/argument_matchers_spec.rb:67 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:32 - 893) argument matchers matching instance_of accepts float as instance_of(Float) + 893) 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/argument_matchers_spec.rb:62 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:16 - 894) argument matchers matching instance_of does NOT accept integer as instance_of(Numeric) + 894) 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/argument_matchers_spec.rb:72 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:28 - 895) argument matchers matching instance_of rejects non string + 895) 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/argument_matchers_spec.rb:82 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:48 - 896) argument matchers matching instance_of rejects non numeric + 896) 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/argument_matchers_spec.rb:77 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:36 - 897) argument matchers matching instance_of handles non matching instances nicely + 897) 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/argument_matchers_spec.rb:87 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:20 - 898) argument matchers matching hash_excluding handles non matching instances nicely + 898) 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/argument_matchers_spec.rb:269 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:60 - 899) argument matchers matching hash_excluding matches hash with hash_excluding same hash + 899) 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/argument_matchers_spec.rb:264 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:56 - 900) argument matchers matching handling non-matcher arguments fails if regexp does not match submitted regexp + 900) 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/argument_matchers_spec.rb:412 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:81 - 901) argument matchers matching handling non-matcher arguments fails with sensible message when args respond to #description + 901) 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/argument_matchers_spec.rb:484 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:101 - 902) argument matchers matching handling non-matcher arguments matches regexp against regexp + 902) 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/argument_matchers_spec.rb:402 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:93 - 903) argument matchers matching handling non-matcher arguments fails with zero arguments + 903) 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/argument_matchers_spec.rb:478 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:87 - 904) argument matchers matching handling non-matcher arguments fails a class against an object of a different type + 904) 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/argument_matchers_spec.rb:473 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 - 905) argument matchers matching handling non-matcher arguments matches a class against itself + 905) 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/argument_matchers_spec.rb:458 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 - 906) argument matchers matching handling non-matcher arguments matches string against regexp + 906) 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/argument_matchers_spec.rb:397 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:22 - 907) argument matchers matching handling non-matcher arguments matches against a hash submitted and received by value + 907) 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/argument_matchers_spec.rb:417 + # ./spec/rspec/mocks/and_return_spec.rb:7 - 908) argument matchers matching handling non-matcher arguments fails a class against an unrelated class + 908) 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/argument_matchers_spec.rb:463 + # ./spec/rspec/mocks/and_return_spec.rb:15 - 909) argument matchers matching handling non-matcher arguments fails for a hash w/ wrong keys + 909) 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/argument_matchers_spec.rb:451 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:49 - 910) argument matchers matching handling non-matcher arguments fails for a hash w/ wrong values + 910) 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/argument_matchers_spec.rb:444 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:38 - 911) 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 + 911) 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/argument_matchers_spec.rb:429 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:149 - 912) 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) + 912) 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/argument_matchers_spec.rb:422 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:20 - 913) argument matchers matching handling non-matcher arguments fails with sensible message when arg#description is nil + 913) 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/argument_matchers_spec.rb:491 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:142 - 914) argument matchers matching handling non-matcher arguments fails if regexp does not match submitted string + 914) 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/argument_matchers_spec.rb:407 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:57 - 915) argument matchers matching handling non-matcher arguments matches a class against an instance of itself + 915) 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/argument_matchers_spec.rb:468 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:33 - 916) argument matchers matching handling non-matcher arguments fails with sensible message when arg#description is blank + 916) 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/argument_matchers_spec.rb:498 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:133 - 917) 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 + 917) 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/argument_matchers_spec.rb:199 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:43 - 918) argument matchers matching any_args as the middle of three args does not match a call of no args + 918) 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/argument_matchers_spec.rb:215 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:87 - 919) 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 + 919) 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/argument_matchers_spec.rb:203 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:12 - 920) 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 + 920) 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/argument_matchers_spec.rb:207 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:79 - 921) 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 + 921) 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/argument_matchers_spec.rb:211 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:70 - 922) argument matchers matching any_args when passed twice immediately signals that this is invalid + 922) 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/argument_matchers_spec.rb:221 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:126 - 923) 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 + 923) 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/argument_matchers_spec.rb:175 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:163 - 924) argument matchers matching any_args as the first of three args does not match a call where the last two args do not match + 924) 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/argument_matchers_spec.rb:187 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:157 - 925) argument matchers matching any_args as the first of three args does not match a call of no args + 925) 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/argument_matchers_spec.rb:191 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:115 - 926) 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 + 926) 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/argument_matchers_spec.rb:179 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:93 - 927) 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 + 927) 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/argument_matchers_spec.rb:183 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:100 - 928) argument matchers matching any_args as the only arg passed to `with` matches many args + 928) 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/argument_matchers_spec.rb:143 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:106 - 929) argument matchers matching any_args as the only arg passed to `with` matches one arg + 929) 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/argument_matchers_spec.rb:139 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:181 - 930) argument matchers matching any_args as the only arg passed to `with` matches no args + 930) 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/argument_matchers_spec.rb:135 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:210 - 931) 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 + 931) 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/argument_matchers_spec.rb:159 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:188 - 932) 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 + 932) 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/argument_matchers_spec.rb:155 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:200 - 933) 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 + 933) 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/argument_matchers_spec.rb:151 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:223 - 934) argument matchers matching any_args as the last of three args does not match a call of no args + 934) 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/argument_matchers_spec.rb:167 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:194 - 935) argument matchers matching any_args as the last of three args does not match a call where the first two args do not match + 935) 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/argument_matchers_spec.rb:163 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:171 - 936) argument matchers matching duck_type matches duck type with two methods + 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/argument_matchers_spec.rb:118 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:55 - 937) argument matchers matching duck_type matches duck type with one method + 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/argument_matchers_spec.rb:113 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:49 - 938) argument matchers matching duck_type rejects goose when expecting a duck + 938) 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/argument_matchers_spec.rb:123 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 - 939) argument matchers matching anything doesn't accept no arguments + 939) 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/argument_matchers_spec.rb:101 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 - 940) argument matchers matching anything handles non matching instances nicely + 940) 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/argument_matchers_spec.rb:106 + # ./spec/rspec/mocks/failure_notification_spec.rb:16 - 941) argument matchers matching anything accepts string as anything + 941) 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/argument_matchers_spec.rb:96 + # ./spec/rspec/mocks/failure_notification_spec.rb:24 - 942) argument matchers matching no_args matches no args against no_args + 942) 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/argument_matchers_spec.rb:230 + # ./spec/rspec/mocks/failure_notification_spec.rb:8 - 943) argument matchers matching no_args fails no_args with one arg + 943) 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/argument_matchers_spec.rb:235 + # ./spec/rspec/mocks/failure_notification_spec.rb:58 - 944) argument matchers matching no_args when passed with other arguments immediately signals that this is invalid + 944) 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/argument_matchers_spec.rb:241 + # ./spec/rspec/mocks/failure_notification_spec.rb:45 - 945) argument matchers matching boolean accepts true as boolean + 945) 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/argument_matchers_spec.rb:11 + # ./spec/rspec/mocks/failure_notification_spec.rb:34 - 946) argument matchers matching boolean rejects non boolean + 946) 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/argument_matchers_spec.rb:21 + # ./spec/rspec/mocks/stub_chain_spec.rb:147 - 947) argument matchers matching boolean accepts false as boolean + 947) 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/argument_matchers_spec.rb:16 + # ./spec/rspec/mocks/stub_chain_spec.rb:6 - 948) argument matchers matching kind_of accepts fixnum as kind_of(Numeric) + 948) 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/argument_matchers_spec.rb:30 + # ./spec/rspec/mocks/stub_chain_spec.rb:160 - 949) argument matchers matching kind_of accepts float as kind_of(Numeric) + 949) 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/argument_matchers_spec.rb:35 + # ./spec/rspec/mocks/stub_chain_spec.rb:152 - 950) argument matchers matching kind_of handles a class thats overridden === + 950) 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/argument_matchers_spec.rb:53 + # ./spec/rspec/mocks/stub_chain_spec.rb:96 - 951) argument matchers matching kind_of handles non matching kinds nicely + 951) 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/argument_matchers_spec.rb:40 + # ./spec/rspec/mocks/stub_chain_spec.rb:126 - 952) argument matchers matching kind_of matches arguments that have defined `kind_of?` to return true + 952) 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/argument_matchers_spec.rb:47 + # ./spec/rspec/mocks/stub_chain_spec.rb:136 - 953) argument matchers matching array_excluding fails array_excluding when arg contains some elements + 953) 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/argument_matchers_spec.rb:316 + # ./spec/rspec/mocks/stub_chain_spec.rb:114 - 954) argument matchers matching array_excluding fails array_excluding when using the fuzzy matcher + 954) 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/argument_matchers_spec.rb:328 + # ./spec/rspec/mocks/stub_chain_spec.rb:104 - 955) argument matchers matching array_excluding matches array_excluding when using the fuzzy matcher + 955) 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/argument_matchers_spec.rb:323 + # ./spec/rspec/mocks/stub_chain_spec.rb:38 - 956) argument matchers matching array_excluding fails array_excluding when is the same array + 956) 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/argument_matchers_spec.rb:309 + # ./spec/rspec/mocks/stub_chain_spec.rb:52 - 957) argument matchers matching array_excluding matches array with array_excluding different array + 957) 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/argument_matchers_spec.rb:304 + # ./spec/rspec/mocks/stub_chain_spec.rb:45 - 958) argument matchers matching hash_including fails hash_including with missing key + 958) 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/argument_matchers_spec.rb:255 + # ./spec/rspec/mocks/stub_chain_spec.rb:59 - 959) argument matchers matching hash_including matches hash with hash_including same hash + 959) 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/argument_matchers_spec.rb:250 + # ./spec/rspec/mocks/stub_chain_spec.rb:16 - 960) 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 + 960) 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/argument_matchers_spec.rb:373 + # ./spec/rspec/mocks/stub_chain_spec.rb:30 - 961) 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 + 961) 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/argument_matchers_spec.rb:378 + # ./spec/rspec/mocks/stub_chain_spec.rb:23 - 962) 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 + 962) 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/argument_matchers_spec.rb:383 + # ./spec/rspec/mocks/stub_chain_spec.rb:89 - 963) argument matchers matching handling arbitrary matchers matches any arbitrary object using #=== + 963) 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/argument_matchers_spec.rb:337 + # ./spec/rspec/mocks/stub_chain_spec.rb:68 - 964) argument matchers matching handling arbitrary matchers fails when given an arbitrary object that returns false from #=== + 964) 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/argument_matchers_spec.rb:352 + # ./spec/rspec/mocks/stub_chain_spec.rb:75 - 965) argument matchers matching handling arbitrary matchers matches against a Matcher + 965) 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/argument_matchers_spec.rb:345 + # ./spec/rspec/mocks/stub_chain_spec.rb:82 - 966) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher describes itself properly + 966) 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/hash_excluding_matcher_spec.rb:6 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:4 - 967) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches against classes inheriting from Hash + 967) 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/hash_excluding_matcher_spec.rb:31 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:20 - 968) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches an empty hash + 968) 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/hash_excluding_matcher_spec.rb:23 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:27 - 969) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash with the specified key, but different value + 969) 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/hash_excluding_matcher_spec.rb:15 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:12 - 970) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash without the specified key + 970) 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/hash_excluding_matcher_spec.rb:11 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:42 - 971) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash without any of the specified keys + 971) 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/hash_excluding_matcher_spec.rb:27 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:99 - 972) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash without the specified key, given as anything() + 972) 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/hash_excluding_matcher_spec.rb:19 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:81 - 973) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with one of the specified keys + 973) 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/hash_excluding_matcher_spec.rb:53 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:89 - 974) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with some of the specified keys + 974) 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/hash_excluding_matcher_spec.rb:57 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:63 - 975) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with one key/value pair included + 975) 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/hash_excluding_matcher_spec.rb:61 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:72 - 976) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with the specified key + 976) 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/hash_excluding_matcher_spec.rb:49 + # ./spec/rspec/mocks/should_syntax_spec.rb:541 - 977) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a non-hash + 977) 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/hash_excluding_matcher_spec.rb:37 + # ./spec/rspec/mocks/should_syntax_spec.rb:496 - 978) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with the specified key/value pair + 978) 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/hash_excluding_matcher_spec.rb:45 + # ./spec/rspec/mocks/should_syntax_spec.rb:475 - 979) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with a specified key + 979) 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/hash_excluding_matcher_spec.rb:41 + # ./spec/rspec/mocks/should_syntax_spec.rb:564 - 980) An instance double with the doubled class not loaded allows any instance method to be expected + 980) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:25 + # ./spec/rspec/mocks/should_syntax_spec.rb:487 - 981) An instance double with the doubled class not loaded allows any instance method to be stubbed + 981) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:19 + # ./spec/rspec/mocks/should_syntax_spec.rb:554 982) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:12 - 983) An instance double with the doubled class not loaded handles classes that are materialized after mocking + 983) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:19 + + 984) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:25 + + 985) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:35 - 984) 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)` + 986) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:64 - 985) An instance double with the doubled class not loaded when the class const has been previously stubbed treats the class as unloaded for `instance_double('NonLoadedClass')` + 987) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:59 - 986) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:45 - - 987) An instance double with the doubled class not loaded for null objects reports it responds to any message + 988) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:49 - 988) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been stubbed + 989) 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/mutate_const_spec.rb:580 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:45 - 989) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) exposes the provided string as the name + 990) 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/mutate_const_spec.rb:576 + # ./spec/rspec/mocks/and_invoke_spec.rb:35 - 990) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it was not previously defined + 991) 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/mutate_const_spec.rb:578 + # ./spec/rspec/mocks/and_invoke_spec.rb:7 - 991) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) returns nil for its original value + 992) 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/mutate_const_spec.rb:582 + # ./spec/rspec/mocks/and_invoke_spec.rb:24 - 992) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been hidden + 993) 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/mutate_const_spec.rb:581 + # ./spec/rspec/mocks/and_invoke_spec.rb:15 - 993) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been mutated + 994) 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/mutate_const_spec.rb:579 + # ./spec/rspec/mocks/order_group_spec.rb:21 - 994) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates the name is invalid + 995) 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/mutate_const_spec.rb:577 + # ./spec/rspec/mocks/order_group_spec.rb:18 - 995) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has not been hidden + 996) 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/mutate_const_spec.rb:488 + # ./spec/rspec/mocks/mutate_const_spec.rb:500 - 996) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has been mutated + 997) 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/mutate_const_spec.rb:486 + # ./spec/rspec/mocks/mutate_const_spec.rb:499 - 997) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has been stubbed + 998) 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/mutate_const_spec.rb:487 + # ./spec/rspec/mocks/mutate_const_spec.rb:498 - 998) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant exposes its name + 999) 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/mutate_const_spec.rb:483 + # ./spec/rspec/mocks/mutate_const_spec.rb:496 - 999) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates the name is valid + 1000) 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/mutate_const_spec.rb:484 + # ./spec/rspec/mocks/mutate_const_spec.rb:501 - 1000) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it was not previously defined + 1001) 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/mutate_const_spec.rb:485 + # ./spec/rspec/mocks/mutate_const_spec.rb:497 - 1001) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant returns nil for the original value + 1002) 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/mutate_const_spec.rb:489 + # ./spec/rspec/mocks/mutate_const_spec.rb:495 - 1002) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it was not previously defined + 1003) 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/mutate_const_spec.rb:525 + # ./spec/rspec/mocks/mutate_const_spec.rb:514 - 1003) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates the name is valid + 1004) 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/mutate_const_spec.rb:524 + # ./spec/rspec/mocks/mutate_const_spec.rb:512 - 1004) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has been stubbed + 1005) 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/mutate_const_spec.rb:527 + # ./spec/rspec/mocks/mutate_const_spec.rb:510 - 1005) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has been mutated + 1006) 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/mutate_const_spec.rb:526 + # ./spec/rspec/mocks/mutate_const_spec.rb:515 - 1006) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice exposes its name + 1007) 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/mutate_const_spec.rb:523 + # ./spec/rspec/mocks/mutate_const_spec.rb:511 - 1007) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has not been hidden + 1008) 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/mutate_const_spec.rb:528 + # ./spec/rspec/mocks/mutate_const_spec.rb:509 - 1008) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice returns nil for the original value + 1009) 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/mutate_const_spec.rb:529 + # ./spec/rspec/mocks/mutate_const_spec.rb:513 - 1009) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has been mutated + 1010) 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/mutate_const_spec.rb:566 + # ./spec/rspec/mocks/mutate_const_spec.rb:552 - 1010) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has not been stubbed + 1011) 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/mutate_const_spec.rb:567 + # ./spec/rspec/mocks/mutate_const_spec.rb:553 - 1011) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice exposes its name + 1012) 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/mutate_const_spec.rb:563 + # ./spec/rspec/mocks/mutate_const_spec.rb:554 - 1012) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice exposes its original value + 1013) 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/mutate_const_spec.rb:569 + # ./spec/rspec/mocks/mutate_const_spec.rb:551 - 1013) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it was previously defined + 1014) 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/mutate_const_spec.rb:565 + # ./spec/rspec/mocks/mutate_const_spec.rb:550 - 1014) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has been hidden + 1015) 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/mutate_const_spec.rb:568 + # ./spec/rspec/mocks/mutate_const_spec.rb:549 - 1015) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates the name is valid + 1016) 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/mutate_const_spec.rb:564 + # ./spec/rspec/mocks/mutate_const_spec.rb:555 - 1016) RSpec::Mocks::Constant.original for a previously defined stubbed constant exposes its original value + 1017) 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/mutate_const_spec.rb:463 + # ./spec/rspec/mocks/mutate_const_spec.rb:563 - 1017) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it was previously defined + 1018) 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/mutate_const_spec.rb:459 + # ./spec/rspec/mocks/mutate_const_spec.rb:568 - 1018) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has not been hidden + 1019) 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/mutate_const_spec.rb:462 + # ./spec/rspec/mocks/mutate_const_spec.rb:569 - 1019) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has been stubbed + 1020) 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/mutate_const_spec.rb:461 + # ./spec/rspec/mocks/mutate_const_spec.rb:565 - 1020) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has been mutated + 1021) 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/mutate_const_spec.rb:460 + # ./spec/rspec/mocks/mutate_const_spec.rb:564 - 1021) RSpec::Mocks::Constant.original for a previously defined stubbed constant exposes its name + 1022) 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/mutate_const_spec.rb:457 + # ./spec/rspec/mocks/mutate_const_spec.rb:567 - 1022) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates the name is valid + 1023) 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/mutate_const_spec.rb:458 + # ./spec/rspec/mocks/mutate_const_spec.rb:566 - 1023) RSpec::Mocks::Constant.original for a previously undefined stubbed constant exposes its name + 1024) 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/mutate_const_spec.rb:470 + # ./spec/rspec/mocks/mutate_const_spec.rb:471 - 1024) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has been mutated + 1025) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it was not previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:473 + # ./spec/rspec/mocks/mutate_const_spec.rb:472 - 1025) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates the name is valid + 1026) 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/mutate_const_spec.rb:471 + # ./spec/rspec/mocks/mutate_const_spec.rb:473 - 1026) RSpec::Mocks::Constant.original for a previously undefined stubbed constant returns nil for the original value + 1027) 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/mutate_const_spec.rb:476 + # ./spec/rspec/mocks/mutate_const_spec.rb:474 - 1027) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it was not previously defined + 1028) 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/mutate_const_spec.rb:472 + # ./spec/rspec/mocks/mutate_const_spec.rb:470 - 1028) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has been stubbed + 1029) 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/mutate_const_spec.rb:474 + # ./spec/rspec/mocks/mutate_const_spec.rb:476 - 1029) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has not been hidden + 1030) 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/mutate_const_spec.rb:475 - 1030) 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/mutate_const_spec.rb:498 - - 1031) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant returns nil for the original value + 1031) 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/mutate_const_spec.rb:501 + # ./spec/rspec/mocks/mutate_const_spec.rb:487 - 1032) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it has not been stubbed + 1032) 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/mutate_const_spec.rb:499 + # ./spec/rspec/mocks/mutate_const_spec.rb:484 - 1033) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it was not previously defined + 1033) 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/mutate_const_spec.rb:497 + # ./spec/rspec/mocks/mutate_const_spec.rb:486 - 1034) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates the name is valid + 1034) 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/mutate_const_spec.rb:496 + # ./spec/rspec/mocks/mutate_const_spec.rb:489 - 1035) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant exposes its name + 1035) 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/mutate_const_spec.rb:495 + # ./spec/rspec/mocks/mutate_const_spec.rb:485 - 1036) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it has not been hidden + 1036) 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/mutate_const_spec.rb:500 + # ./spec/rspec/mocks/mutate_const_spec.rb:483 - 1037) RSpec::Mocks::Constant.original for a previously defined unstubbed constant exposes its original value + 1037) 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/mutate_const_spec.rb:450 + # ./spec/rspec/mocks/mutate_const_spec.rb:488 - 1038) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates the name is valid + 1038) 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/mutate_const_spec.rb:445 + # ./spec/rspec/mocks/mutate_const_spec.rb:457 - 1039) RSpec::Mocks::Constant.original for a previously defined unstubbed constant exposes its name + 1039) 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/mutate_const_spec.rb:444 + # ./spec/rspec/mocks/mutate_const_spec.rb:462 - 1040) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been stubbed + 1040) 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/mutate_const_spec.rb:448 + # ./spec/rspec/mocks/mutate_const_spec.rb:463 - 1041) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been hidden + 1041) 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/mutate_const_spec.rb:449 + # ./spec/rspec/mocks/mutate_const_spec.rb:459 - 1042) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been mutated + 1042) 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/mutate_const_spec.rb:447 + # ./spec/rspec/mocks/mutate_const_spec.rb:458 - 1043) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it was previously defined + 1043) 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/mutate_const_spec.rb:446 + # ./spec/rspec/mocks/mutate_const_spec.rb:461 - 1044) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it was previously undefined + 1044) 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/mutate_const_spec.rb:538 + # ./spec/rspec/mocks/mutate_const_spec.rb:460 - 1045) RSpec::Mocks::Constant.original for a previously undefined hidden constant exposes its name + 1045) 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/mutate_const_spec.rb:536 + # ./spec/rspec/mocks/mutate_const_spec.rb:523 - 1046) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not been mutated + 1046) 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/mutate_const_spec.rb:539 + # ./spec/rspec/mocks/mutate_const_spec.rb:526 - 1047) RSpec::Mocks::Constant.original for a previously undefined hidden constant returns nil for the original value + 1047) 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/mutate_const_spec.rb:542 + # ./spec/rspec/mocks/mutate_const_spec.rb:525 - 1048) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not not been stubbed + 1048) 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/mutate_const_spec.rb:540 + # ./spec/rspec/mocks/mutate_const_spec.rb:527 - 1049) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not been hidden + 1049) 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/mutate_const_spec.rb:541 + # ./spec/rspec/mocks/mutate_const_spec.rb:524 - 1050) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates the name is valid + 1050) 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/mutate_const_spec.rb:537 + # ./spec/rspec/mocks/mutate_const_spec.rb:528 - 1051) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has not been stubbed + 1051) 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/mutate_const_spec.rb:553 + # ./spec/rspec/mocks/mutate_const_spec.rb:529 - 1052) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it was previously defined + 1052) 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/mutate_const_spec.rb:551 + # ./spec/rspec/mocks/mutate_const_spec.rb:446 - 1053) RSpec::Mocks::Constant.original for a previously defined hidden constant exposes its name + 1053) 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/mutate_const_spec.rb:549 + # ./spec/rspec/mocks/mutate_const_spec.rb:445 - 1054) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates the name is valid + 1054) 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/mutate_const_spec.rb:550 + # ./spec/rspec/mocks/mutate_const_spec.rb:444 - 1055) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has been hidden + 1055) 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/mutate_const_spec.rb:554 + # ./spec/rspec/mocks/mutate_const_spec.rb:448 - 1056) RSpec::Mocks::Constant.original for a previously defined hidden constant exposes its original value + 1056) 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/mutate_const_spec.rb:555 + # ./spec/rspec/mocks/mutate_const_spec.rb:449 - 1057) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has been mutated + 1057) 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/mutate_const_spec.rb:552 + # ./spec/rspec/mocks/mutate_const_spec.rb:450 - 1058) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it was previously defined + 1058) 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/mutate_const_spec.rb:511 + # ./spec/rspec/mocks/mutate_const_spec.rb:447 - 1059) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has been mutated + 1059) 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/mutate_const_spec.rb:512 + # ./spec/rspec/mocks/mutate_const_spec.rb:537 - 1060) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has not been hidden + 1060) 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/mutate_const_spec.rb:514 + # ./spec/rspec/mocks/mutate_const_spec.rb:536 - 1061) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has been stubbed + 1061) 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/mutate_const_spec.rb:513 + # ./spec/rspec/mocks/mutate_const_spec.rb:540 - 1062) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates the name is valid + 1062) 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/mutate_const_spec.rb:510 + # ./spec/rspec/mocks/mutate_const_spec.rb:538 - 1063) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice exposes its name + 1063) 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/mutate_const_spec.rb:509 + # ./spec/rspec/mocks/mutate_const_spec.rb:539 - 1064) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice exposes its original value + 1064) 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/mutate_const_spec.rb:515 + # ./spec/rspec/mocks/mutate_const_spec.rb:542 - 1065) A class double with the doubled class not loaded includes the double name in errors for unexpected messages + 1065) 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/verifying_doubles/class_double_with_class_not_loaded_spec.rb:12 + # ./spec/rspec/mocks/mutate_const_spec.rb:541 - 1066) A class double with the doubled class not loaded trying to raise a class_double raises a TypeError + 1066) 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/verifying_doubles/class_double_with_class_not_loaded_spec.rb:25 + # ./spec/rspec/mocks/mutate_const_spec.rb:576 - 1067) A class double with the doubled class not loaded allows any method to be stubbed + 1067) 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/verifying_doubles/class_double_with_class_not_loaded_spec.rb:19 + # ./spec/rspec/mocks/mutate_const_spec.rb:581 - 1068) A class double with the doubled class not loaded when stubbing a private module method can mock private module methods + 1068) 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/verifying_doubles/class_double_with_class_not_loaded_spec.rb:46 + # ./spec/rspec/mocks/mutate_const_spec.rb:577 - 1069) 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)` + 1069) 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/verifying_doubles/class_double_with_class_not_loaded_spec.rb:65 + # ./spec/rspec/mocks/mutate_const_spec.rb:578 - 1070) 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')` + 1070) 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/verifying_doubles/class_double_with_class_not_loaded_spec.rb:60 + # ./spec/rspec/mocks/mutate_const_spec.rb:579 - 1071) Reraising eager raises during the verify step does not reraise when a double receives a message that hasn't been allowed/expected + 1071) 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/reraising_eager_raises_spec.rb:4 + # ./spec/rspec/mocks/mutate_const_spec.rb:582 - 1072) Reraising eager raises during the verify step when an expectation is called with the wrong arguments reraises during verification + 1072) 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/reraising_eager_raises_spec.rb:81 + # ./spec/rspec/mocks/mutate_const_spec.rb:580 - 1073) 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 + 1073) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received passes if expectations against yielded keyword arguments pass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:89 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:111 - 1074) 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 + 1074) 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/reraising_eager_raises_spec.rb:27 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:62 - 1075) Reraising eager raises during the verify step when a negative expectation receives a call reraises during verification + 1075) 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/reraising_eager_raises_spec.rb:12 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:35 - 1076) 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 + 1076) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received fails when a null object has not received the given message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:42 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:54 - 1077) 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 + 1077) 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/reraising_eager_raises_spec.rb:20 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:183 - 1078) Reraising eager raises during the verify step when an expectation is called out of order reraises during verification + 1078) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received passes if expectations against the yielded arguments pass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:99 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:100 - 1079) Reraising eager raises during the verify step when an expectation with a count is exceeded reraises during verification + 1079) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received forwards any block passed during method invocation to the `have_received` block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:63 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:146 - 1080) 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 + 1080) 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/reraising_eager_raises_spec.rb:72 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:195 - 1081) when verify_partial_doubles configuration option is set allows valid methods to be expected on any_instance + 1081) 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/partial_double_spec.rb:507 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:80 - 1082) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks on any_instance before verifying a double allowance + 1082) 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/partial_double_spec.rb:517 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:90 - 1083) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks before verifying an expectation + 1083) 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/partial_double_spec.rb:421 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:188 - 1084) when verify_partial_doubles configuration option is set allows private methods to be expected + 1084) 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/partial_double_spec.rb:380 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:30 - 1085) when verify_partial_doubles configuration option is set allows a method defined with method_missing to be expected + 1085) 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/partial_double_spec.rb:502 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:43 - 1086) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks on any_instance before verifying a double + 1086) 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/partial_double_spec.rb:529 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:134 - 1087) when verify_partial_doubles configuration option is set verifies arity range when matching arguments + 1087) 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/partial_double_spec.rb:497 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:124 - 1088) when verify_partial_doubles configuration option is set allows valid methods to be expected + 1088) 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/partial_double_spec.rb:375 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:70 - 1089) when verify_partial_doubles configuration option is set allows private methods to be expected on any_instance expectation + 1089) 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/partial_double_spec.rb:512 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:156 - 1090) when verify_partial_doubles configuration option is set allows the mock to raise an error with yield + 1090) 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/partial_double_spec.rb:566 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:25 - 1091) when verify_partial_doubles configuration option is set verifies arity range when receiving a message + 1091) 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/partial_double_spec.rb:556 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:517 - 1092) when verify_partial_doubles configuration option is set can be temporarily supressed + 1092) 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/partial_double_spec.rb:385 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:455 - 1093) when verify_partial_doubles configuration option is set does not allow a non-existing method to be expected + 1093) 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/partial_double_spec.rb:487 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:484 - 1094) when verify_partial_doubles configuration option is set does not allow missing methods to be called on any_instance + 1094) 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/partial_double_spec.rb:547 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:447 - 1095) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks before verifying an allowance + 1095) 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/partial_double_spec.rb:432 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:555 - 1096) when verify_partial_doubles configuration option is set allows stubbing and calls the stubbed implementation + 1096) 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/partial_double_spec.rb:572 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:560 - 1097) when verify_partial_doubles configuration option is set avoids deadlocks when a proxy is accessed from within a `before_verifying_doubles` callback + 1097) 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/partial_double_spec.rb:443 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:538 - 1098) when verify_partial_doubles configuration option is set temporarily supressing partial doubles does not affect normal verifying doubles + 1098) 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/partial_double_spec.rb:413 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:533 - 1099) when verify_partial_doubles configuration option is set does not allow a spy on unimplemented method + 1099) 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/partial_double_spec.rb:491 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:327 - 1100) when verify_partial_doubles configuration option is set does not allow a non-existing method to be called on any_instance + 1100) 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/partial_double_spec.rb:541 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:323 - 1101) when verify_partial_doubles configuration option is set can be temporarily supressed and nested + 1101) 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/partial_double_spec.rb:398 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:331 - 1102) when verify_partial_doubles configuration option is set for a class can be temporarily supressed + 1102) 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/partial_double_spec.rb:474 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:420 - 1103) when verify_partial_doubles configuration option is set for a class only runs the `before_verifying_doubles` callback for the class (not for superclasses) + 1103) 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/partial_double_spec.rb:462 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:430 - 1104) when verify_partial_doubles configuration option is set when `.new` is stubbed uses the method signature from `#initialize` for arg verification + 1104) 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/partial_double_spec.rb:582 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:411 - 1105) 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 + 1105) 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/partial_double_spec.rb:588 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:301 - 1106) 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 + 1106) 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/partial_double_spec.rb:640 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:315 - 1107) 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 + 1107) 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/partial_double_spec.rb:611 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:297 - 1108) 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 + 1108) 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/partial_double_spec.rb:626 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:381 - 1109) when verify_partial_doubles configuration option is set when `.new` is stubbed on a class that has undefined `new` prevents it from being stubbed + 1109) 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/partial_double_spec.rb:599 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:389 - 1110) RSpec::Mocks::Double yields single value + 1110) 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/double_spec.rb:483 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:398 - 1111) RSpec::Mocks::Double raises RuntimeError with a message by default + 1111) 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/double_spec.rb:347 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:215 - 1112) RSpec::Mocks::Double yields one arg 3 times consecutively to blocks that take a variable number of arguments + 1112) 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/double_spec.rb:455 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:239 - 1113) RSpec::Mocks::Double fails when calling yielding method with invalid kw args + 1113) 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/double_spec.rb:528 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:221 - 1114) RSpec::Mocks::Double fails if unexpected method called + 1114) 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/double_spec.rb:264 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:231 - 1115) RSpec::Mocks::Double uses block for expectation if provided + 1115) 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/double_spec.rb:270 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:273 - 1116) RSpec::Mocks::Double throws when told to + 1116) 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/double_spec.rb:393 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:264 - 1117) RSpec::Mocks::Double does not blow up when resetting standard object methods + 1117) 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/double_spec.rb:25 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:285 - 1118) RSpec::Mocks::Double fails when calling yielding method without block + 1118) 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/double_spec.rb:546 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:247 - 1119) RSpec::Mocks::Double has method_missing as private + 1119) 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/double_spec.rb:7 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:369 - 1120) RSpec::Mocks::Double passes proc to stub block without an argument + 1120) 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/double_spec.rb:326 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:361 - 1121) RSpec::Mocks::Double clears expectations after verify + 1121) 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/double_spec.rb:571 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:355 - 1122) RSpec::Mocks::Double hides internals in its inspect representation + 1122) 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/double_spec.rb:20 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:347 - 1123) RSpec::Mocks::Double is able to raise from method calling yielding double + 1123) 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/double_spec.rb:559 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:343 - 1124) RSpec::Mocks::Double raises an exception of a given type without an error message + 1124) 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/double_spec.rb:352 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:339 - 1125) RSpec::Mocks::Double allows setter methods to be stubbed + 1125) 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/double_spec.rb:52 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:174 - 1126) RSpec::Mocks::Double raises an exception of a given type with a message + 1126) 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/double_spec.rb:357 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:169 - 1127) RSpec::Mocks::Double temporarily replaces a method stub on a double + 1127) 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/double_spec.rb:587 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1128) RSpec::Mocks::Double returns value from block by default + 1128) 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/double_spec.rb:423 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1129) RSpec::Mocks::Double ignores args on any args + 1129) 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/double_spec.rb:400 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:576 - 1130) RSpec::Mocks::Double fails when array arguments do not match + 1130) 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/double_spec.rb:150 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:584 - 1131) RSpec::Mocks::Double passes when receiving message specified as not to be received with different args + 1131) 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/double_spec.rb:123 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1132) RSpec::Mocks::Double yields single value 3 times consecutively + 1132) 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/double_spec.rb:491 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:571 - 1133) RSpec::Mocks::Double does not raise when told to if args dont match + 1133) 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/double_spec.rb:386 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:595 - 1134) RSpec::Mocks::Double uses 'Double' in failure messages + 1134) 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/double_spec.rb:15 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1135) RSpec::Mocks::Double returns the previously stubbed value if no return value is set + 1135) 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/double_spec.rb:203 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1136) RSpec::Mocks::Double fails when calling yielding method consecutively with wrong arity + 1136) 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/double_spec.rb:536 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1137) RSpec::Mocks::Double fails when receiving message specified as not to be received with args + 1137) 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/double_spec.rb:140 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:604 - 1138) RSpec::Mocks::Double yields two values 3 times consecutively + 1138) 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/double_spec.rb:510 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:609 - 1139) RSpec::Mocks::Double passes proc to stub block with an argument + 1139) 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/double_spec.rb:331 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:637 - 1140) RSpec::Mocks::Double does not get confused when a negative expectation is used with a string and symbol message + 1140) 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/double_spec.rb:178 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:653 - 1141) RSpec::Mocks::Double yields many args to blocks that take a variable number of arguments + 1141) 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/double_spec.rb:465 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:645 - 1142) RSpec::Mocks::Double returns the stubbed value when stubbed with args and no new value specified + 1142) 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/double_spec.rb:628 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:629 - 1143) RSpec::Mocks::Double allows parameter as return value + 1143) 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/double_spec.rb:197 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:12 - 1144) RSpec::Mocks::Double prevents confusing double-negative expressions involving `never` + 1144) 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/double_spec.rb:103 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:19 - 1145) RSpec::Mocks::Double can yield multiple times when told to do so + 1145) 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/double_spec.rb:643 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:25 - 1146) RSpec::Mocks::Double raises an error when a previously stubbed method has a negative expectation + 1146) 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/double_spec.rb:605 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:65 - 1147) RSpec::Mocks::Double raises exception if args don't match when method called + 1147) 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/double_spec.rb:216 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:60 - 1148) RSpec::Mocks::Double assigns stub return values + 1148) 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/double_spec.rb:653 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:46 - 1149) RSpec::Mocks::Double does not require a different signature to replace a method stub + 1149) 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/double_spec.rb:596 + # ./spec/rspec/mocks/at_most_spec.rb:27 - 1150) RSpec::Mocks::Double warns when `and_return` is called on a negative expectation + 1150) 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/double_spec.rb:109 + # ./spec/rspec/mocks/at_most_spec.rb:117 - 1151) RSpec::Mocks::Double generates the correct error when an unfulfilled expectation uses an unused double as a `with` argument + 1151) 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/double_spec.rb:38 + # ./spec/rspec/mocks/at_most_spec.rb:91 - 1152) RSpec::Mocks::Double does not mess with the stub's yielded values when also doubleed + 1152) 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/double_spec.rb:635 + # ./spec/rspec/mocks/at_most_spec.rb:14 - 1153) RSpec::Mocks::Double fails when calling yielding method with wrong arity + 1153) 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/double_spec.rb:520 + # ./spec/rspec/mocks/at_most_spec.rb:108 - 1154) RSpec::Mocks::Double fails when args are expected but none are received + 1154) 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/double_spec.rb:416 + # ./spec/rspec/mocks/at_most_spec.rb:56 - 1155) RSpec::Mocks::Double raises a given instance of an exception + 1155) 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/double_spec.rb:362 + # ./spec/rspec/mocks/at_most_spec.rb:8 - 1156) RSpec::Mocks::Double responds to to_ary as a null object + 1156) 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/double_spec.rb:302 + # ./spec/rspec/mocks/at_most_spec.rb:67 - 1157) RSpec::Mocks::Double raises RuntimeError by default + 1157) 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/double_spec.rb:342 + # ./spec/rspec/mocks/at_most_spec.rb:49 - 1158) RSpec::Mocks::Double is wrappable in an array when a null object + 1158) 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/double_spec.rb:296 + # ./spec/rspec/mocks/at_most_spec.rb:21 - 1159) RSpec::Mocks::Double fails on no args if any args received + 1159) 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/double_spec.rb:409 + # ./spec/rspec/mocks/at_most_spec.rb:75 - 1160) RSpec::Mocks::Double allows string representation of methods in constructor + 1160) 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/double_spec.rb:47 + # ./spec/rspec/mocks/at_most_spec.rb:32 - 1161) RSpec::Mocks::Double yields 0 args multiple times to blocks that take a variable number of arguments + 1161) 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/double_spec.rb:438 + # ./spec/rspec/mocks/at_most_spec.rb:43 - 1162) RSpec::Mocks::Double passes when not receiving message specified as not to be received + 1162) 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/double_spec.rb:98 + # ./spec/rspec/mocks/at_most_spec.rb:38 - 1163) RSpec::Mocks::Double passes proc to expectation block with an argument + 1163) 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/double_spec.rb:321 + # ./spec/rspec/mocks/at_most_spec.rb:61 - 1164) RSpec::Mocks::Double returns nil if no return value is set and there is no previously stubbed value + 1164) 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/double_spec.rb:210 + # ./spec/rspec/mocks/at_most_spec.rb:81 - 1165) RSpec::Mocks::Double does not respond_to? method_missing (because it's private) + 1165) 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/double_spec.rb:11 + # ./spec/rspec/mocks/at_most_spec.rb:100 - 1166) RSpec::Mocks::Double raises exception if args don't match when method called even when the method is stubbed + 1166) 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/double_spec.rb:234 + # ./spec/rspec/mocks/at_most_spec.rb:128 - 1167) RSpec::Mocks::Double yields two values + 1167) 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/double_spec.rb:501 + # ./spec/support/before_all_shared_example_group.rb:11 - 1168) RSpec::Mocks::Double yields one arg to blocks that take a variable number of arguments + 1168) 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/double_spec.rb:447 + # ./spec/support/before_all_shared_example_group.rb:11 - 1169) RSpec::Mocks::Double yields many args 3 times consecutively to blocks that take a variable number of arguments + 1169) 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/double_spec.rb:473 + # ./spec/support/before_all_shared_example_group.rb:11 - 1170) RSpec::Mocks::Double passes proc to expectation block without an argument + 1170) 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/double_spec.rb:316 + # ./spec/support/before_all_shared_example_group.rb:11 - 1171) RSpec::Mocks::Double fails right away when method defined as never is received + 1171) 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/double_spec.rb:336 + # ./spec/rspec/mocks/before_all_spec.rb:30 - 1172) RSpec::Mocks::Double yields 0 args to blocks that take a variable number of arguments + 1172) 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/double_spec.rb:430 + # ./spec/support/before_all_shared_example_group.rb:11 - 1173) RSpec::Mocks::Double does not get confused when a positive expectation is used with a string and symbol message + 1173) 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/double_spec.rb:187 + # ./spec/support/before_all_shared_example_group.rb:11 - 1174) RSpec::Mocks::Double is able to double send + 1174) 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/double_spec.rb:553 + # ./spec/support/before_all_shared_example_group.rb:11 - 1175) RSpec::Mocks::Double raises exception if args don't match when method called even when using null_object + 1175) 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/double_spec.rb:243 + # ./spec/rspec/mocks/before_all_spec.rb:10 - 1176) RSpec::Mocks::Double allows `send` to be stubbed + 1176) 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/double_spec.rb:71 + # ./spec/support/before_all_shared_example_group.rb:11 - 1177) RSpec::Mocks::Double fails when receiving message specified as not to be received + 1177) 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/double_spec.rb:130 + # ./spec/rspec/mocks/should_syntax_spec.rb:574 - 1178) RSpec::Mocks::Double temporarily replaces a method stub on a non-double + 1178) .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/double_spec.rb:611 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:73 - 1179) RSpec::Mocks::Double returns the stubbed value when no new value specified + 1179) .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/double_spec.rb:621 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:85 - 1180) RSpec::Mocks::Double responds to to_a as a null object + 1180) .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/double_spec.rb:306 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:66 - 1181) RSpec::Mocks::Double allows `class` to be stubbed even when `any_instance` has already been used + 1181) .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/double_spec.rb:60 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:56 - 1182) RSpec::Mocks::Double reports line number of expectation of unreceived message + 1182) .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/double_spec.rb:77 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:91 - 1183) RSpec::Mocks::Double does not get string vs symbol messages confused + 1183) .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/double_spec.rb:31 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:79 - 1184) RSpec::Mocks::Double fails if expectation block fails + 1184) .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/double_spec.rb:280 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:102 - 1185) RSpec::Mocks::Double raises a given instance of an exception with arguments other than the standard 'message' + 1185) 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/double_spec.rb:375 + # ./spec/rspec/mocks/double_spec.rb:400 - 1186) RSpec::Mocks::Double reports line number of expectation of unreceived message after a message expectation after similar stub + 1186) 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/double_spec.rb:87 + # ./spec/rspec/mocks/double_spec.rb:25 - 1187) RSpec::Mocks::Double restores objects to their original state on rspec_reset + 1187) 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/double_spec.rb:580 + # ./spec/rspec/mocks/double_spec.rb:203 - 1188) RSpec::Mocks::Double is wrappable in an array + 1188) 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/double_spec.rb:290 + # ./spec/rspec/mocks/double_spec.rb:536 - 1189) RSpec::Mocks::Double double created with no name does respond to initially stubbed methods + 1189) 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/double_spec.rb:744 + # ./spec/rspec/mocks/double_spec.rb:77 - 1190) RSpec::Mocks::Double double created with no name does not use a name in a failure message + 1190) 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/double_spec.rb:739 + # ./spec/rspec/mocks/double_spec.rb:430 - 1191) 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 + 1191) 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/double_spec.rb:170 + # ./spec/rspec/mocks/double_spec.rb:438 - 1192) 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 + 1192) 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/double_spec.rb:162 + # ./spec/rspec/mocks/double_spec.rb:611 - 1193) RSpec::Mocks::Double a double message receiving a block calls the block after #twice + 1193) 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/double_spec.rb:693 + # ./spec/rspec/mocks/double_spec.rb:342 - 1194) RSpec::Mocks::Double a double message receiving a block supports a block passed to `receive` for `expect` after a similar stub + 1194) 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/double_spec.rb:676 + # ./spec/rspec/mocks/double_spec.rb:465 - 1195) RSpec::Mocks::Double a double message receiving a block calls the block after #times + 1195) 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/double_spec.rb:702 + # ./spec/rspec/mocks/double_spec.rb:409 - 1196) RSpec::Mocks::Double a double message receiving a block calls the block after #ordered + 1196) 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/double_spec.rb:710 + # ./spec/rspec/mocks/double_spec.rb:20 - 1197) RSpec::Mocks::Double a double message receiving a block supports a block passed to `receive` for `expect` + 1197) 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/double_spec.rb:668 + # ./spec/rspec/mocks/double_spec.rb:47 - 1198) RSpec::Mocks::Double a double message receiving a block calls the block after #once + 1198) 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/double_spec.rb:685 + # ./spec/rspec/mocks/double_spec.rb:109 - 1199) RSpec::Mocks::Double#to_str should not respond to #to_str to avoid being coerced to strings by the runtime + 1199) 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/double_spec.rb:730 + # ./spec/rspec/mocks/double_spec.rb:393 - 1200) RSpec::Mocks::Double == sends '== self' to the comparison object + 1200) 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/double_spec.rb:752 + # ./spec/rspec/mocks/double_spec.rb:510 - 1201) 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 + 1201) 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/double_spec.rb:224 + # ./spec/rspec/mocks/double_spec.rb:553 - 1202) RSpec::Mocks::Double with with args with non-matching args fails + 1202) 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/double_spec.rb:772 + # ./spec/rspec/mocks/double_spec.rb:491 - 1203) RSpec::Mocks::Double with with args with non-matching doubles as_null_object fails + 1203) 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/double_spec.rb:794 + # ./spec/rspec/mocks/double_spec.rb:38 - 1204) RSpec::Mocks::Double with with args with matching args passes + 1204) 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/double_spec.rb:765 + # ./spec/rspec/mocks/double_spec.rb:270 - 1205) RSpec::Mocks::Double with with args with non-matching doubles fails + 1205) 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/double_spec.rb:782 + # ./spec/rspec/mocks/double_spec.rb:130 - 1206) RSpec::Mocks::Double with with a block with non-matching args fails + 1206) 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/double_spec.rb:815 + # ./spec/rspec/mocks/double_spec.rb:653 - 1207) RSpec::Mocks::Double with with a block with matching args returns the result of the block + 1207) 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/double_spec.rb:808 + # ./spec/rspec/mocks/double_spec.rb:264 - 1208) RSpec::Mocks::Double string representation generated by #to_s does not contain < because that might lead to invalid HTML in some situations + 1208) 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/double_spec.rb:722 + # ./spec/rspec/mocks/double_spec.rb:302 - 1209) 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 + 1209) 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/double_spec.rb:253 + # ./spec/rspec/mocks/double_spec.rb:423 - 1210) Constructing a verifying double can only be named with a string or a module + 1210) 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/verifying_doubles/construction_spec.rb:162 + # ./spec/rspec/mocks/double_spec.rb:7 - 1211) Constructing a verifying double instance doubles cannot be constructed with a non-module object + 1211) 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/verifying_doubles/construction_spec.rb:18 + # ./spec/rspec/mocks/double_spec.rb:580 - 1212) Constructing a verifying double instance doubles allows named constants to be looked up and declared to verifying double callbacks + 1212) 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/verifying_doubles/construction_spec.rb:29 + # ./spec/rspec/mocks/double_spec.rb:331 - 1213) Constructing a verifying double instance doubles allows anonymous constants to be looked up and declared to verifying double callbacks + 1213) 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/verifying_doubles/construction_spec.rb:40 + # ./spec/rspec/mocks/double_spec.rb:316 - 1214) Constructing a verifying double instance doubles can be constructed with a struct + 1214) 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/verifying_doubles/construction_spec.rb:24 + # ./spec/rspec/mocks/double_spec.rb:596 - 1215) Constructing a verifying double instance doubles allows classes to be customised + 1215) 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/verifying_doubles/construction_spec.rb:52 + # ./spec/rspec/mocks/double_spec.rb:643 - 1216) Constructing a verifying double instance doubles any_instance calls the callback for allow_any_instance_of + 1216) 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/verifying_doubles/construction_spec.rb:85 + # ./spec/rspec/mocks/double_spec.rb:455 - 1217) Constructing a verifying double instance doubles any_instance should not call the callback if verify_partial_doubles is off + 1217) 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/verifying_doubles/construction_spec.rb:93 + # ./spec/rspec/mocks/double_spec.rb:357 - 1218) Constructing a verifying double instance doubles any_instance calls the callback for expect_any_instance_of + 1218) 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/verifying_doubles/construction_spec.rb:77 + # ./spec/rspec/mocks/double_spec.rb:187 - 1219) Constructing a verifying double object doubles declares the class to verifying double callbacks + 1219) 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/verifying_doubles/construction_spec.rb:131 + # ./spec/rspec/mocks/double_spec.rb:336 - 1220) Constructing a verifying double when verify_doubled_constant_names config option is set prevents creation of class doubles for unloaded constants + 1220) 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/verifying_doubles/construction_spec.rb:155 + # ./spec/rspec/mocks/double_spec.rb:87 - 1221) Constructing a verifying double when verify_doubled_constant_names config option is set prevents creation of instance doubles for unloaded constants + 1221) 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/verifying_doubles/construction_spec.rb:149 + # ./spec/rspec/mocks/double_spec.rb:52 - 1222) Constructing a verifying double class doubles declares anonymous modules to verifying double callbacks + 1222) 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/verifying_doubles/construction_spec.rb:119 + # ./spec/rspec/mocks/double_spec.rb:352 - 1223) Constructing a verifying double class doubles declares named modules to verifying double callbacks + 1223) 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/verifying_doubles/construction_spec.rb:110 + # ./spec/rspec/mocks/double_spec.rb:416 - 1224) Constructing a verifying double class doubles cannot be constructed with a non-module object + 1224) 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/verifying_doubles/construction_spec.rb:104 + # ./spec/rspec/mocks/double_spec.rb:243 - 1225) allow_any_instance_of(...).to receive_messages(:a => 1, :b => 2) updates stubs on instances with existing stubs + 1225) 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/matchers/receive_messages_spec.rb:55 + # ./spec/rspec/mocks/double_spec.rb:197 - 1226) allow_any_instance_of(...).to receive_messages(:a => 1, :b => 2) allows the object to respond to multiple messages + 1226) 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/matchers/receive_messages_spec.rb:49 + # ./spec/rspec/mocks/double_spec.rb:473 - 1227) allow_any_instance_of(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given + 1227) 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/matchers/receive_messages_spec.rb:4 + # ./spec/rspec/mocks/double_spec.rb:447 - 1228) 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 + 1228) 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_messages_spec.rb:10 + # ./spec/rspec/mocks/double_spec.rb:296 - 1229) at_least fails when at least thrice method is called less than three times + 1229) 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/at_least_spec.rb:45 + # ./spec/rspec/mocks/double_spec.rb:98 - 1230) at_least fails when at least twice method is called once + 1230) 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/at_least_spec.rb:30 + # ./spec/rspec/mocks/double_spec.rb:306 - 1231) at_least returns the value given by a block when the at least once method is called + 1231) 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/at_least_spec.rb:118 + # ./spec/rspec/mocks/double_spec.rb:628 - 1232) at_least passes when at least thrice method is called four times + 1232) 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/at_least_spec.rb:109 + # ./spec/rspec/mocks/double_spec.rb:621 - 1233) at_least passes when at least n times method is called exactly n times + 1233) 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/at_least_spec.rb:54 + # ./spec/rspec/mocks/double_spec.rb:15 - 1234) at_least fails if method is never called + 1234) 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/at_least_spec.rb:6 + # ./spec/rspec/mocks/double_spec.rb:347 - 1235) at_least prefers its own return value over a stub + 1235) 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/at_least_spec.rb:139 + # ./spec/rspec/mocks/double_spec.rb:123 - 1236) at_least passes when at least once method is called twice + 1236) 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/at_least_spec.rb:79 + # ./spec/rspec/mocks/double_spec.rb:150 - 1237) at_least fails when called less than n times + 1237) 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/at_least_spec.rb:13 + # ./spec/rspec/mocks/double_spec.rb:290 - 1238) at_least fails when at least once method is never called + 1238) 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/at_least_spec.rb:23 + # ./spec/rspec/mocks/double_spec.rb:501 - 1239) at_least fails when at least twice method is never called + 1239) 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/at_least_spec.rb:38 + # ./spec/rspec/mocks/double_spec.rb:571 - 1240) at_least passes when at least twice method is called three times + 1240) 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/at_least_spec.rb:86 + # ./spec/rspec/mocks/double_spec.rb:605 - 1241) at_least uses a stub value if no value set + 1241) 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/at_least_spec.rb:132 + # ./spec/rspec/mocks/double_spec.rb:528 - 1242) at_least passes when at least twice method is called twice + 1242) 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/at_least_spec.rb:94 + # ./spec/rspec/mocks/double_spec.rb:362 - 1243) at_least passes when at least once method is called once + 1243) 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/at_least_spec.rb:73 + # ./spec/rspec/mocks/double_spec.rb:559 - 1244) at_least passes when at least thrice method is called three times + 1244) 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/at_least_spec.rb:101 + # ./spec/rspec/mocks/double_spec.rb:31 - 1245) at_least passes when at least n times method is called n plus 1 times + 1245) 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/at_least_spec.rb:63 + # ./spec/rspec/mocks/double_spec.rb:11 - 1246) at_least when called with negative expectation raises an error + 1246) 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/at_least_spec.rb:147 + # ./spec/rspec/mocks/double_spec.rb:210 - 1247) at_least when sent with 0 outputs a removal message + 1247) 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/at_least_spec.rb:125 + # ./spec/rspec/mocks/double_spec.rb:386 - 1248) 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 + 1248) 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/and_yield_spec.rb:7 + # ./spec/rspec/mocks/double_spec.rb:103 - 1249) 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 + 1249) 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/and_yield_spec.rb:35 + # ./spec/rspec/mocks/double_spec.rb:178 - 1250) RSpec::Mocks::Double#and_yield with eval context as block argument passes an eval context object to the supplied block + 1250) 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/and_yield_spec.rb:29 + # ./spec/rspec/mocks/double_spec.rb:326 - 1251) RSpec::Mocks::Double#and_yield with eval context as block argument evaluates the supplied block as it is read + 1251) 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/and_yield_spec.rb:21 + # ./spec/rspec/mocks/double_spec.rb:587 - 1252) 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 + 1252) 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/and_yield_spec.rb:66 + # ./spec/rspec/mocks/double_spec.rb:71 - 1253) 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 + 1253) 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/and_yield_spec.rb:52 + # ./spec/rspec/mocks/double_spec.rb:321 - 1254) 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 + 1254) 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/and_yield_spec.rb:139 + # ./spec/rspec/mocks/double_spec.rb:635 - 1255) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments can yield to a block that uses `super` + 1255) 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/and_yield_spec.rb:128 + # ./spec/rspec/mocks/double_spec.rb:546 - 1256) 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 + 1256) 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/and_yield_spec.rb:84 + # ./spec/rspec/mocks/double_spec.rb:375 - 1257) 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 + 1257) 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/and_yield_spec.rb:114 + # ./spec/rspec/mocks/double_spec.rb:520 - 1258) 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 + 1258) 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/and_yield_spec.rb:103 + # ./spec/rspec/mocks/double_spec.rb:140 - 1259) RSpec::Mocks::Space only adds an instance once + 1259) 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/space_spec.rb:120 + # ./spec/rspec/mocks/double_spec.rb:280 - 1260) RSpec::Mocks::Space can be diffed in a failure when it has references to an error generator via a proxy + 1260) 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/space_spec.rb:229 + # ./spec/rspec/mocks/double_spec.rb:216 - 1261) RSpec::Mocks::Space tracks proxies in parent and child space separately + 1261) 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/space_spec.rb:108 + # ./spec/rspec/mocks/double_spec.rb:483 - 1262) RSpec::Mocks::Space raises ArgumentError with message if object is symbol + 1262) 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/space_spec.rb:241 + # ./spec/rspec/mocks/double_spec.rb:60 - 1263) RSpec::Mocks::Space#any_instance_recorder_for can still return a recorder from a parent context + 1263) 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/space_spec.rb:212 + # ./spec/rspec/mocks/double_spec.rb:234 - 1264) RSpec::Mocks::Space#any_instance_recorder_for does not store a parent's proxy in the child space + 1264) 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/space_spec.rb:219 + # ./spec/rspec/mocks/double_spec.rb:739 - 1265) RSpec::Mocks::Space#any_instance_recorder_for returns the recorder for the given class + 1265) 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/space_spec.rb:206 + # ./spec/rspec/mocks/double_spec.rb:744 - 1266) RSpec::Mocks::Space#proxy_for returns the proxy for the given object + 1266) 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/space_spec.rb:138 + # ./spec/rspec/mocks/double_spec.rb:794 - 1267) RSpec::Mocks::Space#proxy_for can still return a proxy from a parent context + 1267) 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/space_spec.rb:147 + # ./spec/rspec/mocks/double_spec.rb:782 - 1268) RSpec::Mocks::Space#proxy_for does not store a parent's proxy in the child space + 1268) 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/space_spec.rb:154 + # ./spec/rspec/mocks/double_spec.rb:765 - 1269) RSpec::Mocks::Space#constant_mutator_for can still return a mutator from a parent context + 1269) 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/space_spec.rb:192 + # ./spec/rspec/mocks/double_spec.rb:772 - 1270) RSpec::Mocks::Space#constant_mutator_for returns the mutator for the given const name + 1270) 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/space_spec.rb:182 + # ./spec/rspec/mocks/double_spec.rb:808 - 1271) RSpec::Mocks::Space#registered? returns true if registered in this space + 1271) 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/space_spec.rb:166 + # ./spec/rspec/mocks/double_spec.rb:815 - 1272) RSpec::Mocks::Space#registered? returns false if not registered in this or a parent space + 1272) 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/space_spec.rb:176 + # ./spec/rspec/mocks/double_spec.rb:730 - 1273) RSpec::Mocks::Space#registered? returns true if registered in a parent space + 1273) 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/space_spec.rb:171 + # ./spec/rspec/mocks/double_spec.rb:722 - 1274) RSpec::Mocks::Space#ensure_registered does not store a parent's proxy in the child space + 1274) 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/space_spec.rb:154 + # ./spec/rspec/mocks/double_spec.rb:693 - 1275) RSpec::Mocks::Space#ensure_registered returns the proxy for the given object + 1275) 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/space_spec.rb:138 + # ./spec/rspec/mocks/double_spec.rb:685 - 1276) RSpec::Mocks::Space#ensure_registered can still return a proxy from a parent context + 1276) 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/space_spec.rb:147 + # ./spec/rspec/mocks/double_spec.rb:676 - 1277) RSpec::Mocks::Space#reset_all allows Array#reverse to be stubbed + 1277) 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/space_spec.rb:61 + # ./spec/rspec/mocks/double_spec.rb:668 - 1278) RSpec::Mocks::Space#reset_all resets all mocks within + 1278) 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/space_spec.rb:50 + # ./spec/rspec/mocks/double_spec.rb:702 - 1279) RSpec::Mocks::Space#proxies_of(klass) returns proxies + 1279) 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/space_spec.rb:69 + # ./spec/rspec/mocks/double_spec.rb:710 - 1280) RSpec::Mocks::Space#proxies_of(klass) looks in the parent space for matching proxies + 1280) 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/space_spec.rb:97 + # ./spec/rspec/mocks/double_spec.rb:253 - 1281) RSpec::Mocks::Space#proxies_of(klass) returns only the proxies whose object is an instance of the given class + 1281) 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/space_spec.rb:86 + # ./spec/rspec/mocks/double_spec.rb:170 - 1282) RSpec::Mocks::Space#verify_all does not reset the proxies (as that should be delayed until reset_all) + 1282) 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/space_spec.rb:39 + # ./spec/rspec/mocks/double_spec.rb:162 - 1283) RSpec::Mocks::Space#verify_all verifies all any_instance recorders within + 1283) 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/space_spec.rb:25 + # ./spec/rspec/mocks/double_spec.rb:752 - 1284) RSpec::Mocks::Space#verify_all verifies all mocks within + 1284) 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/space_spec.rb:9 + # ./spec/rspec/mocks/double_spec.rb:224 - 1285) #once passes when called once with specified args + 1285) 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/once_counts_spec.rb:14 + # ./spec/rspec/mocks/test_double_spec.rb:34 - 1286) #once fails fast when called twice + 1286) 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/once_counts_spec.rb:34 + # ./spec/rspec/mocks/test_double_spec.rb:34 - 1287) #once passes when called once with unspecified args + 1287) 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/once_counts_spec.rb:20 + # ./spec/rspec/mocks/test_double_spec.rb:17 - 1288) #once fails when called with wrong args + 1288) 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/once_counts_spec.rb:26 + # ./spec/rspec/mocks/test_double_spec.rb:12 - 1289) #once fails when not called + 1289) RSpec::Mocks::TestDouble#freeze returns the instance of the test double # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/once_counts_spec.rb:42 + # ./spec/rspec/mocks/test_double_spec.rb:27 - 1290) #once passes when called once + 1290) 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/once_counts_spec.rb:8 + # ./spec/rspec/mocks/test_double_spec.rb:7 - 1291) #once when called with negative expectation raises an error + 1291) RSpec::Mocks::TestDouble with syntax [:expect] stubs the methods passed in the stubs hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/once_counts_spec.rb:73 + # ./spec/rspec/mocks/test_double_spec.rb:48 - 1292) #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 + 1292) 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/once_counts_spec.rb:50 + # ./spec/rspec/mocks/test_double_spec.rb:48 - 1293) Test doubles format well in failure messages formats the doubles when they appear in data structures and diffs + 1293) 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/formatting_spec.rb:94 + # ./spec/rspec/mocks/test_double_spec.rb:48 - 1294) Test doubles format well in failure messages `class_double(SomeClass)` without a name # + 1294) 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/formatting_spec.rb:74 + # ./spec/rspec/mocks/serialization_spec.rb:84 - 1295) Test doubles format well in failure messages `class_double(SomeClass)` with a name # + 1295) 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/formatting_spec.rb:68 + # ./spec/rspec/mocks/serialization_spec.rb:43 - 1296) Test doubles format well in failure messages `double` avoids sending `instance_variable_get` to the double as it may be stubbed + 1296) 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/formatting_spec.rb:39 + # ./spec/rspec/mocks/serialization_spec.rb:47 - 1297) Test doubles format well in failure messages `double` without a name # + 1297) 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/formatting_spec.rb:34 + # ./spec/rspec/mocks/serialization_spec.rb:77 - 1298) Test doubles format well in failure messages `double` with a name # + 1298) 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/formatting_spec.rb:24 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:31 - 1299) Test doubles format well in failure messages `double` with a name formats the name as a symbol if that was how it was provided + 1299) 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/formatting_spec.rb:28 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:17 - 1300) Test doubles format well in failure messages `object_double([])` without a name # + 1300) 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/formatting_spec.rb:88 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:10 - 1301) Test doubles format well in failure messages `object_double([])` with a name # + 1301) 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/formatting_spec.rb:82 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:25 - 1302) Test doubles format well in failure messages `instance_double(SomeClass)` avoids sending `instance_variable_get` to the double as it may be stubbed + 1302) 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/formatting_spec.rb:59 + # ./spec/rspec/mocks/error_generator_spec.rb:31 - 1303) Test doubles format well in failure messages `instance_double(SomeClass)` with a name # + 1303) 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/formatting_spec.rb:48 + # ./spec/rspec/mocks/error_generator_spec.rb:42 - 1304) Test doubles format well in failure messages `instance_double(SomeClass)` without a name # + 1304) 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/formatting_spec.rb:54 + # ./spec/rspec/mocks/error_generator_spec.rb:52 - 1305) After a test double has been torn down for a plain double disallows previously mocked methods + 1305) 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/expiration_spec.rb:15 + # ./spec/rspec/mocks/error_generator_spec.rb:79 - 1306) After a test double has been torn down for a plain double disallows being turned into a null object + 1306) 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/expiration_spec.rb:47 + # ./spec/rspec/mocks/error_generator_spec.rb:62 - 1307) After a test double has been torn down for a plain double disallows being checked for nullness + 1307) 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/expiration_spec.rb:51 + # ./spec/rspec/mocks/error_generator_spec.rb:15 - 1308) After a test double has been torn down for a plain double disallows stubbing new methods (with receive_messages) + 1308) 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/expiration_spec.rb:29 + # ./spec/rspec/mocks/matchers/receive_spec.rb:636 - 1309) After a test double has been torn down for a plain double disallows stubbing new methods (with receive) + 1309) 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/expiration_spec.rb:23 + # ./spec/rspec/mocks/matchers/receive_spec.rb:233 - 1310) After a test double has been torn down for a plain double disallows stubbing new message chains + 1310) 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/expiration_spec.rb:35 + # ./spec/rspec/mocks/matchers/receive_spec.rb:63 - 1311) After a test double has been torn down for a plain double disallows previously stubbed methods + 1311) 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/expiration_spec.rb:19 + # ./spec/rspec/mocks/matchers/receive_spec.rb:54 - 1312) After a test double has been torn down for a plain double disallows mocking new methods + 1312) 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/expiration_spec.rb:41 + # ./spec/rspec/mocks/matchers/receive_spec.rb:169 - 1313) After a test double has been torn down for an object_double disallows stubbing new methods (with receive_messages) + 1313) 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/expiration_spec.rb:29 + # ./spec/rspec/mocks/matchers/receive_spec.rb:203 - 1314) After a test double has been torn down for an object_double disallows mocking new methods + 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/expiration_spec.rb:41 + # ./spec/rspec/mocks/matchers/receive_spec.rb:221 - 1315) After a test double has been torn down for an object_double disallows stubbing new message chains + 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/expiration_spec.rb:35 + # ./spec/rspec/mocks/matchers/receive_spec.rb:177 - 1316) After a test double has been torn down for an object_double disallows previously mocked methods + 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/expiration_spec.rb:15 + # ./spec/rspec/mocks/matchers/receive_spec.rb:211 - 1317) After a test double has been torn down for an object_double disallows being checked for nullness + 1317) 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/expiration_spec.rb:51 + # ./spec/rspec/mocks/matchers/receive_spec.rb:197 - 1318) After a test double has been torn down for an object_double disallows being turned into a null object + 1318) 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/expiration_spec.rb:47 + # ./spec/rspec/mocks/matchers/receive_spec.rb:191 - 1319) After a test double has been torn down for an object_double disallows stubbing new methods (with receive) + 1319) 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/expiration_spec.rb:23 + # ./spec/rspec/mocks/matchers/receive_spec.rb:49 - 1320) After a test double has been torn down for an object_double disallows previously stubbed methods + 1320) 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/expiration_spec.rb:19 + # ./spec/rspec/mocks/matchers/receive_spec.rb:182 - 1321) After a test double has been torn down for an instance_double disallows being checked for nullness + 1321) 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/expiration_spec.rb:51 + # ./spec/rspec/mocks/matchers/receive_spec.rb:106 - 1322) After a test double has been torn down for an instance_double disallows stubbing new message chains + 1322) 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/expiration_spec.rb:35 + # ./spec/rspec/mocks/matchers/receive_spec.rb:118 - 1323) After a test double has been torn down for an instance_double disallows previously stubbed methods + 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 hash with a hash # 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/matchers/receive_spec.rb:153 - 1324) After a test double has been torn down for an instance_double disallows previously mocked methods + 1324) 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/expiration_spec.rb:15 + # ./spec/rspec/mocks/matchers/receive_spec.rb:133 - 1325) After a test double has been torn down for an instance_double disallows mocking new methods + 1325) 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/expiration_spec.rb:41 + # ./spec/rspec/mocks/matchers/receive_spec.rb:90 - 1326) After a test double has been torn down for an instance_double disallows stubbing new methods (with receive_messages) + 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/expiration_spec.rb:29 + # ./spec/rspec/mocks/matchers/receive_spec.rb:126 - 1327) After a test double has been torn down for an instance_double disallows stubbing new methods (with receive) + 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 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/expiration_spec.rb:23 + # ./spec/rspec/mocks/matchers/receive_spec.rb:98 - 1328) After a test double has been torn down for an instance_double disallows being turned into a null object + 1328) 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/expiration_spec.rb:47 + # ./spec/rspec/mocks/matchers/receive_spec.rb:81 - 1329) After a test double has been torn down for a class_double disallows previously stubbed methods + 1329) 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/expiration_spec.rb:19 + # ./spec/rspec/mocks/matchers/receive_spec.rb:159 - 1330) After a test double has been torn down for a class_double disallows stubbing new methods (with receive) + 1330) 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/expiration_spec.rb:23 + # ./spec/rspec/mocks/matchers/receive_spec.rb:417 - 1331) After a test double has been torn down for a class_double disallows stubbing new methods (with receive_messages) + 1331) 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/expiration_spec.rb:29 + # ./spec/rspec/mocks/matchers/receive_spec.rb:337 - 1332) After a test double has been torn down for a class_double disallows stubbing new message chains + 1332) 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/expiration_spec.rb:35 + # ./spec/rspec/mocks/matchers/receive_spec.rb:382 - 1333) After a test double has been torn down for a class_double disallows previously mocked methods + 1333) 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/expiration_spec.rb:15 + # ./spec/rspec/mocks/matchers/receive_spec.rb:375 - 1334) After a test double has been torn down for a class_double disallows being checked for nullness + 1334) 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/expiration_spec.rb:51 + # ./spec/rspec/mocks/matchers/receive_spec.rb:395 - 1335) After a test double has been torn down for a class_double disallows being turned into a null object + 1335) 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/expiration_spec.rb:47 + # ./spec/rspec/mocks/matchers/receive_spec.rb:360 - 1336) After a test double has been torn down for a class_double disallows mocking new methods + 1336) 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/expiration_spec.rb:41 + # ./spec/rspec/mocks/matchers/receive_spec.rb:451 - 1337) A partial class mock that has been subclassed cleans up stubs during #reset to prevent leakage onto subclasses between examples + 1337) 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/partial_double_spec.rb:278 + # ./spec/rspec/mocks/matchers/receive_spec.rb:446 - 1338) A partial class mock that has been subclassed stubbing a base class class method returns the value for the stub on the base class + 1338) 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/partial_double_spec.rb:292 + # ./spec/rspec/mocks/matchers/receive_spec.rb:431 - 1339) A partial class mock that has been subclassed stubbing a base class class method returns the value for the descendent class + 1339) 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/partial_double_spec.rb:296 + # ./spec/rspec/mocks/matchers/receive_spec.rb:439 - 1340) #null_object? defaults to false + 1340) 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/null_object_double_spec.rb:120 + # ./spec/rspec/mocks/matchers/receive_spec.rb:704 - 1341) a double declaration with a block handed to: twice returns the value of executing the block + 1341) 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/block_return_value_spec.rb:53 + # ./spec/rspec/mocks/matchers/receive_spec.rb:696 - 1342) a double declaration with a block handed to: ordered returns the value of executing the block + 1342) 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/block_return_value_spec.rb:62 + # ./spec/rspec/mocks/matchers/receive_spec.rb:672 - 1343) a double declaration with a block handed to: allow(...).to receive forwards all given args to the block, even when it receives a block + 1343) 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/block_return_value_spec.rb:27 + # ./spec/rspec/mocks/matchers/receive_spec.rb:662 - 1344) a double declaration with a block handed to: allow(...).to receive returns the value of executing the block + 1344) 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/block_return_value_spec.rb:19 + # ./spec/rspec/mocks/matchers/receive_spec.rb:642 - 1345) a double declaration with a block handed to: once returns the value of executing the block + 1345) 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/block_return_value_spec.rb:53 + # ./spec/rspec/mocks/matchers/receive_spec.rb:652 - 1346) a double declaration with a block handed to: times returns the value of executing the block + 1346) 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/block_return_value_spec.rb:71 + # ./spec/rspec/mocks/matchers/receive_spec.rb:736 - 1347) a double declaration with a block handed to: expect(...).to receive returns the value of executing the block + 1347) 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/block_return_value_spec.rb:3 + # ./spec/rspec/mocks/matchers/receive_spec.rb:730 - 1348) a double declaration with a block handed to: expect(...).to receive works when a multi-return stub has already been set + 1348) 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/block_return_value_spec.rb:9 + # ./spec/rspec/mocks/matchers/receive_spec.rb:652 - 1349) a double declaration with a block handed to: with returns the value of executing the block with given argument + 1349) 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/block_return_value_spec.rb:44 + # ./spec/rspec/mocks/matchers/receive_spec.rb:642 - 1350) a double declaration with a block handed to: with returns the value of executing the block + 1350) 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/block_return_value_spec.rb:38 + # ./spec/rspec/mocks/matchers/receive_spec.rb:672 - 1351) Using rspec-mocks features in before(:all) blocks #allow(...).to receive raises an error with a useful message + 1351) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_spec.rb:662 - 1352) Using rspec-mocks features in before(:all) blocks #hide_const(for a defined const) does not hide the const + 1352) 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/before_all_spec.rb:30 + # ./spec/rspec/mocks/matchers/receive_spec.rb:254 - 1353) Using rspec-mocks features in before(:all) blocks #hide_const(for a defined const) raises an error with a useful message + 1353) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_spec.rb:278 - 1354) Using rspec-mocks features in before(:all) blocks #allow_any_instance_of(...).to receive raises an error with a useful message + 1354) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_spec.rb:260 - 1355) Using rspec-mocks features in before(:all) blocks allow(...).to receive_message_chain raises an error with a useful message + 1355) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_spec.rb:268 - 1356) Using rspec-mocks features in before(:all) blocks #expect_any_instance_of(...).to receive raises an error with a useful message + 1356) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_spec.rb:493 - 1357) Using rspec-mocks features in before(:all) blocks #expect(...).to receive raises an error with a useful message + 1357) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_spec.rb:502 - 1358) Using rspec-mocks features in before(:all) blocks #hide_const(for an undefined const) raises an error with a useful message + 1358) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_spec.rb:203 - 1359) Using rspec-mocks features in before(:all) blocks #stub_const does not stub the const + 1359) 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/before_all_spec.rb:10 + # ./spec/rspec/mocks/matchers/receive_spec.rb:211 - 1360) Using rspec-mocks features in before(:all) blocks #stub_const raises an error with a useful message + 1360) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_spec.rb:49 - 1361) 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 + 1361) 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/multiple_invoke_handler_spec.rb:106 + # ./spec/rspec/mocks/matchers/receive_spec.rb:221 - 1362) 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 + 1362) 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/multiple_invoke_handler_spec.rb:93 + # ./spec/rspec/mocks/matchers/receive_spec.rb:182 - 1363) 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 + 1363) 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/multiple_invoke_handler_spec.rb:100 + # ./spec/rspec/mocks/matchers/receive_spec.rb:63 - 1364) Loading rspec/mocks/standalone exposes the RSpec::Mocks API on `main` + 1364) 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/standalone_spec.rb:7 + # ./spec/rspec/mocks/matchers/receive_spec.rb:177 - 1365) Loading rspec/mocks/standalone does not infect other objects with the RSpec::Mocks API + 1365) 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/standalone_spec.rb:20 + # ./spec/rspec/mocks/matchers/receive_spec.rb:169 - 1366) and_wrap_original on a pure test double raises an error + 1366) 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/and_wrap_original_spec.rb:92 + # ./spec/rspec/mocks/matchers/receive_spec.rb:54 - 1367) and_wrap_original on a pure test double raises an error even if the double object responds to the message + 1367) 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/and_wrap_original_spec.rb:100 + # ./spec/rspec/mocks/matchers/receive_spec.rb:159 - 1368) 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 + 1368) 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/and_wrap_original_spec.rb:66 + # ./spec/rspec/mocks/matchers/receive_spec.rb:98 - 1369) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original ignores previous stubs + 1369) 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/and_wrap_original_spec.rb:52 + # ./spec/rspec/mocks/matchers/receive_spec.rb:126 - 1370) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along any supplied block + 1370) 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/and_wrap_original_spec.rb:45 + # ./spec/rspec/mocks/matchers/receive_spec.rb:118 - 1371) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along the original method + 1371) 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/and_wrap_original_spec.rb:29 + # ./spec/rspec/mocks/matchers/receive_spec.rb:81 - 1372) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along the message arguments + 1372) 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/and_wrap_original_spec.rb:38 + # ./spec/rspec/mocks/matchers/receive_spec.rb:106 - 1373) 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 + 1373) 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/and_wrap_original_spec.rb:22 + # ./spec/rspec/mocks/matchers/receive_spec.rb:90 - 1374) 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 + 1374) 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/and_wrap_original_spec.rb:14 + # ./spec/rspec/mocks/matchers/receive_spec.rb:153 - 1375) 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 + 1375) 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/and_wrap_original_spec.rb:58 + # ./spec/rspec/mocks/matchers/receive_spec.rb:133 - 1376) 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 + 1376) 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/and_wrap_original_spec.rb:22 + # ./spec/rspec/mocks/matchers/receive_spec.rb:337 - 1377) 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 + 1377) 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/and_wrap_original_spec.rb:52 + # ./spec/rspec/mocks/matchers/receive_spec.rb:524 - 1378) 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 + 1378) 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/and_wrap_original_spec.rb:29 + # ./spec/rspec/mocks/matchers/receive_spec.rb:590 - 1379) 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 + 1379) 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/and_wrap_original_spec.rb:14 + # ./spec/rspec/mocks/matchers/receive_spec.rb:568 - 1380) 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 + 1380) 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/and_wrap_original_spec.rb:58 + # ./spec/rspec/mocks/matchers/receive_spec.rb:533 - 1381) 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 + 1381) 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/and_wrap_original_spec.rb:38 + # ./spec/rspec/mocks/matchers/receive_spec.rb:546 - 1382) 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 + 1382) 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/and_wrap_original_spec.rb:45 + # ./spec/rspec/mocks/matchers/receive_spec.rb:360 - 1383) 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 + 1383) 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/and_wrap_original_spec.rb:66 + # ./spec/rspec/mocks/matchers/receive_spec.rb:382 - 1384) RSpec::Mocks::Configuration adds stub and should_receive to the given modules + 1384) 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/configuration_spec.rb:12 + # ./spec/rspec/mocks/matchers/receive_spec.rb:375 - 1385) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax defaults to enabling both the :should and :expect syntaxes + 1385) 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/configuration_spec.rb:36 + # ./spec/rspec/mocks/matchers/receive_spec.rb:395 - 1386) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] adds `any_instance` to every class + 1386) 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/configuration_spec.rb:111 + # ./spec/rspec/mocks/matchers/receive_spec.rb:233 - 1387) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] does not warn about the should syntax + 1387) 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/configuration_spec.rb:123 + # ./spec/rspec/mocks/matchers/receive_spec.rb:197 - 1388) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] reports that both syntaxes are enabled + 1388) 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/configuration_spec.rb:119 + # ./spec/rspec/mocks/matchers/receive_spec.rb:169 - 1389) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] adds the should methods to every object + 1389) 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/configuration_spec.rb:107 + # ./spec/rspec/mocks/matchers/receive_spec.rb:191 - 1390) 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 + 1390) 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/configuration_spec.rb:115 + # ./spec/rspec/mocks/matchers/receive_spec.rb:49 - 1391) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect reports that the syntax is :expect + 1391) 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/configuration_spec.rb:62 + # ./spec/rspec/mocks/matchers/receive_spec.rb:182 - 1392) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect removes the should methods from every object + 1392) 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/configuration_spec.rb:50 + # ./spec/rspec/mocks/matchers/receive_spec.rb:54 - 1393) 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 + 1393) 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/configuration_spec.rb:58 + # ./spec/rspec/mocks/matchers/receive_spec.rb:203 - 1394) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect removes `any_instance` from every class + 1394) 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/configuration_spec.rb:54 + # ./spec/rspec/mocks/matchers/receive_spec.rb:177 - 1395) 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 + 1395) 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/configuration_spec.rb:66 + # ./spec/rspec/mocks/matchers/receive_spec.rb:221 - 1396) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should reports that the syntax is :should + 1396) 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/configuration_spec.rb:88 + # ./spec/rspec/mocks/matchers/receive_spec.rb:63 - 1397) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should does not warn about the should syntax + 1397) 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/configuration_spec.rb:92 + # ./spec/rspec/mocks/matchers/receive_spec.rb:211 - 1398) 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 + 1398) 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/configuration_spec.rb:84 + # ./spec/rspec/mocks/matchers/receive_spec.rb:98 - 1399) 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 + 1399) 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/configuration_spec.rb:97 + # ./spec/rspec/mocks/matchers/receive_spec.rb:118 - 1400) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should adds the should methods to every object + 1400) 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/configuration_spec.rb:76 + # ./spec/rspec/mocks/matchers/receive_spec.rb:90 - 1401) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should adds `any_instance` to every class + 1401) 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/configuration_spec.rb:80 + # ./spec/rspec/mocks/matchers/receive_spec.rb:106 - 1402) RSpec::Mocks::Configuration#when_declaring_verifying_double captures the supplied blocks + 1402) 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/configuration_spec.rb:177 + # ./spec/rspec/mocks/matchers/receive_spec.rb:159 - 1403) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax defaults to enabling both the :should and :expect syntaxes + 1403) 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/configuration_spec.rb:36 + # ./spec/rspec/mocks/matchers/receive_spec.rb:126 - 1404) 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 + 1404) 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/configuration_spec.rb:88 + # ./spec/rspec/mocks/matchers/receive_spec.rb:153 - 1405) 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 + 1405) 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/configuration_spec.rb:92 + # ./spec/rspec/mocks/matchers/receive_spec.rb:133 - 1406) 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 + 1406) 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/configuration_spec.rb:80 + # ./spec/rspec/mocks/matchers/receive_spec.rb:81 - 1407) 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 + 1407) 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/configuration_spec.rb:97 + # ./spec/rspec/mocks/matchers/receive_spec.rb:347 - 1408) 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 + 1408) 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/configuration_spec.rb:84 + # ./spec/rspec/mocks/matchers/receive_spec.rb:301 - 1409) 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 + 1409) 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/configuration_spec.rb:76 + # ./spec/rspec/mocks/matchers/receive_spec.rb:288 - 1410) 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 + 1410) 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/configuration_spec.rb:62 + # ./spec/rspec/mocks/matchers/receive_spec.rb:309 - 1411) 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 + 1411) 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/configuration_spec.rb:50 + # ./spec/rspec/mocks/matchers/receive_spec.rb:322 - 1412) 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 + 1412) 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/configuration_spec.rb:58 + # ./spec/rspec/mocks/matchers/receive_spec.rb:293 - 1413) 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 + 1413) 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/configuration_spec.rb:54 + # ./spec/rspec/mocks/matchers/receive_spec.rb:14 - 1414) 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 + 1414) 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/configuration_spec.rb:66 + # ./spec/rspec/mocks/matchers/receive_spec.rb:19 - 1415) 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 + 1415) 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/configuration_spec.rb:115 + # ./spec/rspec/mocks/matchers/receive_spec.rb:26 - 1416) 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 + 1416) 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/configuration_spec.rb:107 + # ./spec/rspec/mocks/matchers/receive_spec.rb:9 - 1417) 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 + 1417) 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/configuration_spec.rb:119 + # ./spec/rspec/mocks/matchers/receive_spec.rb:758 - 1418) 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 + 1418) 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/configuration_spec.rb:123 + # ./spec/rspec/mocks/matchers/receive_spec.rb:652 - 1419) 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 + 1419) 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/configuration_spec.rb:111 + # ./spec/rspec/mocks/matchers/receive_spec.rb:672 - 1420) Verified double naming object_double behaves like a named verifying double when a name is given as a symbol + 1420) 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/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/matchers/receive_spec.rb:662 - 1421) Verified double naming object_double behaves like a named verifying double when no name is given + 1421) 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/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/matchers/receive_spec.rb:642 - 1422) Verified double naming object_double behaves like a named verifying double when a name is given as a string + 1422) 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/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/matchers/receive_spec.rb:240 - 1423) Verified double naming instance_double behaves like a named verifying double when a name is given as a symbol + 1423) 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/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/matchers/receive_spec.rb:301 - 1424) Verified double naming instance_double behaves like a named verifying double when a name is given as a string + 1424) 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/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/matchers/receive_spec.rb:293 - 1425) Verified double naming instance_double behaves like a named verifying double when no name is given + 1425) 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/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/matchers/receive_spec.rb:309 - 1426) Verified double naming class_spy behaves like a named verifying double when no name is given + 1426) 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/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/matchers/receive_spec.rb:288 - 1427) Verified double naming class_spy behaves like a named verifying double when a name is given as a string + 1427) 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/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/matchers/receive_spec.rb:322 - 1428) Verified double naming class_spy behaves like a named verifying double when a name is given as a symbol + 1428) 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/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/matchers/receive_spec.rb:347 - 1429) Verified double naming instance_spy behaves like a named verifying double when no name is given + 1429) 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/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/matchers/receive_spec.rb:268 - 1430) Verified double naming instance_spy behaves like a named verifying double when a name is given as a symbol + 1430) 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/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/matchers/receive_spec.rb:278 - 1431) Verified double naming instance_spy behaves like a named verifying double when a name is given as a string + 1431) 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/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/matchers/receive_spec.rb:611 - 1432) Verified double naming class_double behaves like a named verifying double when no name is given + 1432) 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/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/matchers/receive_spec.rb:254 - 1433) Verified double naming class_double behaves like a named verifying double when a name is given as a symbol + 1433) 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/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/matchers/receive_spec.rb:260 - 1434) Verified double naming class_double behaves like a named verifying double when a name is given as a string + 1434) 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/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/matchers/receive_spec.rb:177 - 1435) Verified double naming object_spy behaves like a named verifying double when a name is given as a symbol + 1435) 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/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/matchers/receive_spec.rb:211 - 1436) Verified double naming object_spy behaves like a named verifying double when no name is given + 1436) 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/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/matchers/receive_spec.rb:191 - 1437) Verified double naming object_spy behaves like a named verifying double when a name is given as a string + 1437) 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/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/matchers/receive_spec.rb:182 - 1438) stub implementation with variable args execs the block when called + 1438) 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/stub_implementation_spec.rb:21 + # ./spec/rspec/mocks/matchers/receive_spec.rb:197 - 1439) stub implementation with one arg execs the block with that arg when called + 1439) 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/stub_implementation_spec.rb:13 + # ./spec/rspec/mocks/matchers/receive_spec.rb:203 - 1440) stub implementation with no args execs the block when called + 1440) 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/stub_implementation_spec.rb:5 + # ./spec/rspec/mocks/matchers/receive_spec.rb:49 - 1441) #twice passes when called twice + 1441) 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/twice_counts_spec.rb:8 + # ./spec/rspec/mocks/matchers/receive_spec.rb:63 - 1442) #twice fails fast when call count is higher than expected + 1442) 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/twice_counts_spec.rb:29 + # ./spec/rspec/mocks/matchers/receive_spec.rb:54 - 1443) #twice passes when called twice with unspecified args + 1443) 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/twice_counts_spec.rb:22 + # ./spec/rspec/mocks/matchers/receive_spec.rb:169 - 1444) #twice fails when call count is lower than expected + 1444) 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/twice_counts_spec.rb:38 + # ./spec/rspec/mocks/matchers/receive_spec.rb:221 - 1445) #twice fails when called with wrong args on the second call + 1445) 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/twice_counts_spec.rb:54 + # ./spec/rspec/mocks/matchers/receive_spec.rb:133 - 1446) #twice fails when called with wrong args on the first call + 1446) 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/twice_counts_spec.rb:46 + # ./spec/rspec/mocks/matchers/receive_spec.rb:90 - 1447) #twice passes when called twice with specified args + 1447) 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/twice_counts_spec.rb:15 + # ./spec/rspec/mocks/matchers/receive_spec.rb:106 - 1448) #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 + 1448) 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/twice_counts_spec.rb:64 + # ./spec/rspec/mocks/matchers/receive_spec.rb:126 - 1449) #twice when called with negative expectation raises an error + 1449) 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/twice_counts_spec.rb:89 + # ./spec/rspec/mocks/matchers/receive_spec.rb:98 - 1450) 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) + 1450) 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/matchers/have_received_spec.rb:188 + # ./spec/rspec/mocks/matchers/receive_spec.rb:81 - 1451) 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 + 1451) 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/matchers/have_received_spec.rb:195 + # ./spec/rspec/mocks/matchers/receive_spec.rb:159 - 1452) 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 + 1452) 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/matchers/have_received_spec.rb:124 + # ./spec/rspec/mocks/matchers/receive_spec.rb:118 - 1453) 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 + 1453) 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/matchers/have_received_spec.rb:100 + # ./spec/rspec/mocks/matchers/receive_spec.rb:153 - 1454) 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` + 1454) 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/matchers/have_received_spec.rb:134 + # ./spec/rspec/mocks/matchers/receive_spec.rb:240 - 1455) 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 + 1455) 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/have_received_spec.rb:70 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:109 - 1456) 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 + 1456) 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/have_received_spec.rb:54 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:122 - 1457) 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 + 1457) 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/have_received_spec.rb:111 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:116 - 1458) 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 + 1458) 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/matchers/have_received_spec.rb:146 + # ./spec/rspec/mocks/marshal_extension_spec.rb:17 - 1459) 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 + 1459) 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/matchers/have_received_spec.rb:80 + # ./spec/rspec/mocks/marshal_extension_spec.rb:24 - 1460) 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 + 1460) 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/matchers/have_received_spec.rb:62 + # ./spec/rspec/mocks/marshal_extension_spec.rb:36 - 1461) 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 + 1461) 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/matchers/have_received_spec.rb:25 + # ./spec/rspec/mocks/marshal_extension_spec.rb:31 - 1462) 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 + 1462) 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/matchers/have_received_spec.rb:35 + # ./spec/rspec/mocks/marshal_extension_spec.rb:58 - 1463) 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 + 1463) 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/matchers/have_received_spec.rb:43 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:47 - 1464) 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 + 1464) 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/matchers/have_received_spec.rb:156 + # ./spec/rspec/mocks/to_ary_spec.rb:3 - 1465) 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 + 1465) 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/matchers/have_received_spec.rb:90 + # ./spec/rspec/mocks/to_ary_spec.rb:13 - 1466) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received generates a useful description + 1466) 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/matchers/have_received_spec.rb:183 + # ./spec/rspec/mocks/to_ary_spec.rb:44 - 1467) 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 + 1467) 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/matchers/have_received_spec.rb:30 + # ./spec/rspec/mocks/to_ary_spec.rb:8 - 1468) 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 + 1468) 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/have_received_spec.rb:447 + # ./spec/rspec/mocks/to_ary_spec.rb:48 - 1469) 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 + 1469) 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/have_received_spec.rb:484 + # ./spec/rspec/mocks/to_ary_spec.rb:40 - 1470) 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 + 1470) 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/have_received_spec.rb:517 + # ./spec/rspec/mocks/to_ary_spec.rb:31 - 1471) 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 + 1471) 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/have_received_spec.rb:455 + # ./spec/rspec/mocks/to_ary_spec.rb:27 - 1472) 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 + 1472) 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/matchers/have_received_spec.rb:555 + # ./spec/rspec/mocks/to_ary_spec.rb:13 - 1473) 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 + 1473) 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/have_received_spec.rb:560 + # ./spec/rspec/mocks/to_ary_spec.rb:8 - 1474) 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 + 1474) 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/have_received_spec.rb:533 + # ./spec/rspec/mocks/to_ary_spec.rb:3 - 1475) 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 + 1475) 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/have_received_spec.rb:538 + # ./spec/rspec/mocks/to_ary_spec.rb:23 - 1476) 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 + 1476) 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:355 + # ./spec/rspec/mocks/partial_double_spec.rb:318 - 1477) 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 + 1477) 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:369 + # ./spec/rspec/mocks/partial_double_spec.rb:330 - 1478) 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 + 1478) 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:361 + # ./spec/rspec/mocks/partial_double_spec.rb:324 - 1479) 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 + 1479) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks before verifying an allowance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:215 + # ./spec/rspec/mocks/partial_double_spec.rb:432 - 1480) 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 + 1480) 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:221 + # ./spec/rspec/mocks/partial_double_spec.rb:497 - 1481) 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 + 1481) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks before verifying an expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:239 + # ./spec/rspec/mocks/partial_double_spec.rb:421 - 1482) 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 + 1482) when verify_partial_doubles configuration option is set allows the mock to raise an error with yield # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:231 + # ./spec/rspec/mocks/partial_double_spec.rb:566 - 1483) 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 + 1483) 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:273 + # ./spec/rspec/mocks/partial_double_spec.rb:572 - 1484) 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 + 1484) when verify_partial_doubles configuration option is set avoids deadlocks when a proxy is accessed from within a `before_verifying_doubles` callback # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:264 + # ./spec/rspec/mocks/partial_double_spec.rb:443 - 1485) 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 + 1485) when verify_partial_doubles configuration option is set allows private methods to be expected on any_instance expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:247 + # ./spec/rspec/mocks/partial_double_spec.rb:512 - 1486) 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 + 1486) when verify_partial_doubles configuration option is set does not allow a non-existing method to be expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:285 + # ./spec/rspec/mocks/partial_double_spec.rb:487 - 1487) 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 + 1487) when verify_partial_doubles configuration option is set allows valid methods to be expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:420 + # ./spec/rspec/mocks/partial_double_spec.rb:375 - 1488) 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 + 1488) 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:411 + # ./spec/rspec/mocks/partial_double_spec.rb:380 - 1489) 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 + 1489) 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:430 + # ./spec/rspec/mocks/partial_double_spec.rb:491 - 1490) 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 + 1490) when verify_partial_doubles configuration option is set can be temporarily supressed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:389 + # ./spec/rspec/mocks/partial_double_spec.rb:385 - 1491) 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 + 1491) 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:381 + # ./spec/rspec/mocks/partial_double_spec.rb:529 - 1492) 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 + 1492) when verify_partial_doubles configuration option is set can be temporarily supressed and nested # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:398 + # ./spec/rspec/mocks/partial_double_spec.rb:398 - 1493) 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 + 1493) when verify_partial_doubles configuration option is set temporarily supressing partial doubles does not affect normal verifying doubles # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:323 + # ./spec/rspec/mocks/partial_double_spec.rb:413 - 1494) 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 + 1494) 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:327 + # ./spec/rspec/mocks/partial_double_spec.rb:507 - 1495) 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 + 1495) when verify_partial_doubles configuration option is set verifies arity range when receiving a message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:331 + # ./spec/rspec/mocks/partial_double_spec.rb:556 - 1496) 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 + 1496) 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:315 + # ./spec/rspec/mocks/partial_double_spec.rb:541 - 1497) 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 + 1497) when verify_partial_doubles configuration option is set does not allow missing methods to be called on any_instance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:297 + # ./spec/rspec/mocks/partial_double_spec.rb:547 - 1498) 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 + 1498) 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:301 + # ./spec/rspec/mocks/partial_double_spec.rb:502 - 1499) 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 + 1499) 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:343 + # ./spec/rspec/mocks/partial_double_spec.rb:517 - 1500) 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 + 1500) 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:339 + # ./spec/rspec/mocks/partial_double_spec.rb:582 - 1501) 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 + 1501) 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:347 + # ./spec/rspec/mocks/partial_double_spec.rb:626 - 1502) 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 + 1502) 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:174 + # ./spec/rspec/mocks/partial_double_spec.rb:599 - 1503) 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 + 1503) 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:169 + # ./spec/rspec/mocks/partial_double_spec.rb:588 - 1504) 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 + 1504) 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:653 + # ./spec/rspec/mocks/partial_double_spec.rb:611 - 1505) 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 + 1505) 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:571 + # ./spec/rspec/mocks/partial_double_spec.rb:640 - 1506) 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 + 1506) 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:619 + # ./spec/rspec/mocks/partial_double_spec.rb:474 - 1507) 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 + 1507) 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:619 + # ./spec/rspec/mocks/partial_double_spec.rb:462 - 1508) 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 + 1508) 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/matchers/have_received_spec.rb:576 + # ./spec/rspec/mocks/example_methods_spec.rb:25 - 1509) 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 + 1509) 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/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/example_methods_spec.rb:21 - 1510) 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 + 1510) 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/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/example_methods_spec.rb:4 - 1511) 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 + 1511) 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/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/example_methods_spec.rb:31 - 1512) 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 + 1512) 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/matchers/have_received_spec.rb:584 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:81 - 1513) 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 + 1513) 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/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:74 - 1514) 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 + 1514) 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/matchers/have_received_spec.rb:595 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:89 - 1515) 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 + 1515) 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/matchers/have_received_spec.rb:609 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:96 - 1516) 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 + 1516) 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/matchers/have_received_spec.rb:604 + # ./spec/rspec/mocks/configuration_spec.rb:12 - 1517) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available allow(...).to have_received fails because it's nonsensical + 1517) 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/have_received_spec.rb:629 + # ./spec/rspec/mocks/configuration_spec.rb:36 - 1518) 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 + 1518) 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/have_received_spec.rb:645 + # ./spec/rspec/mocks/configuration_spec.rb:115 - 1519) 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 + 1519) 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/have_received_spec.rb:637 + # ./spec/rspec/mocks/configuration_spec.rb:111 - 1520) Expected argument verification (when `#with` is called) when doubling a loaded class does not cover required args when `any_args` is not used + 1520) 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/verifying_doubles/expected_arg_verification_spec.rb:97 + # ./spec/rspec/mocks/configuration_spec.rb:123 - 1521) 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) + 1521) 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/verifying_doubles/expected_arg_verification_spec.rb:128 + # ./spec/rspec/mocks/configuration_spec.rb:107 - 1522) 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 + 1522) 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/verifying_doubles/expected_arg_verification_spec.rb:134 + # ./spec/rspec/mocks/configuration_spec.rb:119 - 1523) 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 + 1523) 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/verifying_doubles/expected_arg_verification_spec.rb:150 + # ./spec/rspec/mocks/configuration_spec.rb:84 - 1524) 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 + 1524) 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/verifying_doubles/expected_arg_verification_spec.rb:119 + # ./spec/rspec/mocks/configuration_spec.rb:80 - 1525) 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 + 1525) 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/verifying_doubles/expected_arg_verification_spec.rb:111 + # ./spec/rspec/mocks/configuration_spec.rb:97 - 1526) 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 + 1526) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should does not warn about the should syntax # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:105 + # ./spec/rspec/mocks/configuration_spec.rb:92 - 1527) 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 + 1527) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should reports that the syntax is :should # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:45 + # ./spec/rspec/mocks/configuration_spec.rb:88 - 1528) 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 + 1528) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should adds the should methods to every object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:37 + # ./spec/rspec/mocks/configuration_spec.rb:76 - 1529) 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 + 1529) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect reports that the syntax is :expect # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:29 + # ./spec/rspec/mocks/configuration_spec.rb:62 - 1530) 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 + 1530) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect adds the expect methods to the example group context # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:58 + # ./spec/rspec/mocks/configuration_spec.rb:58 - 1531) 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 + 1531) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect removes `any_instance` from every class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:66 + # ./spec/rspec/mocks/configuration_spec.rb:54 - 1532) 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 + 1532) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect is a no-op when configured a second time # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:72 + # ./spec/rspec/mocks/configuration_spec.rb:66 - 1533) 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` + 1533) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect removes the should methods from every object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:86 + # ./spec/rspec/mocks/configuration_spec.rb:50 - 1534) 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 + 1534) 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/expected_arg_verification_spec.rb:80 + # ./spec/rspec/mocks/configuration_spec.rb:36 - 1535) Expected argument verification (when `#with` is called) when doubling an unloaded class allows any arguments + 1535) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax when configured to :should adds `any_instance` to every class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:11 + # ./spec/rspec/mocks/configuration_spec.rb:80 - 1536) a message expectation with multiple invoke handlers specifying at_least less than the number of values uses the last return value for subsequent calls + 1536) 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/multiple_invoke_handler_spec.rb:60 + # ./spec/rspec/mocks/configuration_spec.rb:76 - 1537) a message expectation with multiple invoke handlers specifying at_least less than the number of values fails when called less than the specified number + 1537) 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/multiple_invoke_handler_spec.rb:67 + # ./spec/rspec/mocks/configuration_spec.rb:88 - 1538) 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 + 1538) 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/multiple_invoke_handler_spec.rb:82 + # ./spec/rspec/mocks/configuration_spec.rb:97 - 1539) 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 + 1539) 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/multiple_invoke_handler_spec.rb:75 + # ./spec/rspec/mocks/configuration_spec.rb:84 - 1540) OrderGroup #consume keeps returning ordered? expectation until all are returned + 1540) 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/order_group_spec.rb:21 + # ./spec/rspec/mocks/configuration_spec.rb:92 - 1541) OrderGroup #consume returns the first ordered? expectation + 1541) 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/order_group_spec.rb:18 + # ./spec/rspec/mocks/configuration_spec.rb:111 - 1542) a double acting as a null object can be interpolated in a string as an integer + 1542) 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/null_object_double_spec.rb:96 + # ./spec/rspec/mocks/configuration_spec.rb:123 - 1543) a double acting as a null object allows unexpected message sends using `send` + 1543) 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/null_object_double_spec.rb:74 + # ./spec/rspec/mocks/configuration_spec.rb:107 - 1544) a double acting as a null object returns a string from `to_str` + 1544) 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/null_object_double_spec.rb:47 + # ./spec/rspec/mocks/configuration_spec.rb:115 - 1545) a double acting as a null object allows explicit expectation + 1545) 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/null_object_double_spec.rb:42 + # ./spec/rspec/mocks/configuration_spec.rb:119 - 1546) a double acting as a null object says it responds to everything + 1546) 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/null_object_double_spec.rb:33 + # ./spec/rspec/mocks/configuration_spec.rb:50 - 1547) a double acting as a null object allows expected message with different args second + 1547) 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/null_object_double_spec.rb:90 + # ./spec/rspec/mocks/configuration_spec.rb:62 - 1548) a double acting as a null object allows expected message with different args first + 1548) 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/null_object_double_spec.rb:84 + # ./spec/rspec/mocks/configuration_spec.rb:58 - 1549) a double acting as a null object continues to return self from an explicit expectation + 1549) 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/null_object_double_spec.rb:51 + # ./spec/rspec/mocks/configuration_spec.rb:66 - 1550) a double acting as a null object returns an explicitly stubbed value from an expectation with no implementation + 1550) 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/null_object_double_spec.rb:56 + # ./spec/rspec/mocks/configuration_spec.rb:54 - 1551) a double acting as a null object allows explicit stubs + 1551) 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/null_object_double_spec.rb:37 + # ./spec/rspec/mocks/configuration_spec.rb:177 - 1552) a double acting as a null object allows unexpected message sends using `__send__` + 1552) 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/null_object_double_spec.rb:79 + # ./spec/rspec/mocks/standalone_spec.rb:7 - 1553) a double acting as a null object fails verification when explicit exception not met + 1553) 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/null_object_double_spec.rb:62 + # ./spec/rspec/mocks/standalone_spec.rb:20 - 1554) a double acting as a null object does not allow null objects to be used outside of examples + 1554) 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/null_object_double_spec.rb:104 + # ./spec/rspec/mocks/mutate_const_spec.rb:221 - 1555) a double acting as a null object ignores unexpected methods + 1555) 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/null_object_double_spec.rb:69 + # ./spec/rspec/mocks/mutate_const_spec.rb:387 - 1556) when a class method is aliased on a subclass and the method is mocked restores the original aliased public method + 1556) 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/stash_spec.rb:26 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1557) Partially mocking an object that defines ==, after another mock has been defined does not raise an error when stubbing the object + 1557) 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/partial_double_spec.rb:268 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1558) 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) + 1558) 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/error_generator_spec.rb:15 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1559) RSpec::Mocks::ErrorGenerator formatting arguments formats time objects with increased precision + 1559) 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/error_generator_spec.rb:31 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1560) RSpec::Mocks::ErrorGenerator formatting arguments on non-matcher objects that define #description does not use the object's description + 1560) 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/error_generator_spec.rb:42 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 1561) RSpec::Mocks::ErrorGenerator formatting arguments on matcher objects that define description uses the object's description + 1561) 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/error_generator_spec.rb:52 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 1562) RSpec::Mocks::ErrorGenerator formatting arguments on matcher objects on default method stub error message display starts in new line + 1562) 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/error_generator_spec.rb:79 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 1563) RSpec::Mocks::ErrorGenerator formatting arguments on matcher objects that do not define description does not use the object's description + 1563) 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/error_generator_spec.rb:62 + # ./spec/rspec/mocks/mutate_const_spec.rb:418 - 1564) .expect_message accepts a block implementation for the expected message + 1564) 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/syntax_agnostic_message_matchers_spec.rb:85 + # ./spec/rspec/mocks/mutate_const_spec.rb:409 - 1565) .expect_message sets up message expectation with params and return value + 1565) 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/syntax_agnostic_message_matchers_spec.rb:79 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1566) .expect_message fails if never is specified and the message is called + 1566) 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/syntax_agnostic_message_matchers_spec.rb:66 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1567) .expect_message sets up basic message expectation, verifies as uncalled + 1567) 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/syntax_agnostic_message_matchers_spec.rb:56 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1568) .expect_message does not get confused when the string and symbol message form are both used + 1568) 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/syntax_agnostic_message_matchers_spec.rb:91 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1569) .expect_message sets up basic message expectation, verifies as called + 1569) 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/syntax_agnostic_message_matchers_spec.rb:73 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 1570) .expect_message when target cannot be proxied raises ArgumentError with message + 1570) 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/syntax_agnostic_message_matchers_spec.rb:102 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 1571) #thrice fails when called with wrong args on the second call + 1571) 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/thrice_counts_spec.rb:52 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 1572) #thrice fails when call count is lower than expected + 1572) 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/thrice_counts_spec.rb:36 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1573) #thrice passes when called thrice with specified args + 1573) 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/thrice_counts_spec.rb:14 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1574) #thrice passes when called thrice with unspecified args + 1574) 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/thrice_counts_spec.rb:20 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1575) #thrice fails when called with wrong args on the third call + 1575) 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/thrice_counts_spec.rb:61 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1576) #thrice fails fast when call count is higher than expected + 1576) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing returns the stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/thrice_counts_spec.rb:28 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1577) #thrice fails when called with wrong args on the first call + 1577) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/thrice_counts_spec.rb:44 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1578) #thrice passes when called thrice + 1578) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/thrice_counts_spec.rb:8 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1579) #thrice when called with negative expectation raises an error + 1579) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing allows it to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/thrice_counts_spec.rb:72 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1580) and_return when a block is passed raises ArgumentError + 1580) 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/and_return_spec.rb:7 + # ./spec/rspec/mocks/mutate_const_spec.rb:247 - 1581) and_return when no argument is passed raises ArgumentError + 1581) Constant Mutating #stub_const for a loaded unnested constant raises an error when asked to transfer a nested inherited constant # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_return_spec.rb:15 + # ./spec/rspec/mocks/mutate_const_spec.rb:264 - 1582) RSpec::Mocks::InstanceMethodStasher does not unnecessarily create obfuscated aliased methods + 1582) 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/instance_method_stasher_spec.rb:58 + # ./spec/rspec/mocks/mutate_const_spec.rb:256 - 1583) RSpec::Mocks::InstanceMethodStasher only stashes methods directly defined on the given class, not its ancestors + 1583) 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/instance_method_stasher_spec.rb:45 + # ./spec/rspec/mocks/mutate_const_spec.rb:228 - 1584) RSpec::Mocks::InstanceMethodStasher undefines the original method + 1584) 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/instance_method_stasher_spec.rb:67 + # ./spec/rspec/mocks/mutate_const_spec.rb:238 - 1585) RSpec::Mocks::InstanceMethodStasher stashes the current implementation of an instance method so it can be temporarily replaced + 1585) 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/instance_method_stasher_spec.rb:18 + # ./spec/rspec/mocks/mutate_const_spec.rb:282 - 1586) RSpec::Mocks::InstanceMethodStasher stashes private instance methods + 1586) 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/instance_method_stasher_spec.rb:32 + # ./spec/rspec/mocks/mutate_const_spec.rb:313 - 1587) An instance double with the doubled class loaded checks that stubbed methods are invoked with the correct arity + 1587) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:79 + # ./spec/rspec/mocks/mutate_const_spec.rb:298 - 1588) An instance double with the doubled class loaded suggests using `class_double` when a class method is stubbed + 1588) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:33 + # ./spec/rspec/mocks/mutate_const_spec.rb:274 - 1589) An instance double with the doubled class loaded allows keyword arguments + 1589) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:87 + # ./spec/rspec/mocks/mutate_const_spec.rb:332 - 1590) An instance double with the doubled class loaded doesn't suggest `class_double` when a non-class method is stubbed + 1590) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:38 + # ./spec/rspec/mocks/mutate_const_spec.rb:347 - 1591) An instance double with the doubled class loaded checks the arity of stubbed methods + 1591) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:70 + # ./spec/rspec/mocks/mutate_const_spec.rb:342 - 1592) An instance double with the doubled class loaded checks that stubbed methods with required keyword args are invoked with the required arguments + 1592) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:133 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 1593) An instance double with the doubled class loaded only allows instance methods that exist to be expected + 1593) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:20 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 1594) An instance double with the doubled class loaded allows class to be specified by constant + 1594) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:149 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 1595) An instance double with the doubled class loaded allows `send` to be stubbed if it is defined on the class + 1595) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:43 + # ./spec/rspec/mocks/mutate_const_spec.rb:427 - 1596) An instance double with the doubled class loaded only allows instance methods that exist to be stubbed + 1596) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:12 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1597) An instance double with the doubled class loaded validates `with` args against the method signature when stubbing a method + 1597) 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/instance_double_with_class_loaded_spec.rb:142 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1598) An instance double with the doubled class loaded gives a descriptive error message for NoMethodError + 1598) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:49 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1599) An instance double with the doubled class loaded does not allow dynamic methods to be expected + 1599) 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/instance_double_with_class_loaded_spec.rb:57 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1600) 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 + 1600) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:126 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 1601) An instance double with the doubled class loaded for null objects verifies arguments + 1601) Constant Mutating #stub_const for a loaded deeply nested constant behaves like loaded constant stubbing resets it to its original value when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:188 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 1602) An instance double with the doubled class loaded for null objects only allows defined methods + 1602) Constant Mutating #stub_const for a loaded deeply nested constant behaves like loaded constant stubbing allows it to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:181 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 1603) An instance double with the doubled class loaded for null objects reports that it responds to defined private methods when the appropriate arg is passed + 1603) 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/instance_double_with_class_loaded_spec.rb:210 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1604) An instance double with the doubled class loaded for null objects reports what public messages it responds to accurately + 1604) 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/instance_double_with_class_loaded_spec.rb:200 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1605) An instance double with the doubled class loaded for null objects reports that it responds to protected methods when the appropriate arg is passed + 1605) 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/instance_double_with_class_loaded_spec.rb:223 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1606) An instance double with the doubled class loaded for null objects includes the double's name in a private method error + 1606) 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/instance_double_with_class_loaded_spec.rb:194 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1607) An instance double with the doubled class loaded when the class const has been previously stubbed uses the original class to verify against for `instance_double('LoadedClass')` + 1607) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:157 + # ./spec/rspec/mocks/mutate_const_spec.rb:398 - 1608) 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)` + 1608) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:163 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1609) An instance double with the doubled class loaded when given a class that has an overridden `#name` method properly verifies + 1609) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:171 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1610) 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 + 1610) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:93 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1611) 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 + 1611) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:100 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1612) 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 + 1612) Constant Mutating #stub_const for an unloaded constant nested in a module that redefines `send` behaves like unloaded constant stubbing allows it to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:106 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1613) 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 + 1613) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:115 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1614) 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 + 1614) Constant Mutating #stub_const for an unloaded constant nested in a module that redefines `send` behaves like unloaded constant stubbing returns the stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_return_value_spec.rb:109 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1615) 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 + 1615) Constant Mutating #stub_const for an unloaded constant nested in a module that redefines `send` behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_return_value_spec.rb:122 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1616) 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 + 1616) 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/multiple_return_value_spec.rb:116 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 1617) RSpec::Mocks::AnyInstance::MessageChains knows if a method does not have an expectation set on it + 1617) 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/any_instance/message_chains_spec.rb:7 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 1618) RSpec::Mocks::AnyInstance::MessageChains knows if a method has an expectation set on it + 1618) 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/any_instance/message_chains_spec.rb:12 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 1619) RSpec::Mocks::AnyInstance::MessageChains can remove all stub chains + 1619) 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/any_instance/message_chains_spec.rb:18 + # ./spec/rspec/mocks/mutate_const_spec.rb:193 - 1620) RSpec::Mocks::AnyInstance::MessageChains creating stub chains allows multiple stub chains for a method + 1620) 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/any_instance/message_chains_spec.rb:33 + # ./spec/rspec/mocks/mutate_const_spec.rb:202 - 1621) RSpec::Mocks::AnyInstance::MessageChains creating stub chains understands how to add a stub chain for a method + 1621) 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/any_instance/message_chains_spec.rb:28 + # ./spec/rspec/mocks/mutate_const_spec.rb:82 - 1622) only stashing the original method keeps the original method intact after multiple expectations are added on the same method + 1622) 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/stash_spec.rb:12 + # ./spec/rspec/mocks/mutate_const_spec.rb:93 - 1623) Methods added to every object limits the number of methods that get added to all objects + 1623) 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/methods_spec.rb:13 + # ./spec/rspec/mocks/mutate_const_spec.rb:87 - 1624) A partial double names the class in the failure message when expectation is on class + 1624) 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/partial_double_spec.rb:19 + # ./spec/rspec/mocks/mutate_const_spec.rb:87 - 1625) A partial double allows a class and a subclass to both be stubbed + 1625) 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/partial_double_spec.rb:100 + # ./spec/rspec/mocks/mutate_const_spec.rb:82 - 1626) A partial double can accept the string form of a message for a negative message expectation + 1626) 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/partial_double_spec.rb:124 + # ./spec/rspec/mocks/mutate_const_spec.rb:93 - 1627) A partial double shares message expectations with clone + 1627) 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/partial_double_spec.rb:160 + # ./spec/rspec/mocks/mutate_const_spec.rb:166 - 1628) A partial double clears message expectations when `dup`ed + 1628) 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/partial_double_spec.rb:168 + # ./spec/rspec/mocks/mutate_const_spec.rb:139 - 1629) A partial double allows `respond_to?` to be stubbed + 1629) 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/partial_double_spec.rb:46 + # ./spec/rspec/mocks/mutate_const_spec.rb:145 - 1630) A partial double does not conflict with @options in the object + 1630) 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/partial_double_spec.rb:26 + # ./spec/rspec/mocks/mutate_const_spec.rb:134 - 1631) A partial double names the class in the failure message + 1631) 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/partial_double_spec.rb:12 + # ./spec/rspec/mocks/mutate_const_spec.rb:139 - 1632) A partial double verifies the method was called when expecting a message + 1632) 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/partial_double_spec.rb:112 + # ./spec/rspec/mocks/mutate_const_spec.rb:134 - 1633) A partial double allows `class` to be stubbed even when `any_instance` has already been used + 1633) 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/partial_double_spec.rb:32 + # ./spec/rspec/mocks/mutate_const_spec.rb:145 - 1634) 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 + 1634) 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/partial_double_spec.rb:145 + # ./spec/rspec/mocks/mutate_const_spec.rb:82 - 1635) A partial double can accept an inner hash as a message argument + 1635) 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/partial_double_spec.rb:86 + # ./spec/rspec/mocks/mutate_const_spec.rb:93 - 1636) A partial double uses reports nil in the error message + 1636) 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/partial_double_spec.rb:132 + # ./spec/rspec/mocks/mutate_const_spec.rb:87 - 1637) A partial double can expect a message and set a return value + 1637) 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/partial_double_spec.rb:74 + # ./spec/rspec/mocks/mutate_const_spec.rb:87 - 1638) A partial double can disallow messages from being received + 1638) 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/partial_double_spec.rb:64 + # ./spec/rspec/mocks/mutate_const_spec.rb:93 - 1639) A partial double can create a positive message expectation + 1639) 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/partial_double_spec.rb:95 + # ./spec/rspec/mocks/mutate_const_spec.rb:82 - 1640) A partial double does not create an any_instance recorder when a message is allowed + 1640) 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/partial_double_spec.rb:6 + # ./spec/rspec/mocks/mutate_const_spec.rb:139 - 1641) A partial double can accept the string form of a message for a positive message expectation + 1641) 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/partial_double_spec.rb:119 + # ./spec/rspec/mocks/mutate_const_spec.rb:145 - 1642) A partial double can accept a hash as a message argument + 1642) 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/partial_double_spec.rb:79 + # ./spec/rspec/mocks/mutate_const_spec.rb:134 - 1643) with default syntax configuration warns about should not once, regardless of how many times it is called + 1643) 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/should_syntax_spec.rb:487 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:125 - 1644) with default syntax configuration it warns about should once, regardless of how many times it is called + 1644) 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/should_syntax_spec.rb:475 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:132 - 1645) with default syntax configuration includes the call site in the deprecation warning + 1645) 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/should_syntax_spec.rb:564 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:139 - 1646) with default syntax configuration doesn't warn about stubbing after a reset and setting should + 1646) 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/should_syntax_spec.rb:554 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:146 - 1647) with default syntax configuration warns about unstubbing once, regardless of how many times it is called + 1647) 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/should_syntax_spec.rb:541 + # ./spec/rspec/mocks/methods_spec.rb:13 - 1648) with default syntax configuration warns about stubbing once, regardless of how many times it is called + 1648) 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/should_syntax_spec.rb:496 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:93 - 1649) RSpec::Mocks::MessageExpectation has a nice string representation for a message expectation constrained by `with` + 1649) 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/message_expectation_string_representation_spec.rb:18 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:106 - 1650) RSpec::Mocks::MessageExpectation has a nice string representation for a raw message expectation on a partial double + 1650) 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/message_expectation_string_representation_spec.rb:12 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:100 - 1651) RSpec::Mocks::MessageExpectation has a nice string representation for a raw message expectation on a test double + 1651) 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/message_expectation_string_representation_spec.rb:6 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:12 - 1652) 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 + 1652) RSpec::Mocks::AnyInstance::MessageChains can remove all stub chains # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:18 - 1653) 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 + 1653) RSpec::Mocks::AnyInstance::MessageChains knows if a method does not have an expectation set on it # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:7 - 1654) 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 + 1654) RSpec::Mocks::AnyInstance::MessageChains creating stub chains understands how to add a stub chain for a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:28 - 1655) 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 + 1655) RSpec::Mocks::AnyInstance::MessageChains creating stub chains allows multiple stub chains for a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:576 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:33 - 1656) 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 + 1656) 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/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/null_object_double_spec.rb:129 - 1657) 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 + 1657) 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/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/and_call_original_spec.rb:349 - 1658) 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 + 1658) 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/matchers/have_received_spec.rb:584 + # ./spec/rspec/mocks/and_call_original_spec.rb:344 - 1659) 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 + 1659) 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/matchers/have_received_spec.rb:571 + # ./spec/rspec/mocks/and_call_original_spec.rb:124 - 1660) 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 + 1660) 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/matchers/have_received_spec.rb:595 + # ./spec/rspec/mocks/and_call_original_spec.rb:82 - 1661) 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 + 1661) 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/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/and_call_original_spec.rb:70 - 1662) 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 + 1662) 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/matchers/have_received_spec.rb:604 + # ./spec/rspec/mocks/and_call_original_spec.rb:111 - 1663) 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 + 1663) 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/matchers/have_received_spec.rb:609 + # ./spec/rspec/mocks/and_call_original_spec.rb:133 - 1664) 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 + 1664) 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/matchers/have_received_spec.rb:629 + # ./spec/rspec/mocks/and_call_original_spec.rb:76 - 1665) 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 + 1665) 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/matchers/have_received_spec.rb:70 + # ./spec/rspec/mocks/and_call_original_spec.rb:65 - 1666) 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 + 1666) 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/matchers/have_received_spec.rb:146 + # ./spec/rspec/mocks/and_call_original_spec.rb:188 - 1667) 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 + 1667) 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/matchers/have_received_spec.rb:54 + # ./spec/rspec/mocks/and_call_original_spec.rb:213 - 1668) 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 + 1668) 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/matchers/have_received_spec.rb:100 + # ./spec/rspec/mocks/and_call_original_spec.rb:218 - 1669) 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 + 1669) 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/matchers/have_received_spec.rb:156 + # ./spec/rspec/mocks/and_call_original_spec.rb:225 - 1670) 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 + 1670) 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/matchers/have_received_spec.rb:124 + # ./spec/rspec/mocks/and_call_original_spec.rb:117 - 1671) 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 + 1671) 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/matchers/have_received_spec.rb:80 + # ./spec/rspec/mocks/and_call_original_spec.rb:237 - 1672) 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 + 1672) 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/matchers/have_received_spec.rb:30 + # ./spec/rspec/mocks/and_call_original_spec.rb:207 - 1673) 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` + 1673) 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/matchers/have_received_spec.rb:134 + # ./spec/rspec/mocks/and_call_original_spec.rb:90 - 1674) 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 + 1674) 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/matchers/have_received_spec.rb:25 + # ./spec/rspec/mocks/and_call_original_spec.rb:271 - 1675) 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 + 1675) 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/matchers/have_received_spec.rb:90 + # ./spec/rspec/mocks/and_call_original_spec.rb:266 - 1676) 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 + 1676) 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/matchers/have_received_spec.rb:62 + # ./spec/rspec/mocks/and_call_original_spec.rb:195 - 1677) 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 + 1677) 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/matchers/have_received_spec.rb:35 + # ./spec/rspec/mocks/and_call_original_spec.rb:143 - 1678) 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 + 1678) 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/matchers/have_received_spec.rb:43 + # ./spec/rspec/mocks/and_call_original_spec.rb:154 - 1679) 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) + 1679) 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/matchers/have_received_spec.rb:188 + # ./spec/rspec/mocks/and_call_original_spec.rb:168 - 1680) 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 + 1680) 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/matchers/have_received_spec.rb:183 + # ./spec/rspec/mocks/and_call_original_spec.rb:159 - 1681) 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 + 1681) 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/matchers/have_received_spec.rb:195 + # ./spec/rspec/mocks/and_call_original_spec.rb:176 - 1682) 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 + 1682) 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/matchers/have_received_spec.rb:111 + # ./spec/rspec/mocks/and_call_original_spec.rb:149 - 1683) 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 + 1683) 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/matchers/have_received_spec.rb:484 + # ./spec/rspec/mocks/and_call_original_spec.rb:182 - 1684) 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 + 1684) 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/matchers/have_received_spec.rb:517 + # ./spec/rspec/mocks/and_call_original_spec.rb:54 - 1685) 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 + 1685) 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/matchers/have_received_spec.rb:455 + # ./spec/rspec/mocks/and_call_original_spec.rb:103 - 1686) 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 + 1686) 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/matchers/have_received_spec.rb:447 + # ./spec/rspec/mocks/and_call_original_spec.rb:97 - 1687) 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 + 1687) 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/matchers/have_received_spec.rb:533 + # ./spec/rspec/mocks/and_call_original_spec.rb:300 - 1688) 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 + 1688) 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/matchers/have_received_spec.rb:538 + # ./spec/rspec/mocks/and_call_original_spec.rb:305 - 1689) 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 + 1689) 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/matchers/have_received_spec.rb:560 + # ./spec/rspec/mocks/and_call_original_spec.rb:312 - 1690) 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 + 1690) 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/matchers/have_received_spec.rb:555 + # ./spec/rspec/mocks/and_call_original_spec.rb:295 - 1691) 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 + 1691) 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/matchers/have_received_spec.rb:331 + # ./spec/rspec/mocks/and_call_original_spec.rb:46 - 1692) 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 + 1692) 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/matchers/have_received_spec.rb:327 + # ./spec/rspec/mocks/and_call_original_spec.rb:362 - 1693) 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 + 1693) 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/matchers/have_received_spec.rb:323 + # ./spec/rspec/mocks/mock_expectation_error_spec.rb:12 - 1694) 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 + 1694) 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:361 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:43 - 1695) 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 + 1695) 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:369 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:20 - 1696) 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 + 1696) 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:355 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:38 - 1697) 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 + 1697) 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:215 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:50 - 1698) 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 + 1698) 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:273 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:99 - 1699) 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 + 1699) 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:285 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:108 - 1700) 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 + 1700) 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:264 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:57 - 1701) 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 + 1701) 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:247 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:12 - 1702) 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 + 1702) 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:221 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:81 - 1703) 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 + 1703) 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:239 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:115 - 1704) 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 + 1704) 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:231 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:92 - 1705) 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 + 1705) 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:398 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:71 - 1706) 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 + 1706) 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:381 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:76 - 1707) 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 + 1707) 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:389 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:123 - 1708) 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 + 1708) 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:315 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:33 - 1709) 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 + 1709) 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:301 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:64 - 1710) 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 + 1710) 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:297 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:211 - 1711) 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 + 1711) 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:339 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:217 - 1712) 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 + 1712) 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:343 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:184 - 1713) 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 + 1713) 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:347 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:193 - 1714) 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 + 1714) 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:420 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:197 - 1715) 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 + 1715) 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:430 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:135 - 1716) 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 + 1716) 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:411 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:142 - 1717) 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 + 1717) 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:174 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:167 - 1718) 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 + 1718) 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:169 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:154 - 1719) 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 + 1719) 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/matchers/have_received_spec.rb:645 + # ./spec/rspec/mocks/stash_spec.rb:12 - 1720) 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 + 1720) Verified double naming object_double behaves like a named verifying double when a name is given as a string # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:653 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1721) 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 + 1721) Verified double naming object_double behaves like a named verifying double when no name is given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:637 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1722) a message expectation with multiple return values with a specified count equal to the number of values returns values in order to consecutive calls + 1722) 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/multiple_return_value_spec.rb:60 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1723) Failure notification includes the line of future expectation in the notification for an unreceived message + 1723) 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/failure_notification_spec.rb:16 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1724) Failure notification uses the rspec-support notifier to support `aggregate_failures` + 1724) 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/failure_notification_spec.rb:8 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1725) 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 + 1725) 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/failure_notification_spec.rb:24 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1726) Failure notification when using `aggregate_failures` spy failures for messages received with unexpected args are reported correctly + 1726) 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/failure_notification_spec.rb:45 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1727) Failure notification when using `aggregate_failures` failing negative expectations are only notified once + 1727) 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/failure_notification_spec.rb:58 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1728) Failure notification when using `aggregate_failures` spy failures for unreceived messages are reported correctly + 1728) 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/failure_notification_spec.rb:34 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1729) a double stubbed with multiple return values can still set a message expectation with a single return value + 1729) 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:10 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1730) unstubbing with `and_call_original` replaces the stubbed method with the original method + 1730) 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/stub_implementation_spec.rb:30 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1731) unstubbing with `and_call_original` removes all stubs with the supplied method name + 1731) 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/stub_implementation_spec.rb:38 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1732) unstubbing with `and_call_original` does not remove any expectations with the same method name + 1732) 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/stub_implementation_spec.rb:47 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1733) 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 + 1733) 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/stub_implementation_spec.rb:71 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1734) 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 + 1734) 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/stub_implementation_spec.rb:58 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1735) unstubbing with `and_call_original` when partial doubles are verified handles keyword arguments correctly + 1735) 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/stub_implementation_spec.rb:97 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1736) unstubbing with `and_call_original` when partial doubles are verified restores the correct implementations when stubbed and unstubbed on a grandparent and grandchild class + 1736) 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/stub_implementation_spec.rb:71 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1737) unstubbing with `and_call_original` when partial doubles are verified restores the correct implementations when stubbed and unstubbed on a parent and child class + 1737) 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/stub_implementation_spec.rb:58 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1738) #as_null_object sets the object to null_object + 1738) 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/null_object_double_spec.rb:113 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:23 - 1739) negative expectation failure allow_any_instance_of(...).to_not receive_messages(:a => 1, :b => 2) + 1739) 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/matchers/receive_messages_spec.rb:132 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:30 - 1740) negative expectation failure expect_any_instance_of(...).to_not receive_messages(:a => 1, :b => 2) + 1740) 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/matchers/receive_messages_spec.rb:146 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:38 - 1741) negative expectation failure expect(...).to_not receive_messages(:a => 1, :b => 2) + 1741) 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/matchers/receive_messages_spec.rb:139 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:44 - 1742) negative expectation failure allow(...).to_not receive_messages(:a => 1, :b => 2) + 1742) 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/matchers/receive_messages_spec.rb:125 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:112 - 1743) and_invoke when a non-callable are passed in any position raises ArgumentError + 1743) 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/and_invoke_spec.rb:24 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 - 1744) and_invoke when no argument is passed raises ArgumentError + 1744) 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/and_invoke_spec.rb:15 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 - 1745) and_invoke when calling passed callables passes the arguments into the callable + 1745) Expected argument verification (when `#with` is called) when doubling a loaded class does not cover required args when `any_args` is not used # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_invoke_spec.rb:35 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:97 - 1746) and_invoke when a block is passed raises ArgumentError + 1746) Expected argument verification (when `#with` is called) when doubling a loaded class when a list of args is provided allows a method expectation when the arity matches # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_invoke_spec.rb:7 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:105 - 1747) RSpec::Mocks behaves like library wide checks issues no warnings when loaded + 1747) 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/verifying_doubles/expected_arg_verification_spec.rb:111 - 1748) RSpec::Mocks behaves like library wide checks issues no warnings when the spec files are loaded + 1748) 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/verifying_doubles/expected_arg_verification_spec.rb:119 - 1749) 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 + 1749) 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/verifying_doubles/expected_arg_verification_spec.rb:134 - 1750) RSpec::Mocks behaves like library wide checks has no malformed whitespace + 1750) 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/verifying_doubles/expected_arg_verification_spec.rb:128 - 1751) RSpec::Mocks.setup starts a new space scope that is later removed by .teardown + 1751) 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_spec.rb:76 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:150 - 1752) RSpec::Mocks.verify delegates to the space + 1752) 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_spec.rb:42 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:29 - 1753) RSpec::Mocks.configuration returns a memoized configuration instance + 1753) 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_spec.rb:89 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:45 - 1754) RSpec::Mocks.teardown does not put rspec-mocks into an inconsistent state when called extra times + 1754) 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_spec.rb:61 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:37 - 1755) RSpec::Mocks.teardown resets method stubs + 1755) 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_spec.rb:54 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:72 - 1756) RSpec::Mocks when there is a `let` declaration that overrides an argument matcher allows the `let` definition to win + 1756) 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_spec.rb:229 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:66 - 1757) RSpec::Mocks.with_temporary_scope returns the result of the passed block + 1757) 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_spec.rb:212 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:58 - 1758) RSpec::Mocks.with_temporary_scope does not verify if an error occurs before the block completes + 1758) 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_spec.rb:202 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:80 - 1759) RSpec::Mocks.with_temporary_scope tears down even if an error occurs + 1759) 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_spec.rb:189 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:86 - 1760) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed const allows the stubbed constants to be used + 1760) 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_spec.rb:133 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:11 - 1761) 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 + 1761) 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_spec.rb:137 + # ./spec/rspec/mocks/precise_counts_spec.rb:34 - 1762) 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) + 1762) 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_spec.rb:142 + # ./spec/rspec/mocks/precise_counts_spec.rb:56 - 1763) RSpec::Mocks.with_temporary_scope in a before(:all) with an unmet mock expectation fails with a mock expectation error + 1763) 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_spec.rb:158 + # ./spec/rspec/mocks/precise_counts_spec.rb:27 - 1764) RSpec::Mocks.with_temporary_scope in a before(:all) with an any_instance stub allows the stub to be used + 1764) 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_spec.rb:173 + # ./spec/rspec/mocks/precise_counts_spec.rb:42 - 1765) 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 + 1765) 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_spec.rb:177 + # ./spec/rspec/mocks/precise_counts_spec.rb:17 - 1766) 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) + 1766) 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_spec.rb:183 + # ./spec/rspec/mocks/precise_counts_spec.rb:48 - 1767) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed double does not allow the double to be used in the examples + 1767) 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_spec.rb:111 + # ./spec/rspec/mocks/precise_counts_spec.rb:8 - 1768) 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) + 1768) 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_spec.rb:117 + # ./spec/rspec/mocks/null_object_double_spec.rb:8 - 1769) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed double allows the stubbed double to be used + 1769) 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_spec.rb:107 + # ./spec/rspec/mocks/null_object_double_spec.rb:12 - 1770) at_most fails fast when at_most(:thrice) and is called four times + 1770) 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/at_most_spec.rb:117 + # ./spec/rspec/mocks/null_object_double_spec.rb:17 - 1771) at_most passes when at_most(:once) is called once + 1771) 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/at_most_spec.rb:32 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:45 - 1772) at_most passes when at_most(:twice) is never called + 1772) 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/at_most_spec.rb:56 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:22 - 1773) at_most passes when at_most(:twice) is called twice + 1773) 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/at_most_spec.rb:49 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:52 - 1774) at_most fails fast when at_most(:once) and is called twice + 1774) 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/at_most_spec.rb:100 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:66 - 1775) at_most passes when at_most(:twice) is called once + 1775) 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/at_most_spec.rb:43 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:58 - 1776) at_most returns the value given by a block when at_most(:once) method is called + 1776) 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/at_most_spec.rb:75 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:38 - 1777) at_most passes when at_most(n) is called exactly n times + 1777) 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/at_most_spec.rb:14 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:29 - 1778) at_most passes when at_most(:thrice) is called less than three times + 1778) 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/at_most_spec.rb:61 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:14 - 1779) at_most passes when at_most(:thrice) is called thrice + 1779) 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/at_most_spec.rb:67 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:66 - 1780) at_most passes when at_most(n) is never called + 1780) 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/at_most_spec.rb:27 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:58 - 1781) at_most fails fast when at_most(n) times method is called n plus 1 times + 1781) 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/at_most_spec.rb:81 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:22 - 1782) at_most fails fast when at_most(:twice) and is called three times + 1782) 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/at_most_spec.rb:108 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:38 - 1783) at_most fails fast when at_most(n) times method is called n plus 1 time + 1783) 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/at_most_spec.rb:91 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:29 - 1784) at_most passes when at_most(n) is called less than n times + 1784) 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/at_most_spec.rb:21 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:52 - 1785) at_most passes when at_most(:once) is never called + 1785) 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/at_most_spec.rb:38 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:14 - 1786) at_most passes when at_most(n) is called exactly 1 time + 1786) 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/at_most_spec.rb:8 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:45 - 1787) at_most when called with negative expectation raises an error + 1787) 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/at_most_spec.rb:128 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:92 - 1788) Using a partial mock on a proxy object does not confuse the proxy and the proxied object + 1788) 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/partial_double_spec.rb:241 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:100 - 1789) Using a partial mock on a proxy object works properly + 1789) 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/partial_double_spec.rb:236 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:60 -Finished in 11.76 seconds (files took 21.16 seconds to load) +Finished in 1.27 seconds (files took 0.57255 seconds to load) 1789 examples, 0 failures, 1789 pending -Randomized with seed 38455 +Randomized with seed 1450 cd - @@ -8686,27 +8723,27 @@ cd rspec-support /usr/bin/ruby3.1 -S rspec spec/rspec/support/caller_filter_spec.rb spec/rspec/support/comparable_version_spec.rb spec/rspec/support/deprecation_helpers_spec.rb spec/rspec/support/differ_spec.rb spec/rspec/support/directory_maker_spec.rb spec/rspec/support/encoded_string_spec.rb spec/rspec/support/fuzzy_matcher_spec.rb spec/rspec/support/matcher_definition_spec.rb spec/rspec/support/method_signature_verifier_spec.rb spec/rspec/support/mutex_spec.rb spec/rspec/support/object_formatter_spec.rb spec/rspec/support/recursive_const_methods_spec.rb spec/rspec/support/reentrant_mutex_spec.rb spec/rspec/support/ruby_features_spec.rb spec/rspec/support/source/node_spec.rb spec/rspec/support/source/token_spec.rb spec/rspec/support/source_spec.rb spec/rspec/support/spec/in_sub_process_spec.rb spec/rspec/support/spec/shell_out_spec.rb spec/rspec/support/spec/stderr_splitter_spec.rb spec/rspec/support/spec/with_isolated_std_err_spec.rb spec/rspec/support/warnings_spec.rb spec/rspec/support/with_keywords_when_needed_spec.rb spec/rspec/support_spec.rb -Randomized with seed 13619 -..................................*..............................................................................................................................................................................................................................................................................................................................................................................................................fatal: not a git repository (or any of the parent directories): .git -................................................................................................................................*....... +Randomized with seed 54162 +...........................................................................................................................................................................................................................................................................................................................................*.....................................................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) - 1) RSpec::Support::ShellOut can shell out to ruby with the current load path - # 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 - - 2) RSpecHelpers#expect_warn_deprecation fails when there were no deprecations + 1) RSpecHelpers#expect_warn_deprecation fails when there were no deprecations # No reason given Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure } expected /received: 0 times/ but nothing was raised # ./spec/rspec/support/deprecation_helpers_spec.rb:66:in `block (4 levels) in ' # ./spec/rspec/support/deprecation_helpers_spec.rb:65:in `block (3 levels) in ' -Finished in 30.9 seconds (files took 5.57 seconds to load) + 2) RSpec::Support::ShellOut can shell out to ruby with the current load path + # 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 1.33 seconds (files took 0.25753 seconds to load) 569 examples, 0 failures, 2 pending -Randomized with seed 13619 +Randomized with seed 54162 cd - @@ -8740,26 +8777,26 @@ dh_installdeb -O--buildsystem=ruby dh_gencontrol -O--buildsystem=ruby dpkg-gencontrol: warning: Depends field of package ruby-rspec: substitution variable ${shlibs:Depends} used, but is not defined +dpkg-gencontrol: warning: Depends field of package ruby-rspec-core: substitution variable ${shlibs:Depends} used, but is not 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: 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-expectations: substitution variable ${shlibs:Depends} used, but is not defined dpkg-gencontrol: warning: Depends field of package ruby-rspec-support: substitution variable ${shlibs:Depends} used, but is not defined +dpkg-gencontrol: warning: package ruby-rspec: substitution variable ${ruby:Depends} unused, but is defined +dpkg-gencontrol: warning: package ruby-rspec-mocks: substitution variable ${ruby:Versions} 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-core: substitution variable ${shlibs:Depends} used, but is not 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-expectations: substitution variable ${ruby:Versions} used, but is not defined dpkg-gencontrol: warning: package ruby-rspec-core: substitution variable ${ruby:Versions} used, but is not defined -dpkg-gencontrol: warning: package ruby-rspec-core: substitution variable ${ruby:Depends} unused, but is defined -dpkg-gencontrol: warning: package ruby-rspec-mocks: substitution variable ${ruby:Versions} used, but is not defined -dpkg-gencontrol: warning: Depends field of package ruby-rspec-expectations: substitution variable ${shlibs:Depends} used, but is not defined dpkg-gencontrol: warning: package ruby-rspec-mocks: substitution variable ${ruby:Depends} unused, but is defined -dpkg-gencontrol: warning: package ruby-rspec-expectations: substitution variable ${ruby:Versions} used, but is not defined dpkg-gencontrol: warning: package ruby-rspec-expectations: substitution variable ${ruby:Depends} unused, but is defined +dpkg-gencontrol: warning: package ruby-rspec-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-core' in '../ruby-rspec-core_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' in '../ruby-rspec_3.13.0c0e0m0s1-2_all.deb'. -dpkg-deb: building package 'ruby-rspec-mocks' in '../ruby-rspec-mocks_3.13.0c0e0m0s1-2_all.deb'. dpkg-deb: building package 'ruby-rspec-expectations' in '../ruby-rspec-expectations_3.13.0c0e0m0s1-2_all.deb'. +dpkg-deb: building package 'ruby-rspec-mocks' in '../ruby-rspec-mocks_3.13.0c0e0m0s1-2_all.deb'. +dpkg-deb: building package 'ruby-rspec-support' in '../ruby-rspec-support_3.13.0c0e0m0s1-2_all.deb'. dpkg-genbuildinfo --build=binary -O../ruby-rspec_3.13.0c0e0m0s1-2_amd64.buildinfo dpkg-genchanges --build=binary -O../ruby-rspec_3.13.0c0e0m0s1-2_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -8767,12 +8804,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/2251749/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/2251749/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/1680533 and its subdirectories -I: Current time: Fri May 31 18:54:20 -12 2024 -I: pbuilder-time-stamp: 1717224860 +I: removing directory /srv/workspace/pbuilder/2251749 and its subdirectories +I: Current time: Sat Jul 5 03:18:34 +14 2025 +I: pbuilder-time-stamp: 1751635114