Diff of the two buildlogs: -- --- b1/build.log 2024-11-09 02:42:28.944882468 +0000 +++ b2/build.log 2024-11-09 02:44:01.677577759 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Nov 8 14:41:02 -12 2024 -I: pbuilder-time-stamp: 1731120062 +I: Current time: Fri Dec 12 23:05:32 +14 2025 +I: pbuilder-time-stamp: 1765530332 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/618355/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/418616/tmp/hooks/D01_modify_environment starting +debug: Running on codethink03-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Dec 12 09:05 /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/418616/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/418616/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="32" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.32(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='ddf89982e3fc4836be670369ac4d065c' - 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='618355' - PS1='# ' - PS2='> ' + INVOCATION_ID=bb7cf16903ed4b20a0358cbe9b2b1690 + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=418616 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.96S734n3/pbuilderrc_ljY8 --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.96S734n3/b1 --logfile b1/build.log ruby-rspec_3.13.0c0e0m0s1-2.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.96S734n3/pbuilderrc_WAEo --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.96S734n3/b2 --logfile b2/build.log ruby-rspec_3.13.0c0e0m0s1-2.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink02-arm64 6.1.0-26-cloud-arm64 #1 SMP Debian 6.1.112-1 (2024-09-30) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-26-cloud-arm64 #1 SMP Debian 6.1.112-1 (2024-09-30) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 4 21:30 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/618355/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 4 2024 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/418616/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -323,7 +355,7 @@ Get: 168 http://deb.debian.org/debian unstable/main arm64 ruby-nokogiri arm64 1.16.4+dfsg-1 [256 kB] Get: 169 http://deb.debian.org/debian unstable/main arm64 ruby-rr all 3.1.0-1 [40.2 kB] Get: 170 http://deb.debian.org/debian unstable/main arm64 ruby-thread-order all 1.1.0-1.1 [5336 B] -Fetched 56.4 MB in 0s (119 MB/s) +Fetched 56.4 MB in 0s (129 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.12-minimal:arm64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 20089 files and directories currently installed.) @@ -889,8 +921,8 @@ Setting up tzdata (2024b-3) ... Current default time zone: 'Etc/UTC' -Local time is now: Sat Nov 9 02:41:33 UTC 2024. -Universal Time is now: Sat Nov 9 02:41:33 UTC 2024. +Local time is now: Fri Dec 12 09:06:03 UTC 2025. +Universal Time is now: Fri Dec 12 09:06:03 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up liberror-perl (0.17029-2) ... @@ -1039,7 +1071,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../ruby-rspec_3.13.0c0e0m0s1-2_source.changes +I: user script /srv/workspace/pbuilder/418616/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/418616/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../ruby-rspec_3.13.0c0e0m0s1-2_source.changes dpkg-buildpackage: info: source package ruby-rspec dpkg-buildpackage: info: source version 3.13.0c0e0m0s1-2 dpkg-buildpackage: info: source distribution unstable @@ -1078,13 +1114,13 @@ dh_prep -O--buildsystem=ruby dh_auto_install -O--buildsystem=ruby dh_ruby --install /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/tmp -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241108-627928-yqe7p9/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20251212-447447-o3cxqf/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/d20241108-627928-yqe7p9/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/d20251212-447447-o3cxqf/rspec-3.13.0.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec/usr/share/rubygems-integration/all/gems/rspec-3.13.0/lib/rspec.rb /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec/usr/share/rubygems-integration/all/gems/rspec-3.13.0/lib/rspec/version.rb @@ -1103,7 +1139,7 @@ find lib/ -type d -empty -delete cd - cd - -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241108-627928-abnzjd/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20251212-447447-qzprt1/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash WARNING: open-ended dependency on cucumber (>= 1.3, development) is not recommended if cucumber is semantically versioned, use: @@ -1113,7 +1149,7 @@ Name: rspec-core Version: 3.13.0 File: rspec-core-3.13.0.gem -/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-rspec-core/usr/share/rubygems-integration/all /tmp/d20241108-627928-abnzjd/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/d20251212-447447-qzprt1/rspec-core-3.13.0.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-core/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-core/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib/rspec/autorun.rb @@ -1210,7 +1246,7 @@ cd - cd - Rewriting shebang line of /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-core/usr/bin/rspec -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241108-627928-sjh3sq/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20251212-447447-9ssf7g/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash WARNING: open-ended dependency on cucumber (>= 1.3, development) is not recommended if cucumber is semantically versioned, use: @@ -1223,7 +1259,7 @@ Name: rspec-expectations Version: 3.13.0 File: rspec-expectations-3.13.0.gem -/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-rspec-expectations/usr/share/rubygems-integration/all /tmp/d20241108-627928-sjh3sq/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/d20251212-447447-9ssf7g/rspec-expectations-3.13.0.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-expectations/usr/share/rubygems-integration/all/gems/rspec-expectations-3.13.0/lib/rspec/expectations.rb /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-expectations/usr/share/rubygems-integration/all/gems/rspec-expectations-3.13.0/lib/rspec/expectations/block_snippet_extractor.rb @@ -1289,7 +1325,7 @@ find lib/ -type d -empty -delete cd - cd - -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241108-627928-bi6oiy/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20251212-447447-cl9gfo/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash WARNING: open-ended dependency on rake (> 10.0.0, development) is not recommended if rake is semantically versioned, use: @@ -1302,7 +1338,7 @@ Name: rspec-mocks Version: 3.13.0 File: rspec-mocks-3.13.0.gem -/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-rspec-mocks/usr/share/rubygems-integration/all /tmp/d20241108-627928-bi6oiy/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/d20251212-447447-cl9gfo/rspec-mocks-3.13.0.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-mocks/usr/share/rubygems-integration/all/gems/rspec-mocks-3.13.0/lib/rspec/mocks.rb /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-mocks/usr/share/rubygems-integration/all/gems/rspec-mocks-3.13.0/lib/rspec/mocks/any_instance.rb @@ -1360,7 +1396,7 @@ find lib/ -type d -empty -delete cd - cd - -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241108-627928-zs08fb/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20251212-447447-klkxaa/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash WARNING: open-ended dependency on rake (> 10.0.0, development) is not recommended if rake is semantically versioned, use: @@ -1370,7 +1406,7 @@ Name: rspec-support Version: 3.13.1 File: rspec-support-3.13.1.gem -/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-rspec-support/usr/share/rubygems-integration/all /tmp/d20241108-627928-zs08fb/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/d20251212-447447-klkxaa/rspec-support-3.13.1.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-support/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib/rspec/support.rb /build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-support/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib/rspec/support/caller_filter.rb @@ -1437,7 +1473,7 @@ └──────────────────────────────────────────────────────────────────────────────┘ RUBYLIB=. GEM_PATH=/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-core/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-expectations/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-mocks/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/ruby-rspec-support/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/aarch64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/aarch64-linux-gnu/rubygems-integration/3.1.0 ruby3.1 debian/ruby-tests.rb -PATH=/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/rspec-core/exe:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games +PATH=/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/rspec-core/exe:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path RUBYLIB=.:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/rspec-core/lib:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/rspec-expectations/lib:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/rspec-mocks/lib:/build/reproducible-path/ruby-rspec-3.13.0c0e0m0s1/rspec-support/lib ∙∙∙∙∙∙∙∙∙∙∙∙∙∙ @@ -1448,16 +1484,20 @@ /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 42914 -...............................................................................................................................................................................................................*...........................................................*...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... +Randomized with seed 43659 +................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*............................................................................................................................................................................................................................................................ Pending: (Failures listed here are expected and do not affect your suite's status) - 1) RSpec::Core::Formatters::HtmlFormatter produced HTML with mathn loaded is identical to the one we designed manually + 1) RSpec::Core::Formatters::Helpers format duration with mathn loaded returns 'x minutes xx.x seconds' formatted string + # lib/mathn.rb is deprecated in Ruby 2.2 + # ./spec/rspec/core/formatters/helpers_spec.rb:64 + + 2) RSpec::Core::Formatters::HtmlFormatter produced HTML with mathn loaded is identical to the one we designed manually # lib/mathn.rb is deprecated in Ruby 2.2 # ./spec/rspec/core/formatters/html_formatter_spec.rb:68 - 2) RSpec::Core::Metadata for an example points :example_group to the same hash object as other examples in the same group + 3) RSpec::Core::Metadata for an example points :example_group to the same hash object as other examples in the same group # Cannot maintain this and provide full `:example_group` backwards compatibility (see GH #1490):( Failure/Error: expect(b[:description]).to eq("new description") @@ -1466,14 +1506,10 @@ (compared using ==) - 3) RSpec::Core::Formatters::Helpers format duration with mathn loaded returns 'x minutes xx.x seconds' formatted string - # lib/mathn.rb is deprecated in Ruby 2.2 - # ./spec/rspec/core/formatters/helpers_spec.rb:64 - -Finished in 14.25 seconds (files took 0.88256 seconds to load) +Finished in 13.2 seconds (files took 0.88814 seconds to load) 2198 examples, 0 failures, 3 pending -Randomized with seed 42914 +Randomized with seed 43659 cd - @@ -1484,39 +1520,38 @@ 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 20904 -...................................................................................................................................................................................................................................................................................................................................................................................fatal: not a git repository (or any of the parent directories): .git -........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................********............................................................................................................................................................................................................................................................................................................................................................................. +Randomized with seed 30069 +...........................................................................................................................................................................................................................................................................................................................................********............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 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 provides a valid diff for fuzzy matchers + 1) #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:129 + # ./spec/rspec/matchers/built_in/include_spec.rb:95 - 2) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target works even when an entry in the hash overrides #send + 2) #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:95 + # ./spec/rspec/matchers/built_in/include_spec.rb:78 - 3) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target passes if target has the expected as a key + 3) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target provides a valid diff # around hook at ./spec/rspec/matchers/built_in/include_spec.rb:376 did not execute the example - # ./spec/rspec/matchers/built_in/include_spec.rb:74 + # ./spec/rspec/matchers/built_in/include_spec.rb:101 4) #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:89 - 5) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target passes if target has the expected as a key fuzzily matched + 5) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target 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:78 + # ./spec/rspec/matchers/built_in/include_spec.rb:74 - 6) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target provides a valid diff + 6) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target fails if target does not include expected # around hook at ./spec/rspec/matchers/built_in/include_spec.rb:376 did not execute the example - # ./spec/rspec/matchers/built_in/include_spec.rb:101 + # ./spec/rspec/matchers/built_in/include_spec.rb:82 - 7) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target fails if target does not include expected + 7) #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 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 # around hook at ./spec/rspec/matchers/built_in/include_spec.rb:376 did not execute the example @@ -1524,10 +1559,10 @@ 22 deprecation warnings total -Finished in 3.62 seconds (files took 0.5653 seconds to load) +Finished in 3.84 seconds (files took 0.6355 seconds to load) 2400 examples, 0 failures, 8 pending -Randomized with seed 20904 +Randomized with seed 30069 cd - @@ -1539,7171 +1574,7171 @@ /usr/bin/ruby3.1 -S rspec spec/integration/rails_support_spec.rb spec/rspec/mocks/and_call_original_spec.rb spec/rspec/mocks/and_invoke_spec.rb spec/rspec/mocks/and_return_spec.rb spec/rspec/mocks/and_wrap_original_spec.rb spec/rspec/mocks/and_yield_spec.rb spec/rspec/mocks/any_instance/message_chains_spec.rb spec/rspec/mocks/any_instance_spec.rb spec/rspec/mocks/argument_matchers_spec.rb spec/rspec/mocks/array_including_matcher_spec.rb spec/rspec/mocks/at_least_spec.rb spec/rspec/mocks/at_most_spec.rb spec/rspec/mocks/before_all_spec.rb spec/rspec/mocks/block_return_value_spec.rb spec/rspec/mocks/combining_implementation_instructions_spec.rb spec/rspec/mocks/configuration_spec.rb spec/rspec/mocks/diffing_spec.rb spec/rspec/mocks/double_spec.rb spec/rspec/mocks/error_generator_spec.rb spec/rspec/mocks/example_methods_spec.rb spec/rspec/mocks/expiration_spec.rb spec/rspec/mocks/failure_notification_spec.rb spec/rspec/mocks/formatting_spec.rb spec/rspec/mocks/hash_excluding_matcher_spec.rb spec/rspec/mocks/hash_including_matcher_spec.rb spec/rspec/mocks/instance_method_stasher_spec.rb spec/rspec/mocks/marshal_extension_spec.rb spec/rspec/mocks/matchers/have_received_spec.rb spec/rspec/mocks/matchers/receive_message_chain_spec.rb spec/rspec/mocks/matchers/receive_messages_spec.rb spec/rspec/mocks/matchers/receive_spec.rb spec/rspec/mocks/message_expectation_string_representation_spec.rb spec/rspec/mocks/methods_spec.rb spec/rspec/mocks/mock_expectation_error_spec.rb spec/rspec/mocks/mock_ordering_spec.rb spec/rspec/mocks/modifying_invoked_expectations_spec.rb spec/rspec/mocks/multiple_invoke_handler_spec.rb spec/rspec/mocks/multiple_return_value_spec.rb spec/rspec/mocks/mutate_const_spec.rb spec/rspec/mocks/nil_expectation_warning_spec.rb spec/rspec/mocks/null_object_double_spec.rb spec/rspec/mocks/once_counts_spec.rb spec/rspec/mocks/order_group_spec.rb spec/rspec/mocks/partial_double_spec.rb spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb spec/rspec/mocks/precise_counts_spec.rb spec/rspec/mocks/reraising_eager_raises_spec.rb spec/rspec/mocks/serialization_spec.rb spec/rspec/mocks/should_syntax_spec.rb spec/rspec/mocks/space_spec.rb spec/rspec/mocks/spy_spec.rb spec/rspec/mocks/standalone_spec.rb spec/rspec/mocks/stash_spec.rb spec/rspec/mocks/stub_chain_spec.rb spec/rspec/mocks/stub_implementation_spec.rb spec/rspec/mocks/stub_spec.rb spec/rspec/mocks/stubbed_message_expectations_spec.rb spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb spec/rspec/mocks/syntax_spec.rb spec/rspec/mocks/test_double_spec.rb spec/rspec/mocks/thrice_counts_spec.rb spec/rspec/mocks/to_ary_spec.rb spec/rspec/mocks/twice_counts_spec.rb spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb spec/rspec/mocks/verifying_doubles/construction_spec.rb spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb spec/rspec/mocks/verifying_doubles/naming_spec.rb spec/rspec/mocks/verifying_doubles/object_double_spec.rb spec/rspec/mocks_spec.rb Run options: exclude {:ordered_and_vague_counts_unsupported=>true} -Randomized with seed 16220 +Randomized with seed 12881 ************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************* Pending: (Failures listed here are expected and do not affect your suite's status) - 1) #twice passes when called twice with unspecified args + 1) 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/twice_counts_spec.rb:22 + # ./spec/rspec/mocks/stash_spec.rb:12 - 2) #twice fails when call count is lower than expected + 2) 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/twice_counts_spec.rb:38 + # ./spec/rspec/mocks/error_generator_spec.rb:15 - 3) #twice fails when called with wrong args on the second call + 3) 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/twice_counts_spec.rb:54 + # ./spec/rspec/mocks/error_generator_spec.rb:31 - 4) #twice fails when called with wrong args on the first call + 4) 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/twice_counts_spec.rb:46 + # ./spec/rspec/mocks/error_generator_spec.rb:62 - 5) #twice passes when called twice with specified args + 5) 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/twice_counts_spec.rb:15 + # ./spec/rspec/mocks/error_generator_spec.rb:79 - 6) #twice passes when called twice + 6) 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/twice_counts_spec.rb:8 + # ./spec/rspec/mocks/error_generator_spec.rb:52 - 7) #twice fails fast when call count is higher than expected + 7) 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/twice_counts_spec.rb:29 + # ./spec/rspec/mocks/error_generator_spec.rb:42 - 8) #twice when called with negative expectation raises an error + 8) 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/twice_counts_spec.rb:89 + # ./spec/rspec/mocks/should_syntax_spec.rb:496 - 9) #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 + 9) 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/twice_counts_spec.rb:64 + # ./spec/rspec/mocks/should_syntax_spec.rb:541 - 10) An object double can replace an unloaded constant + 10) 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/verifying_doubles/object_double_spec.rb:8 + # ./spec/rspec/mocks/should_syntax_spec.rb:475 - 11) An object double validates `with` args against the method signature when stubbing a method + 11) 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/object_double_spec.rb:62 + # ./spec/rspec/mocks/should_syntax_spec.rb:554 - 12) An object double does not allow as_stubbed_constant for real objects + 12) 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/verifying_doubles/object_double_spec.rb:52 + # ./spec/rspec/mocks/should_syntax_spec.rb:564 - 13) An object double is not a module + 13) 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/object_double_spec.rb:58 + # ./spec/rspec/mocks/should_syntax_spec.rb:487 - 14) An object double can replace a constant by name and verify instance methods + 14) 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/verifying_doubles/object_double_spec.rb:17 + # ./spec/rspec/mocks/null_object_double_spec.rb:12 - 15) An object double does not allow transferring constants to an object + 15) 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/verifying_doubles/object_double_spec.rb:45 + # ./spec/rspec/mocks/null_object_double_spec.rb:8 - 16) An object double can create a double that matches the interface of any arbitrary object + 16) 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/verifying_doubles/object_double_spec.rb:32 + # ./spec/rspec/mocks/null_object_double_spec.rb:17 - 17) An object double when an unloaded object constant has previously been stubbed with a class treats it as being unloaded for `object_double(ConstName)` + 17) 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/verifying_doubles/object_double_spec.rb:129 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:133 - 18) An object double when an unloaded object constant has previously been stubbed with a class treats it as being unloaded for `object_double('ConstName')` + 18) 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/verifying_doubles/object_double_spec.rb:124 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:49 - 19) 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')` + 19) 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/verifying_doubles/object_double_spec.rb:72 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:20 - 20) 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 + 20) 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/verifying_doubles/object_double_spec.rb:78 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:38 - 21) 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)` + 21) 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/verifying_doubles/object_double_spec.rb:96 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:12 - 22) 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')` + 22) 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/verifying_doubles/object_double_spec.rb:90 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:87 - 23) An object double when an unloaded object constant has previously been stubbed with an object treats it as being unloaded for `object_double('ConstName')` + 23) 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/verifying_doubles/object_double_spec.rb:106 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:33 - 24) 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 + 24) 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/verifying_doubles/object_double_spec.rb:111 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:70 - 25) a double _not_ acting as a null object says it responds to messages it does understand + 25) 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/null_object_double_spec.rb:12 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:149 - 26) a double _not_ acting as a null object raises an error when interpolated in a string as an integer + 26) 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/null_object_double_spec.rb:17 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:142 - 27) a double _not_ acting as a null object says it does not respond to messages it doesn't understand + 27) 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/null_object_double_spec.rb:8 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:43 - 28) a message expectation with multiple return values specifying at_least less than the number of values fails when called less than the specified number + 28) 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/multiple_return_value_spec.rb:81 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:79 - 29) a message expectation with multiple return values specifying at_least less than the number of values uses the last return value for subsequent calls + 29) 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/multiple_return_value_spec.rb:74 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:57 - 30) 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 + 30) 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/multiple_return_value_spec.rb:89 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:115 - 31) 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 + 31) An instance double with the doubled class loaded for a method that only accepts keyword args still checks positional arguments when matchers used for keyword args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/multiple_return_value_spec.rb:96 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:106 - 32) a message expectation with multiple invoke handlers with a specified count equal to the number of values returns values in order to consecutive calls + 32) 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/multiple_invoke_handler_spec.rb:47 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:100 - 33) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher describes itself properly + 33) 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/array_including_matcher_spec.rb:5 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:93 - 34) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher describes passed matchers + 34) 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/array_including_matcher_spec.rb:9 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:171 - 35) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher failing fails when not all the entries in the expected are present + 35) 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/array_including_matcher_spec.rb:56 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:157 - 36) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher failing fails when passed a composed matcher is passed and not satisfied + 36) 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/array_including_matcher_spec.rb:60 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:163 - 37) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, specified without square brackets + 37) 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/array_including_matcher_spec.rb:20 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:126 - 38) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing is composable with other matchers + 38) 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/array_including_matcher_spec.rb:40 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:194 - 39) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, specified without square brackets + 39) 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/array_including_matcher_spec.rb:24 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:210 - 40) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing is composable when nested + 40) 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/array_including_matcher_spec.rb:48 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:200 - 41) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing works with duplicates in actual + 41) 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/array_including_matcher_spec.rb:36 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:188 - 42) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, which includes nested arrays + 42) 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/array_including_matcher_spec.rb:28 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:223 - 43) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array + 43) 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/array_including_matcher_spec.rb:16 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:181 - 44) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing works with duplicates in expected + 44) 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/array_including_matcher_spec.rb:32 + # ./spec/rspec/mocks/argument_matchers_spec.rb:378 - 45) 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 + 45) 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/diffing_spec.rb:33 + # ./spec/rspec/mocks/argument_matchers_spec.rb:373 - 46) 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 + 46) 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/diffing_spec.rb:21 + # ./spec/rspec/mocks/argument_matchers_spec.rb:383 - 47) Diffs printed when arguments don't match with a non matcher object does not print a diff when single line arguments are mismatched + 47) 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/diffing_spec.rb:12 + # ./spec/rspec/mocks/argument_matchers_spec.rb:295 - 48) Diffs printed when arguments don't match with a non matcher object prints a diff with hash args + 48) 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/diffing_spec.rb:81 + # ./spec/rspec/mocks/argument_matchers_spec.rb:288 - 49) Diffs printed when arguments don't match with a non matcher object prints a diff of the args lists for multiple mismatched string arguments + 49) 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/diffing_spec.rb:57 + # ./spec/rspec/mocks/argument_matchers_spec.rb:278 - 50) Diffs printed when arguments don't match with a non matcher object prints a diff with array args + 50) 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/diffing_spec.rb:241 + # ./spec/rspec/mocks/argument_matchers_spec.rb:283 - 51) 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 + 51) 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/diffing_spec.rb:46 + # ./spec/rspec/mocks/argument_matchers_spec.rb:352 - 52) 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 + 52) 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/diffing_spec.rb:68 + # ./spec/rspec/mocks/argument_matchers_spec.rb:337 - 53) 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 + 53) 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/diffing_spec.rb:90 + # ./spec/rspec/mocks/argument_matchers_spec.rb:345 - 54) 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) + 54) 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/diffing_spec.rb:117 + # ./spec/rspec/mocks/argument_matchers_spec.rb:21 - 55) 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 + 55) 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/diffing_spec.rb:133 + # ./spec/rspec/mocks/argument_matchers_spec.rb:16 - 56) 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) + 56) 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/diffing_spec.rb:102 + # ./spec/rspec/mocks/argument_matchers_spec.rb:11 - 57) 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) + 57) 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/diffing_spec.rb:174 + # ./spec/rspec/mocks/argument_matchers_spec.rb:101 - 58) 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) + 58) 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/diffing_spec.rb:187 + # ./spec/rspec/mocks/argument_matchers_spec.rb:106 - 59) 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 + 59) 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/diffing_spec.rb:201 + # ./spec/rspec/mocks/argument_matchers_spec.rb:96 - 60) 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 + 60) 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/diffing_spec.rb:251 + # ./spec/rspec/mocks/argument_matchers_spec.rb:417 - 61) 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 + 61) 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/diffing_spec.rb:287 + # ./spec/rspec/mocks/argument_matchers_spec.rb:468 - 62) Diffs printed when arguments don't match with a matcher object that defines #description uses the object's description + 62) 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/diffing_spec.rb:270 + # ./spec/rspec/mocks/argument_matchers_spec.rb:478 - 63) A class double with the doubled class loaded only allows defined methods for null objects + 63) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:108 + # ./spec/rspec/mocks/argument_matchers_spec.rb:473 - 64) A class double with the doubled class loaded only allows class methods that exist to be stubbed + 64) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:12 + # ./spec/rspec/mocks/argument_matchers_spec.rb:498 - 65) A class double with the doubled class loaded only allows class methods that exist to be expected + 65) 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/class_double_with_class_loaded_spec.rb:20 + # ./spec/rspec/mocks/argument_matchers_spec.rb:422 - 66) A class double with the doubled class loaded correctly verifies expectations when constant is removed + 66) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:99 + # ./spec/rspec/mocks/argument_matchers_spec.rb:451 - 67) A class double with the doubled class loaded allows class to be specified by constant + 67) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:76 + # ./spec/rspec/mocks/argument_matchers_spec.rb:402 - 68) A class double with the doubled class loaded allows dynamically defined class methods to be expected + 68) 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/class_double_with_class_loaded_spec.rb:71 + # ./spec/rspec/mocks/argument_matchers_spec.rb:463 - 69) A class double with the doubled class loaded allows dynamically defined class method stubs with arguments + 69) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:57 + # ./spec/rspec/mocks/argument_matchers_spec.rb:412 - 70) A class double with the doubled class loaded checks that stubbed methods are invoked with the correct arity + 70) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:50 + # ./spec/rspec/mocks/argument_matchers_spec.rb:407 - 71) A class double with the doubled class loaded allows dynamically defined class method mocks with arguments + 71) 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/class_double_with_class_loaded_spec.rb:64 + # ./spec/rspec/mocks/argument_matchers_spec.rb:484 - 72) A class double with the doubled class loaded verifies arguments for null objects + 72) 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/class_double_with_class_loaded_spec.rb:115 + # ./spec/rspec/mocks/argument_matchers_spec.rb:491 - 73) A class double with the doubled class loaded doesn't suggest `instance_double` when a non-instance method is stubbed' + 73) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:38 + # ./spec/rspec/mocks/argument_matchers_spec.rb:444 - 74) A class double with the doubled class loaded can replace existing constants for the duration of the test + 74) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:81 + # ./spec/rspec/mocks/argument_matchers_spec.rb:429 - 75) A class double with the doubled class loaded gives a descriptive error message for NoMethodError + 75) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:43 + # ./spec/rspec/mocks/argument_matchers_spec.rb:458 - 76) A class double with the doubled class loaded validates `with` args against the method signature when stubbing a 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/class_double_with_class_loaded_spec.rb:123 + # ./spec/rspec/mocks/argument_matchers_spec.rb:397 - 77) A class double with the doubled class loaded suggests using `instance_double` when an instance method is stubbed + 77) argument matchers matching duck_type matches duck type with one method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:33 + # ./spec/rspec/mocks/argument_matchers_spec.rb:113 - 78) A class double with the doubled class loaded can transfer nested constants to the double + 78) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:92 + # ./spec/rspec/mocks/argument_matchers_spec.rb:123 - 79) A class double with the doubled class loaded when `.new` is stubbed uses the method signature from `#initialize` for arg verification + 79) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:135 + # ./spec/rspec/mocks/argument_matchers_spec.rb:118 - 80) 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 + 80) 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/class_double_with_class_loaded_spec.rb:167 + # ./spec/rspec/mocks/argument_matchers_spec.rb:163 - 81) 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 + 81) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:142 + # ./spec/rspec/mocks/argument_matchers_spec.rb:159 - 82) A class double with the doubled class loaded when `.new` is stubbed on a class that has undefined `new` prevents it from being stubbed + 82) argument matchers matching any_args as the last of three args matches a call of three args when it matches the first two explicit args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:154 + # ./spec/rspec/mocks/argument_matchers_spec.rb:155 - 83) A class double with the doubled class loaded when given a class that has an overridden `#name` method properly verifies + 83) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:193 + # ./spec/rspec/mocks/argument_matchers_spec.rb:167 - 84) A class double with the doubled class loaded when given a class that has an overridden `#name` method can still stub the const + 84) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:197 + # ./spec/rspec/mocks/argument_matchers_spec.rb:151 - 85) 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')` + 85) 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/class_double_with_class_loaded_spec.rb:211 + # ./spec/rspec/mocks/argument_matchers_spec.rb:139 - 86) 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)` + 86) 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/class_double_with_class_loaded_spec.rb:217 + # ./spec/rspec/mocks/argument_matchers_spec.rb:135 - 87) A class double with the doubled class loaded when given an anonymous class properly verifies + 87) 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/class_double_with_class_loaded_spec.rb:184 + # ./spec/rspec/mocks/argument_matchers_spec.rb:143 - 88) Partially mocking an object that defines ==, after another mock has been defined does not raise an error when stubbing the object + 88) 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/partial_double_spec.rb:268 + # ./spec/rspec/mocks/argument_matchers_spec.rb:221 - 89) a double stubbed with multiple return values can still set a message expectation with a single return value + 89) 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/multiple_return_value_spec.rb:10 + # ./spec/rspec/mocks/argument_matchers_spec.rb:191 - 90) with default syntax configuration warns about should not once, regardless of how many times it is called + 90) 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/should_syntax_spec.rb:487 + # ./spec/rspec/mocks/argument_matchers_spec.rb:183 - 91) with default syntax configuration includes the call site in the deprecation warning + 91) 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/should_syntax_spec.rb:564 + # ./spec/rspec/mocks/argument_matchers_spec.rb:179 - 92) with default syntax configuration it warns about should once, regardless of how many times it is called + 92) 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/should_syntax_spec.rb:475 + # ./spec/rspec/mocks/argument_matchers_spec.rb:187 - 93) with default syntax configuration warns about stubbing once, regardless of how many times it is called + 93) 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/should_syntax_spec.rb:496 + # ./spec/rspec/mocks/argument_matchers_spec.rb:175 - 94) with default syntax configuration warns about unstubbing once, regardless of how many times it is called + 94) 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/should_syntax_spec.rb:541 + # ./spec/rspec/mocks/argument_matchers_spec.rb:207 - 95) with default syntax configuration doesn't warn about stubbing after a reset and setting should + 95) 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/should_syntax_spec.rb:554 + # ./spec/rspec/mocks/argument_matchers_spec.rb:211 - 96) A method stub with args does not complain if not called + 96) 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/stub_spec.rb:521 + # ./spec/rspec/mocks/argument_matchers_spec.rb:203 - 97) A method stub with args does not complain if called with arg + 97) 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/stub_spec.rb:524 + # ./spec/rspec/mocks/argument_matchers_spec.rb:199 - 98) A method stub with args complains if called with no arg + 98) 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/stub_spec.rb:528 + # ./spec/rspec/mocks/argument_matchers_spec.rb:215 - 99) A method stub with args complains if called with other arg + 99) 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/stub_spec.rb:534 + # ./spec/rspec/mocks/argument_matchers_spec.rb:77 - 100) A method stub with args uses the correct stubbed response when responding to a mock expectation + 100) 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/stub_spec.rb:555 + # ./spec/rspec/mocks/argument_matchers_spec.rb:62 - 101) A method stub with args does not complain if also mocked w/ different args + 101) 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/stub_spec.rb:540 + # ./spec/rspec/mocks/argument_matchers_spec.rb:72 - 102) A method stub with args complains if also mocked w/ different args AND called w/ a 3rd set of args + 102) 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/stub_spec.rb:546 + # ./spec/rspec/mocks/argument_matchers_spec.rb:82 - 103) 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 + 103) 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/have_received_spec.rb:100 + # ./spec/rspec/mocks/argument_matchers_spec.rb:87 - 104) 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 + 104) 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/have_received_spec.rb:70 + # ./spec/rspec/mocks/argument_matchers_spec.rb:67 - 105) 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 + 105) argument matchers matching hash_excluding handles non matching instances nicely # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:156 + # ./spec/rspec/mocks/argument_matchers_spec.rb:269 - 106) 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 + 106) argument matchers matching hash_excluding matches hash with hash_excluding same hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:35 + # ./spec/rspec/mocks/argument_matchers_spec.rb:264 - 107) 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 + 107) 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/have_received_spec.rb:146 + # ./spec/rspec/mocks/argument_matchers_spec.rb:235 - 108) 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 + 108) 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/have_received_spec.rb:54 + # ./spec/rspec/mocks/argument_matchers_spec.rb:230 - 109) 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 + 109) 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/have_received_spec.rb:30 + # ./spec/rspec/mocks/argument_matchers_spec.rb:241 - 110) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received generates a useful description + 110) 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/have_received_spec.rb:183 + # ./spec/rspec/mocks/argument_matchers_spec.rb:53 - 111) 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 + 111) 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/have_received_spec.rb:43 + # ./spec/rspec/mocks/argument_matchers_spec.rb:35 - 112) 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 + 112) 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/have_received_spec.rb:25 + # ./spec/rspec/mocks/argument_matchers_spec.rb:40 - 113) 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) + 113) 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/have_received_spec.rb:188 + # ./spec/rspec/mocks/argument_matchers_spec.rb:30 - 114) 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 + 114) 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/have_received_spec.rb:195 + # ./spec/rspec/mocks/argument_matchers_spec.rb:47 - 115) 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 + 115) argument matchers matching hash_including matches hash with hash_including same hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:90 + # ./spec/rspec/mocks/argument_matchers_spec.rb:250 - 116) 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 + 116) 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/have_received_spec.rb:80 + # ./spec/rspec/mocks/argument_matchers_spec.rb:255 - 117) 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 + 117) 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/matchers/have_received_spec.rb:124 + # ./spec/rspec/mocks/argument_matchers_spec.rb:323 - 118) 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 + 118) 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/matchers/have_received_spec.rb:62 + # ./spec/rspec/mocks/argument_matchers_spec.rb:309 - 119) 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 + 119) 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/matchers/have_received_spec.rb:111 + # ./spec/rspec/mocks/argument_matchers_spec.rb:304 - 120) 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` + 120) 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/matchers/have_received_spec.rb:134 + # ./spec/rspec/mocks/argument_matchers_spec.rb:316 - 121) 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 + 121) 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/matchers/have_received_spec.rb:315 + # ./spec/rspec/mocks/argument_matchers_spec.rb:328 - 122) 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 + 122) 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/matchers/have_received_spec.rb:301 + # ./spec/rspec/mocks/precise_counts_spec.rb:8 - 123) 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 + 123) 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/matchers/have_received_spec.rb:297 + # ./spec/rspec/mocks/precise_counts_spec.rb:56 - 124) 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 + 124) 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/matchers/have_received_spec.rb:389 + # ./spec/rspec/mocks/precise_counts_spec.rb:17 - 125) 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 + 125) 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/matchers/have_received_spec.rb:381 + # ./spec/rspec/mocks/precise_counts_spec.rb:27 - 126) 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 + 126) 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/matchers/have_received_spec.rb:398 + # ./spec/rspec/mocks/precise_counts_spec.rb:42 - 127) 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 + 127) 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/matchers/have_received_spec.rb:327 + # ./spec/rspec/mocks/precise_counts_spec.rb:48 - 128) 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 + 128) 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/matchers/have_received_spec.rb:323 + # ./spec/rspec/mocks/precise_counts_spec.rb:34 - 129) 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 + 129) .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/matchers/have_received_spec.rb:331 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:56 - 130) 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 + 130) .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/matchers/have_received_spec.rb:215 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:79 - 131) 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 + 131) .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/matchers/have_received_spec.rb:231 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:85 - 132) 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 + 132) .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/matchers/have_received_spec.rb:239 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:66 - 133) 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 + 133) .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/matchers/have_received_spec.rb:221 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:91 - 134) 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 + 134) .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/matchers/have_received_spec.rb:264 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:73 - 135) 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 + 135) .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/matchers/have_received_spec.rb:285 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:102 - 136) 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 + 136) 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/have_received_spec.rb:247 + # ./spec/rspec/mocks/should_syntax_spec.rb:9 - 137) 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 + 137) 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/have_received_spec.rb:273 + # ./spec/rspec/mocks/should_syntax_spec.rb:23 - 138) 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 + 138) Using the legacy should syntax #received_message? answers true for received_message? when message received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:355 + # ./spec/rspec/mocks/should_syntax_spec.rb:13 - 139) 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 + 139) 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/have_received_spec.rb:369 + # ./spec/rspec/mocks/should_syntax_spec.rb:18 - 140) 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 + 140) Using the legacy should syntax #should_receive does not fail on verification if the message is received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:361 + # ./spec/rspec/mocks/should_syntax_spec.rb:139 - 141) 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 + 141) Using the legacy should syntax #should_receive can set a canned response # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:420 + # ./spec/rspec/mocks/should_syntax_spec.rb:146 - 142) 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 + 142) Using the legacy should syntax #should_receive raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:430 + # ./spec/support/before_all_shared_example_group.rb:11 - 143) 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 + 143) Using the legacy should syntax #should_receive fails on verification if the message is not received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:411 + # ./spec/rspec/mocks/should_syntax_spec.rb:133 - 144) 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 + 144) Using the legacy should syntax #should_receive with an options hash uses the message supplied with :message after a similar stub # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:347 + # ./spec/rspec/mocks/should_syntax_spec.rb:178 - 145) 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 + 145) Using the legacy should syntax #should_receive with an options hash uses the message supplied with :message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:343 + # ./spec/rspec/mocks/should_syntax_spec.rb:170 - 146) 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 + 146) Using the legacy should syntax #should_receive with an options hash reports the file and line submitted with :expected_from # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:339 + # ./spec/rspec/mocks/should_syntax_spec.rb:159 - 147) 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 + 147) Using the legacy should syntax #stub supports options # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:455 + # ./spec/rspec/mocks/should_syntax_spec.rb:30 - 148) 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 + 148) Using the legacy should syntax #stub sets up a canned response # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:484 + # ./spec/rspec/mocks/should_syntax_spec.rb:40 - 149) 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 + 149) Using the legacy should syntax #stub returns `nil` from all terminal actions to discourage further configuration # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:517 + # ./spec/rspec/mocks/should_syntax_spec.rb:34 - 150) 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 + 150) Using the legacy should syntax #stub raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:447 + # ./spec/support/before_all_shared_example_group.rb:11 - 151) 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 + 151) Using the legacy should syntax #stub can stub multiple messages using a hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:555 + # ./spec/rspec/mocks/should_syntax_spec.rb:46 - 152) 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 + 152) Using the legacy should syntax #stub_chain can stub a sequence of messages # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:560 + # ./spec/rspec/mocks/should_syntax_spec.rb:61 - 153) 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 + 153) Using the legacy should syntax #stub_chain raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:533 + # ./spec/support/before_all_shared_example_group.rb:11 - 154) 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 + 154) 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/have_received_spec.rb:538 + # ./spec/rspec/mocks/should_syntax_spec.rb:84 - 155) 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 + 155) 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/have_received_spec.rb:169 + # ./spec/rspec/mocks/should_syntax_spec.rb:92 - 156) 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 + 156) 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/have_received_spec.rb:174 + # ./spec/support/before_all_shared_example_group.rb:11 - 157) 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 + 157) 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/have_received_spec.rb:619 + # ./spec/rspec/mocks/should_syntax_spec.rb:111 - 158) 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 + 158) 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/have_received_spec.rb:619 + # ./spec/rspec/mocks/should_syntax_spec.rb:101 - 159) 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 + 159) 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/have_received_spec.rb:619 + # ./spec/rspec/mocks/should_syntax_spec.rb:124 - 160) 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 + 160) Using the legacy should syntax #any_instance affects previously stubbed instances when stubbing a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:595 + # ./spec/rspec/mocks/should_syntax_spec.rb:255 - 161) 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 + 161) Using the legacy should syntax #any_instance raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:571 + # ./spec/support/before_all_shared_example_group.rb:11 - 162) 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 + 162) Using the legacy should syntax #any_instance can get method objects for the fluent interface # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:576 + # ./spec/rspec/mocks/should_syntax_spec.rb:248 - 163) 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 + 163) Using the legacy should syntax #any_instance can stub a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:584 + # ./spec/rspec/mocks/should_syntax_spec.rb:237 - 164) 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 + 164) Using the legacy should syntax #any_instance affects previously stubbed instances when mocking a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/should_syntax_spec.rb:263 - 165) 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 + 165) Using the legacy should syntax #any_instance can mock a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/should_syntax_spec.rb:242 - 166) 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 + 166) Using the legacy should syntax #any_instance adds a class to the current space # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/should_syntax_spec.rb:231 - 167) 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 + 167) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_yield' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:604 + # ./spec/rspec/mocks/should_syntax_spec.rb:285 - 168) 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 + 168) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_return' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:609 + # ./spec/rspec/mocks/should_syntax_spec.rb:277 - 169) 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 + 169) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_raise' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:637 + # ./spec/rspec/mocks/should_syntax_spec.rb:281 - 170) 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 + 170) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'stub' follows 'with' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:653 + # ./spec/rspec/mocks/should_syntax_spec.rb:273 - 171) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available allow(...).to have_received fails because it's nonsensical + 171) Using the legacy should syntax #any_instance invocation order #stub behaves as 'every instance' handles `unstub` on subclasses # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:629 + # ./spec/rspec/mocks/should_syntax_spec.rb:293 - 172) 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 + 172) Using the legacy should syntax #any_instance invocation order #should_not_receive passes if no method is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:645 + # ./spec/rspec/mocks/should_syntax_spec.rb:349 - 173) #thrice passes when called thrice with specified args + 173) 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/thrice_counts_spec.rb:14 + # ./spec/rspec/mocks/should_syntax_spec.rb:353 - 174) #thrice fails when called with wrong args on the second call + 174) 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/thrice_counts_spec.rb:52 + # ./spec/rspec/mocks/should_syntax_spec.rb:341 - 175) #thrice passes when called thrice with unspecified args + 175) 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/thrice_counts_spec.rb:20 + # ./spec/rspec/mocks/should_syntax_spec.rb:382 - 176) #thrice fails fast when call count is higher than expected + 176) 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/thrice_counts_spec.rb:28 + # ./spec/rspec/mocks/should_syntax_spec.rb:367 - 177) #thrice passes when called thrice + 177) 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/thrice_counts_spec.rb:8 + # ./spec/rspec/mocks/should_syntax_spec.rb:359 - 178) #thrice fails when call count is lower than expected + 178) 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/thrice_counts_spec.rb:36 + # ./spec/rspec/mocks/should_syntax_spec.rb:374 - 179) #thrice fails when called with wrong args on the third call + 179) 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/thrice_counts_spec.rb:61 + # ./spec/rspec/mocks/should_syntax_spec.rb:335 - 180) #thrice fails when called with wrong args on the first call + 180) 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/thrice_counts_spec.rb:44 + # ./spec/rspec/mocks/should_syntax_spec.rb:324 - 181) #thrice when called with negative expectation raises an error + 181) 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/thrice_counts_spec.rb:72 + # ./spec/rspec/mocks/should_syntax_spec.rb:303 - 182) #once fails when not called + 182) 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/once_counts_spec.rb:42 + # ./spec/rspec/mocks/should_syntax_spec.rb:313 - 183) #once passes when called once + 183) 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/once_counts_spec.rb:8 + # ./spec/rspec/mocks/should_syntax_spec.rb:318 - 184) #once fails when called with wrong args + 184) 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/once_counts_spec.rb:26 + # ./spec/rspec/mocks/should_syntax_spec.rb:308 - 185) #once fails fast when called twice + 185) 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/once_counts_spec.rb:34 + # ./spec/rspec/mocks/should_syntax_spec.rb:390 - 186) #once passes when called once with unspecified args + 186) 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/once_counts_spec.rb:20 + # ./spec/rspec/mocks/should_syntax_spec.rb:396 - 187) #once passes when called once with specified args + 187) 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/once_counts_spec.rb:14 + # ./spec/rspec/mocks/should_syntax_spec.rb:449 - 188) #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 + 188) 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/once_counts_spec.rb:50 + # ./spec/rspec/mocks/should_syntax_spec.rb:443 - 189) #once when called with negative expectation raises an error + 189) 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/once_counts_spec.rb:73 + # ./spec/rspec/mocks/should_syntax_spec.rb:419 - 190) A class double with the doubled class not loaded allows any method to be stubbed + 190) Using the legacy should syntax #any_instance invocation order #unstub does not remove message expectations set directly on an instance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:19 + # ./spec/rspec/mocks/should_syntax_spec.rb:427 - 191) A class double with the doubled class not loaded includes the double name in errors for unexpected messages + 191) Using the legacy should syntax #any_instance invocation order #unstub removes stubs from sub class after Invocation when super class was originally stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:12 + # ./spec/rspec/mocks/should_syntax_spec.rb:411 - 192) A class double with the doubled class not loaded trying to raise a class_double raises a TypeError + 192) Using the legacy should syntax #any_instance invocation order #unstub does not remove any expectations with the same method name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:25 + # ./spec/rspec/mocks/should_syntax_spec.rb:435 - 193) 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)` + 193) Using the legacy should syntax #any_instance invocation order #unstub removes stubs even if they have already been invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:65 + # ./spec/rspec/mocks/should_syntax_spec.rb:403 - 194) 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')` + 194) 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/verifying_doubles/class_double_with_class_not_loaded_spec.rb:60 + # ./spec/rspec/mocks/should_syntax_spec.rb:190 - 195) A class double with the doubled class not loaded when stubbing a private module method can mock private module methods + 195) 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/verifying_doubles/class_double_with_class_not_loaded_spec.rb:46 + # ./spec/rspec/mocks/should_syntax_spec.rb:194 - 196) a double declaration with a block handed to: with returns the value of executing the block + 196) 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/block_return_value_spec.rb:38 + # ./spec/support/before_all_shared_example_group.rb:11 - 197) a double declaration with a block handed to: with returns the value of executing the block with given argument + 197) 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/block_return_value_spec.rb:44 + # ./spec/rspec/mocks/should_syntax_spec.rb:201 - 198) a double declaration with a block handed to: allow(...).to receive returns the value of executing the block + 198) 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/block_return_value_spec.rb:19 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:57 - 199) a double declaration with a block handed to: allow(...).to receive forwards all given args to the block, even when it receives a block + 199) 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/block_return_value_spec.rb:27 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:50 - 200) a double declaration with a block handed to: expect(...).to receive works when a multi-return stub has already been set + 200) 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/block_return_value_spec.rb:9 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:38 - 201) a double declaration with a block handed to: expect(...).to receive returns the value of executing the block + 201) 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/block_return_value_spec.rb:3 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:43 - 202) a double declaration with a block handed to: times returns the value of executing the block + 202) 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/block_return_value_spec.rb:71 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:20 - 203) a double declaration with a block handed to: twice returns the value of executing the block + 203) 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/block_return_value_spec.rb:53 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:76 - 204) a double declaration with a block handed to: once returns the value of executing the block + 204) 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/block_return_value_spec.rb:53 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:12 - 205) a double declaration with a block handed to: ordered returns the value of executing the block + 205) 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/block_return_value_spec.rb:62 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:99 - 206) RSpec::Mocks::ErrorGenerator formatting arguments formats time objects with increased precision + 206) 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/error_generator_spec.rb:31 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:123 - 207) RSpec::Mocks::ErrorGenerator formatting arguments on matcher objects that do not define description does not use the object's description + 207) 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/error_generator_spec.rb:62 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:71 - 208) RSpec::Mocks::ErrorGenerator formatting arguments on matcher objects on default method stub error message display starts in new line + 208) 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/error_generator_spec.rb:79 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:92 - 209) RSpec::Mocks::ErrorGenerator formatting arguments on matcher objects that define description uses the object's description + 209) 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/error_generator_spec.rb:52 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:81 - 210) RSpec::Mocks::ErrorGenerator formatting arguments on non-matcher objects that define #description does not use the object's description + 210) 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/error_generator_spec.rb:42 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:115 - 211) 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) + 211) 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/error_generator_spec.rb:15 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:64 - 212) expection set on previously stubbed method outputs arguments of similar calls + 212) 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/stubbed_message_expectations_spec.rb:9 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:108 - 213) expection set on previously stubbed method indicates the site of expectation in the stacktrace when outputing arguments of similar calls + 213) 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/stubbed_message_expectations_spec.rb:43 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:33 - 214) expection set on previously stubbed method handles concurrent validation of expectations + 214) 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/stubbed_message_expectations_spec.rb:26 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:135 - 215) expection set on previously stubbed method fails if message is not received after expectation is set + 215) 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/stubbed_message_expectations_spec.rb:2 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:167 - 216) expection set on previously stubbed method with argument constraint on stub fails if expectation's arg constraint is not met + 216) 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/stubbed_message_expectations_spec.rb:76 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:154 - 217) expection set on previously stubbed method with argument constraint on stub distinguishes between duplicate individual values and arrays properly + 217) 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/stubbed_message_expectations_spec.rb:95 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:142 - 218) expection set on previously stubbed method with argument constraint on stub distinguishes between individual values and arrays properly + 218) 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/stubbed_message_expectations_spec.rb:84 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:217 - 219) expection set on previously stubbed method with argument constraint on stub matches specific args set on expectation + 219) 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/stubbed_message_expectations_spec.rb:68 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:211 - 220) expection set on previously stubbed method with argument constraint on stub matches any args if no arg constraint set on expectation + 220) 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/stubbed_message_expectations_spec.rb:60 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:184 - 221) RSpec::Mocks::AnyInstance::MessageChains knows if a method does not have an expectation set on it + 221) 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/any_instance/message_chains_spec.rb:7 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:193 - 222) RSpec::Mocks::AnyInstance::MessageChains can remove all stub chains + 222) 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/any_instance/message_chains_spec.rb:18 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:197 - 223) RSpec::Mocks::AnyInstance::MessageChains knows if a method has an expectation set on it + 223) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher describes itself properly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:12 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:6 - 224) RSpec::Mocks::AnyInstance::MessageChains creating stub chains understands how to add a stub chain for a method + 224) 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/any_instance/message_chains_spec.rb:28 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:19 - 225) RSpec::Mocks::AnyInstance::MessageChains creating stub chains allows multiple stub chains for a method + 225) 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/any_instance/message_chains_spec.rb:33 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:11 - 226) 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 + 226) 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/and_yield_spec.rb:35 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:23 - 227) RSpec::Mocks::Double#and_yield with eval context as block argument passes an eval context object to the supplied block + 227) 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/and_yield_spec.rb:29 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:15 - 228) RSpec::Mocks::Double#and_yield with eval context as block argument evaluates the supplied block as it is read + 228) 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/and_yield_spec.rb:21 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:31 - 229) 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 + 229) 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/and_yield_spec.rb:66 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:27 - 230) 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 + 230) 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/and_yield_spec.rb:52 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:37 - 231) 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 + 231) 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/and_yield_spec.rb:139 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:41 - 232) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments can yield to a block that uses `super` + 232) 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/and_yield_spec.rb:128 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:45 - 233) 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 + 233) 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/and_yield_spec.rb:84 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:49 - 234) 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 + 234) 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/and_yield_spec.rb:103 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:61 - 235) 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 + 235) 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/and_yield_spec.rb:114 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:57 - 236) 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 + 236) 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/and_yield_spec.rb:7 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:53 - 237) Methods added to every object limits the number of methods that get added to all objects + 237) 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/methods_spec.rb:13 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:9 - 238) an expectation set on nil does not issue a warning when expectations are set to be allowed + 238) 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/nil_expectation_warning_spec.rb:24 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:5 - 239) an expectation set on nil issues a warning when the expectation is negative + 239) 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/nil_expectation_warning_spec.rb:15 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:60 - 240) an expectation set on nil does not call #nil? on a double extra times + 240) 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/nil_expectation_warning_spec.rb:60 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:56 - 241) an expectation set on nil issues a warning with file and line number information + 241) 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/nil_expectation_warning_spec.rb:4 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:20 - 242) an expectation set on nil configured to allow expectation on nil does not issue a warning when expectations are set to be allowed + 242) 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/nil_expectation_warning_spec.rb:38 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:16 - 243) an expectation set on nil configured to disallow expectations on nil raises an error when expectations on nil are disallowed + 243) 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/nil_expectation_warning_spec.rb:53 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:24 - 244) 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 + 244) 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/multiple_return_value_spec.rb:116 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:40 - 245) 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 + 245) 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/multiple_return_value_spec.rb:122 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:32 - 246) 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 + 246) 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/multiple_return_value_spec.rb:109 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:28 - 247) a message expectation with multiple return values with a specified count equal to the number of values returns values in order to consecutive calls + 247) 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/multiple_return_value_spec.rb:60 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:48 - 248) Combining implementation instructions can combine and_yield, a block implementation and and_raise + 248) 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/combining_implementation_instructions_spec.rb:94 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:36 - 249) Combining implementation instructions can combine and_yield and and_return + 249) 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/combining_implementation_instructions_spec.rb:4 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:44 - 250) Combining implementation instructions can combine and_yield and and_raise + 250) 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/combining_implementation_instructions_spec.rb:85 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:23 - 251) Combining implementation instructions raises an error if `and_call_original` is followed by any other instructions + 251) 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/combining_implementation_instructions_spec.rb:181 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:30 - 252) Combining implementation instructions warns when the inner implementation block is overridden + 252) 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/combining_implementation_instructions_spec.rb:160 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:38 - 253) Combining implementation instructions can combine and_yield and and_throw + 253) #thrice fails when called with wrong args on the first call # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:106 + # ./spec/rspec/mocks/thrice_counts_spec.rb:44 - 254) Combining implementation instructions can combine and_yield, a block implementation and and_throw + 254) #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/combining_implementation_instructions_spec.rb:115 + # ./spec/rspec/mocks/thrice_counts_spec.rb:8 - 255) Combining implementation instructions can combine and_call_original, with, and_return + 255) #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/combining_implementation_instructions_spec.rb:173 + # ./spec/rspec/mocks/thrice_counts_spec.rb:20 - 256) Combining implementation instructions does not warn about overriding the stub when `:with` is chained off the block + 256) #thrice fails fast when call count is higher than expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:165 + # ./spec/rspec/mocks/thrice_counts_spec.rb:28 - 257) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `stub` + 257) #thrice fails when called with wrong args on the third call # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:25 + # ./spec/rspec/mocks/thrice_counts_spec.rb:61 - 258) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `exactly` + 258) #thrice passes when called thrice with specified args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:37 + # ./spec/rspec/mocks/thrice_counts_spec.rb:14 - 259) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `at_most` + 259) #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/combining_implementation_instructions_spec.rb:49 + # ./spec/rspec/mocks/thrice_counts_spec.rb:36 - 260) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `once` + 260) #thrice fails when called with wrong args on the second call # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:61 + # ./spec/rspec/mocks/thrice_counts_spec.rb:52 - 261) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `ordered` + 261) #thrice when called with negative expectation raises an error # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:78 + # ./spec/rspec/mocks/thrice_counts_spec.rb:72 - 262) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `twice` + 262) 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/combining_implementation_instructions_spec.rb:67 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:93 - 263) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `times` + 263) 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/combining_implementation_instructions_spec.rb:55 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:101 - 264) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `with` + 264) 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/combining_implementation_instructions_spec.rb:31 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:81 - 265) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `at_least` + 265) 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/combining_implementation_instructions_spec.rb:43 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:87 - 266) Combining implementation instructions a double that already has a terminal block action allows the block action to be overridden + 266) 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/combining_implementation_instructions_spec.rb:152 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:22 - 267) 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)` + 267) 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/combining_implementation_instructions_spec.rb:132 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 - 268) 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)` + 268) 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/combining_implementation_instructions_spec.rb:137 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 - 269) 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)` + 269) 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/combining_implementation_instructions_spec.rb:142 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:12 - 270) PreciseCounts passes multiple calls with different args and counts + 270) 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/precise_counts_spec.rb:56 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:25 - 271) PreciseCounts fails when exactly n times method is called less than n times + 271) 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/precise_counts_spec.rb:8 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:19 - 272) PreciseCounts returns the value given by a block when the exactly once method is called + 272) 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/precise_counts_spec.rb:42 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:35 - 273) PreciseCounts fails fast when exactly n times method is called more than n times + 273) 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/precise_counts_spec.rb:17 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:59 - 274) PreciseCounts passes multiple calls with different args + 274) 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/precise_counts_spec.rb:48 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:64 - 275) PreciseCounts passes if exactly n times method is called exactly n times + 275) 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/precise_counts_spec.rb:34 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:45 - 276) PreciseCounts fails when exactly n times method is never called + 276) 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/precise_counts_spec.rb:27 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:49 - 277) expect(...).to receive_messages(:a => 1, :b => 2) provides a matcher description + 277) 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/matchers/receive_messages_spec.rb:101 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:10 - 278) expect(...).to receive_messages(:a => 1, :b => 2) fails with the correct location + 278) 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/matchers/receive_messages_spec.rb:93 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:25 - 279) expect(...).to receive_messages(:a => 1, :b => 2) sets up multiple expectations + 279) 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/matchers/receive_messages_spec.rb:81 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:31 - 280) expect(...).to receive_messages(:a => 1, :b => 2) fails with a sensible message + 280) 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/matchers/receive_messages_spec.rb:87 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:17 - 281) expect(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given + 281) 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/receive_messages_spec.rb:4 + # ./spec/rspec/mocks/example_methods_spec.rb:21 - 282) expect(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a do; end; block is given + 282) 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/receive_messages_spec.rb:10 + # ./spec/rspec/mocks/example_methods_spec.rb:4 - 283) expect(...).to receive_messages(:a => 1, :b => 2) behaves like handles partially mocked objects correctly resets partially mocked objects correctly + 283) 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/receive_messages_spec.rb:22 + # ./spec/rspec/mocks/example_methods_spec.rb:25 - 284) Marshal extensions #dump outside the per-test lifecycle does not duplicate the object before serialization + 284) 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/marshal_extension_spec.rb:58 + # ./spec/rspec/mocks/example_methods_spec.rb:31 - 285) Marshal extensions #dump when rspec-mocks has been fully initialized does not duplicate nil before serialization + 285) 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/marshal_extension_spec.rb:31 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:10 - 286) Marshal extensions #dump when rspec-mocks has been fully initialized applying and unapplying patch is idempotent + 286) 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/marshal_extension_spec.rb:36 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:97 - 287) Marshal extensions #dump when rspec-mocks has been fully initialized does not duplicate other objects before serialization + 287) 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/marshal_extension_spec.rb:24 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:134 - 288) Marshal extensions #dump when rspec-mocks has been fully initialized duplicates objects with stubbed or mocked implementations before serialization + 288) 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/marshal_extension_spec.rb:17 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:128 - 289) 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 + 289) Expected argument verification (when `#with` is called) when doubling a loaded class for a method with keyword args when using `send` matches against keyword arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:45 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:150 - 290) 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 + 290) Expected argument verification (when `#with` is called) when doubling a loaded class when `any_args` is used as the first argument, with too many additional args is disallowed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:58 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:37 - 291) 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 + 291) Expected argument verification (when `#with` is called) when doubling a loaded class when `any_args` is used as the only argument is allowed regardless of how many args the method requires # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:22 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:29 - 292) 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 + 292) Expected argument verification (when `#with` is called) when doubling a loaded class when `any_args` is used as the first argument, with an allowed number of additional args is allowed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:66 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:45 - 293) 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 + 293) Expected argument verification (when `#with` is called) when doubling a loaded class when a list of args is provided does not allow a method expectation with an arity mismatch # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:29 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:111 - 294) 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 + 294) 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_wrap_original_spec.rb:38 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:105 - 295) 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 + 295) Expected argument verification (when `#with` is called) when doubling a loaded class when `no_args` is used allows a method expectation on a method that has defaults for all arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:14 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:66 - 296) 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 + 296) Expected argument verification (when `#with` is called) when doubling a loaded class when `no_args` is used does not allow a method expectation on a method that has required arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:52 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:72 - 297) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original ignores previous stubs + 297) Expected argument verification (when `#with` is called) when doubling a loaded class when `no_args` is used allows a method expectation on a method that accepts no arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:52 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:58 - 298) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along the original method + 298) Expected argument verification (when `#with` is called) when doubling a loaded class when `no_args` is used for a method with required keyword args covers the required args when `any_args` is last # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:29 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:80 - 299) 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 + 299) Expected argument verification (when `#with` is called) when doubling a loaded class when `no_args` is used for a method with required keyword args does not cover the required args when there are args after `any_args` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:66 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:86 - 300) 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 + 300) Expected argument verification (when `#with` is called) when doubling a loaded class when `with` is called with no args fails with an error suggesting the user use `no_args` instead # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:22 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:119 - 301) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along any supplied block + 301) Expected argument verification (when `#with` is called) when doubling an unloaded class allows any arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_wrap_original_spec.rb:45 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:11 - 302) 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 + 302) 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/and_wrap_original_spec.rb:58 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:139 - 303) 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 + 303) 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/and_wrap_original_spec.rb:14 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:125 - 304) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along the message arguments + 304) 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/and_wrap_original_spec.rb:38 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:132 - 305) and_wrap_original on a pure test double raises an error + 305) 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/and_wrap_original_spec.rb:92 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:146 - 306) and_wrap_original on a pure test double raises an error even if the double object responds to the message + 306) 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/and_wrap_original_spec.rb:100 + # ./spec/rspec/mocks/stub_implementation_spec.rb:13 - 307) Supporting Rails monkey patches works mocking any instance when Rails has monkey patched #with + 307) 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/integration/rails_support_spec.rb:37 + # ./spec/rspec/mocks/stub_implementation_spec.rb:21 - 308) Supporting Rails monkey patches works when Rails has monkey patched #with + 308) 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/integration/rails_support_spec.rb:10 + # ./spec/rspec/mocks/stub_implementation_spec.rb:5 - 309) Constructing a verifying double can only be named with a string or a module + 309) 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/verifying_doubles/construction_spec.rb:162 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:100 - 310) Constructing a verifying double object doubles declares the class to verifying double callbacks + 310) 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/verifying_doubles/construction_spec.rb:131 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:92 - 311) Constructing a verifying double instance doubles can be constructed with a struct + 311) 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/verifying_doubles/construction_spec.rb:24 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:29 - 312) Constructing a verifying double instance doubles allows named constants to be looked up and declared to verifying double callbacks + 312) 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/verifying_doubles/construction_spec.rb:29 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:52 - 313) Constructing a verifying double instance doubles allows anonymous constants to be looked up and declared to verifying double callbacks + 313) 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/verifying_doubles/construction_spec.rb:40 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:66 - 314) Constructing a verifying double instance doubles allows classes to be customised + 314) 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/verifying_doubles/construction_spec.rb:52 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:38 - 315) Constructing a verifying double instance doubles cannot be constructed with a non-module object + 315) 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/verifying_doubles/construction_spec.rb:18 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:14 - 316) Constructing a verifying double instance doubles any_instance calls the callback for allow_any_instance_of + 316) 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/verifying_doubles/construction_spec.rb:85 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:58 - 317) Constructing a verifying double instance doubles any_instance should not call the callback if verify_partial_doubles is off + 317) 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/verifying_doubles/construction_spec.rb:93 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:45 - 318) Constructing a verifying double instance doubles any_instance calls the callback for expect_any_instance_of + 318) 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/verifying_doubles/construction_spec.rb:77 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:22 - 319) Constructing a verifying double class doubles declares anonymous modules to verifying double callbacks + 319) 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/verifying_doubles/construction_spec.rb:119 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:29 - 320) Constructing a verifying double class doubles cannot be constructed with a non-module object + 320) 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/verifying_doubles/construction_spec.rb:104 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:22 - 321) Constructing a verifying double class doubles declares named modules to verifying double callbacks + 321) 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/verifying_doubles/construction_spec.rb:110 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:14 - 322) Constructing a verifying double when verify_doubled_constant_names config option is set prevents creation of class doubles for unloaded constants + 322) 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/verifying_doubles/construction_spec.rb:155 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:45 - 323) Constructing a verifying double when verify_doubled_constant_names config option is set prevents creation of instance doubles for unloaded constants + 323) 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/verifying_doubles/construction_spec.rb:149 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:66 - 324) Using the legacy should syntax #stub_chain can stub a sequence of messages + 324) 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/should_syntax_spec.rb:61 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:58 - 325) Using the legacy should syntax #stub_chain raises an error with a useful message + 325) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:52 - 326) Using the legacy should syntax #should_not_receive fails when the message is received + 326) 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/should_syntax_spec.rb:194 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:38 - 327) Using the legacy should syntax #should_not_receive does not fail on verification if the message is not received + 327) Constructing a verifying double can only be named with a string or a module # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:201 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:162 - 328) Using the legacy should syntax #should_not_receive raises an error with a useful message + 328) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:131 - 329) Using the legacy should syntax #should_not_receive returns a negative message expectation + 329) Constructing a verifying double instance doubles cannot be constructed with a non-module object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:190 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:18 - 330) Using the legacy should syntax #received_message? answers false for received_message? when message received with incorrect args + 330) Constructing a verifying double instance doubles allows classes to be customised # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:23 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:52 - 331) Using the legacy should syntax #received_message? answers true for received_message? when message received with correct args + 331) Constructing a verifying double instance doubles can be constructed with a struct # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:18 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:24 - 332) Using the legacy should syntax #received_message? answers false for received_message? when no messages received + 332) Constructing a verifying double instance doubles allows named constants to be looked up and declared to verifying double callbacks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:9 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:29 - 333) Using the legacy should syntax #received_message? answers true for received_message? when message received + 333) Constructing a verifying double instance doubles allows anonymous constants to be looked up and declared to verifying double callbacks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:13 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:40 - 334) Using the legacy should syntax #any_instance can mock a method + 334) Constructing a verifying double instance doubles any_instance should not call the callback if verify_partial_doubles is off # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:242 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:93 - 335) Using the legacy should syntax #any_instance affects previously stubbed instances when mocking a method + 335) Constructing a verifying double instance doubles any_instance calls the callback for expect_any_instance_of # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:263 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:77 - 336) Using the legacy should syntax #any_instance affects previously stubbed instances when stubbing a method + 336) Constructing a verifying double instance doubles any_instance calls the callback for allow_any_instance_of # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:255 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:85 - 337) Using the legacy should syntax #any_instance adds a class to the current space + 337) Constructing a verifying double when verify_doubled_constant_names config option is set prevents creation of class doubles for unloaded constants # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:231 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:155 - 338) Using the legacy should syntax #any_instance raises an error with a useful message + 338) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:149 - 339) Using the legacy should syntax #any_instance can stub a method + 339) Constructing a verifying double class doubles declares named modules to verifying double callbacks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:237 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:110 - 340) Using the legacy should syntax #any_instance can get method objects for the fluent interface + 340) 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/should_syntax_spec.rb:248 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:119 - 341) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_yield' + 341) Constructing a verifying double class doubles cannot be constructed with a non-module object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:285 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:104 - 342) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_raise' + 342) #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/should_syntax_spec.rb:281 + # ./spec/rspec/mocks/any_instance_spec.rb:1281 - 343) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'stub' follows 'with' + 343) #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/should_syntax_spec.rb:273 + # ./spec/rspec/mocks/any_instance_spec.rb:1286 - 344) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_return' + 344) #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/should_syntax_spec.rb:277 + # ./spec/rspec/mocks/any_instance_spec.rb:91 - 345) Using the legacy should syntax #any_instance invocation order #stub behaves as 'every instance' handles `unstub` on subclasses + 345) #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/should_syntax_spec.rb:293 + # ./spec/rspec/mocks/any_instance_spec.rb:291 - 346) Using the legacy should syntax #any_instance invocation order #unstub removes stubs even if they have already been invoked + 346) #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/should_syntax_spec.rb:403 + # ./spec/rspec/mocks/any_instance_spec.rb:248 - 347) Using the legacy should syntax #any_instance invocation order #unstub removes all stubs with the supplied method name + 347) #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/should_syntax_spec.rb:396 + # ./spec/rspec/mocks/any_instance_spec.rb:254 - 348) Using the legacy should syntax #any_instance invocation order #unstub replaces the stubbed method with the original method + 348) #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/should_syntax_spec.rb:390 + # ./spec/rspec/mocks/any_instance_spec.rb:316 - 349) Using the legacy should syntax #any_instance invocation order #unstub removes stubs from sub class after Invocation when super class was originally stubbed + 349) #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/should_syntax_spec.rb:411 + # ./spec/rspec/mocks/any_instance_spec.rb:311 - 350) Using the legacy should syntax #any_instance invocation order #unstub removes stubs set directly on an instance + 350) #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/should_syntax_spec.rb:419 + # ./spec/rspec/mocks/any_instance_spec.rb:229 - 351) Using the legacy should syntax #any_instance invocation order #unstub does not remove any expectations with the same method name + 351) #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/should_syntax_spec.rb:435 + # ./spec/rspec/mocks/any_instance_spec.rb:235 - 352) Using the legacy should syntax #any_instance invocation order #unstub raises a MockExpectationError if the method has not been stubbed + 352) #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/should_syntax_spec.rb:443 + # ./spec/rspec/mocks/any_instance_spec.rb:349 - 353) Using the legacy should syntax #any_instance invocation order #unstub does not remove message expectations set directly on an instance + 353) #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/should_syntax_spec.rb:427 + # ./spec/rspec/mocks/any_instance_spec.rb:213 - 354) Using the legacy should syntax #any_instance invocation order #unstub does not get confused about string vs symbol usage for the message + 354) #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/should_syntax_spec.rb:449 + # ./spec/rspec/mocks/any_instance_spec.rb:323 - 355) Using the legacy should syntax #any_instance invocation order #should_receive raises an error if 'should_receive' follows 'with' + 355) #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/should_syntax_spec.rb:335 + # ./spec/rspec/mocks/any_instance_spec.rb:328 - 356) Using the legacy should syntax #any_instance invocation order #should_not_receive fails if the method is called + 356) #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/should_syntax_spec.rb:341 + # ./spec/rspec/mocks/any_instance_spec.rb:365 - 357) Using the legacy should syntax #any_instance invocation order #should_not_receive passes if only a different method is called + 357) #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/should_syntax_spec.rb:353 + # ./spec/rspec/mocks/any_instance_spec.rb:380 - 358) Using the legacy should syntax #any_instance invocation order #should_not_receive passes if no method is called + 358) #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/should_syntax_spec.rb:349 + # ./spec/rspec/mocks/any_instance_spec.rb:370 - 359) Using the legacy should syntax #any_instance invocation order #should_not_receive prevents confusing double-negative expressions involving `never` + 359) #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/should_syntax_spec.rb:382 + # ./spec/rspec/mocks/any_instance_spec.rb:396 - 360) Using the legacy should syntax #any_instance invocation order #should_not_receive with constraints fails if the method is called with the specified parameters + 360) #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/should_syntax_spec.rb:359 + # ./spec/rspec/mocks/any_instance_spec.rb:385 - 361) Using the legacy should syntax #any_instance invocation order #should_not_receive with constraints passes if the method is called with different parameters + 361) #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/should_syntax_spec.rb:367 + # ./spec/rspec/mocks/any_instance_spec.rb:375 - 362) 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 + 362) #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/should_syntax_spec.rb:374 + # ./spec/rspec/mocks/any_instance_spec.rb:390 - 363) Using the legacy should syntax #any_instance invocation order #stub_chain raises an error if 'stub_chain' follows 'and_return' + 363) #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/should_syntax_spec.rb:303 + # ./spec/rspec/mocks/any_instance_spec.rb:335 - 364) Using the legacy should syntax #any_instance invocation order #stub_chain affects previously stubbed instances + 364) #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/should_syntax_spec.rb:324 + # ./spec/rspec/mocks/any_instance_spec.rb:340 - 365) 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 + 365) #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/should_syntax_spec.rb:313 + # ./spec/rspec/mocks/any_instance_spec.rb:97 - 366) 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 + 366) #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/should_syntax_spec.rb:318 + # ./spec/rspec/mocks/any_instance_spec.rb:115 - 367) 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 + 367) #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/should_syntax_spec.rb:308 + # ./spec/rspec/mocks/any_instance_spec.rb:120 - 368) Using the legacy should syntax #unstub restores the correct implementations when stubbed and unstubbed on a parent and child class + 368) #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/should_syntax_spec.rb:111 + # ./spec/rspec/mocks/any_instance_spec.rb:105 - 369) Using the legacy should syntax #unstub replaces the stubbed method with the original method + 369) #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/should_syntax_spec.rb:84 + # ./spec/rspec/mocks/any_instance_spec.rb:110 - 370) Using the legacy should syntax #unstub removes all stubs with the supplied method name + 370) #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/should_syntax_spec.rb:92 + # ./spec/rspec/mocks/any_instance_spec.rb:127 - 371) Using the legacy should syntax #unstub raises an error with a useful message + 371) #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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/any_instance_spec.rb:144 - 372) Using the legacy should syntax #unstub does not remove any expectations with the same method name + 372) #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/should_syntax_spec.rb:101 + # ./spec/rspec/mocks/any_instance_spec.rb:163 - 373) Using the legacy should syntax #unstub raises a MockExpectationError if the method has not been stubbed + 373) #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/should_syntax_spec.rb:124 + # ./spec/rspec/mocks/any_instance_spec.rb:138 - 374) Using the legacy should syntax #should_receive does not fail on verification if the message is received + 374) #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/should_syntax_spec.rb:139 + # ./spec/rspec/mocks/any_instance_spec.rb:157 - 375) Using the legacy should syntax #should_receive raises an error with a useful message + 375) #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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/any_instance_spec.rb:150 - 376) Using the legacy should syntax #should_receive can set a canned response + 376) #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/should_syntax_spec.rb:146 + # ./spec/rspec/mocks/any_instance_spec.rb:172 - 377) Using the legacy should syntax #should_receive fails on verification if the message is not received + 377) #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/should_syntax_spec.rb:133 + # ./spec/rspec/mocks/any_instance_spec.rb:203 - 378) Using the legacy should syntax #should_receive with an options hash uses the message supplied with :message after a similar stub + 378) #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/should_syntax_spec.rb:178 + # ./spec/rspec/mocks/any_instance_spec.rb:188 - 379) Using the legacy should syntax #should_receive with an options hash uses the message supplied with :message + 379) #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/should_syntax_spec.rb:170 + # ./spec/rspec/mocks/any_instance_spec.rb:181 - 380) Using the legacy should syntax #should_receive with an options hash reports the file and line submitted with :expected_from + 380) #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/should_syntax_spec.rb:159 + # ./spec/rspec/mocks/any_instance_spec.rb:196 - 381) Using the legacy should syntax #stub raises an error with a useful message + 381) #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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/any_instance_spec.rb:261 - 382) Using the legacy should syntax #stub sets up a canned response + 382) #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/should_syntax_spec.rb:40 + # ./spec/rspec/mocks/any_instance_spec.rb:266 - 383) Using the legacy should syntax #stub returns `nil` from all terminal actions to discourage further configuration + 383) #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/should_syntax_spec.rb:34 + # ./spec/rspec/mocks/any_instance_spec.rb:278 - 384) Using the legacy should syntax #stub can stub multiple messages using a hash + 384) #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/should_syntax_spec.rb:46 + # ./spec/rspec/mocks/any_instance_spec.rb:271 - 385) Using the legacy should syntax #stub supports options + 385) #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/should_syntax_spec.rb:30 + # ./spec/rspec/mocks/any_instance_spec.rb:301 - 386) A chained method stub returns expected value from chaining four method calls + 386) #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/stub_chain_spec.rb:96 + # ./spec/rspec/mocks/any_instance_spec.rb:1266 - 387) A chained method stub returns expected value from two chains with shared messages at the beginning + 387) #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/stub_chain_spec.rb:152 + # ./spec/rspec/mocks/any_instance_spec.rb:1259 - 388) A chained method stub returns expected value when chain is a dot separated string, like stub_chain('msg1.msg2.msg3') + 388) #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/stub_chain_spec.rb:147 + # ./spec/rspec/mocks/any_instance_spec.rb:1250 - 389) A chained method stub handles private instance methods (like Object#select) in the middle of a chain + 389) #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/stub_chain_spec.rb:160 + # ./spec/rspec/mocks/any_instance_spec.rb:47 - 390) A chained method stub does not get confused by symbol vs string usage for the messages + 390) #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/stub_chain_spec.rb:6 + # ./spec/rspec/mocks/any_instance_spec.rb:63 - 391) A chained method stub with two methods in chain accepts any number of arguments to the stubbed messages in the chain + 391) #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/stub_chain_spec.rb:38 + # ./spec/rspec/mocks/any_instance_spec.rb:67 - 392) A chained method stub with two methods in chain using a hash returns the value of the key/value pair + 392) #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/stub_chain_spec.rb:59 + # ./spec/rspec/mocks/any_instance_spec.rb:59 - 393) A chained method stub with two methods in chain using and_return returns expected value from chaining two method calls + 393) #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/stub_chain_spec.rb:45 + # ./spec/rspec/mocks/any_instance_spec.rb:55 - 394) A chained method stub with two methods in chain using a block returns the correct value + 394) #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/stub_chain_spec.rb:52 + # ./spec/rspec/mocks/any_instance_spec.rb:71 - 395) A chained method stub with four methods in chain using a hash returns the value of the key/value pair + 395) #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/stub_chain_spec.rb:82 + # ./spec/rspec/mocks/any_instance_spec.rb:78 - 396) A chained method stub with four methods in chain using and_return returns expected value from chaining two method calls + 396) #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/stub_chain_spec.rb:68 + # ./spec/rspec/mocks/any_instance_spec.rb:83 - 397) A chained method stub with four methods in chain using a block returns the correct value + 397) #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/stub_chain_spec.rb:75 + # ./spec/rspec/mocks/any_instance_spec.rb:1194 - 398) A chained method stub with four methods in chain using a hash with a string key returns the value of the key/value pair + 398) #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/stub_chain_spec.rb:89 + # ./spec/rspec/mocks/any_instance_spec.rb:1185 - 399) A chained method stub with messages shared across multiple chains using => value starting with different messages returns expected value + 399) #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/stub_chain_spec.rb:136 + # ./spec/rspec/mocks/any_instance_spec.rb:1213 - 400) A chained method stub with messages shared across multiple chains using => value starting with the same message returns expected value + 400) #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/stub_chain_spec.rb:126 + # ./spec/rspec/mocks/any_instance_spec.rb:1207 - 401) A chained method stub with messages shared across multiple chains using and_return starting with the same message returns expected value + 401) #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/stub_chain_spec.rb:104 + # ./spec/rspec/mocks/any_instance_spec.rb:1231 - 402) A chained method stub with messages shared across multiple chains using and_return starting with the different messages returns expected value + 402) #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/stub_chain_spec.rb:114 + # ./spec/rspec/mocks/any_instance_spec.rb:1240 - 403) A chained method stub with one method in chain using a hash returns the value of the key/value pair + 403) #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/stub_chain_spec.rb:30 + # ./spec/rspec/mocks/any_instance_spec.rb:1300 - 404) A chained method stub with one method in chain using and_return returns expected value from chaining only one method call + 404) #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/stub_chain_spec.rb:16 + # ./spec/rspec/mocks/any_instance_spec.rb:1305 - 405) A chained method stub with one method in chain using a block returns the correct value + 405) #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/stub_chain_spec.rb:23 + # ./spec/rspec/mocks/any_instance_spec.rb:547 - 406) when a class method is aliased on a subclass and the method is mocked restores the original aliased public method + 406) #any_instance setting a message expectation does not modify the return value of stubs set on an instance of a subclass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/stash_spec.rb:26 + # ./spec/rspec/mocks/any_instance_spec.rb:563 - 407) RSpec::Mocks::Space tracks proxies in parent and child space separately + 407) #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/space_spec.rb:108 + # ./spec/rspec/mocks/any_instance_spec.rb:523 - 408) RSpec::Mocks::Space raises ArgumentError with message if object is symbol + 408) #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/space_spec.rb:241 + # ./spec/rspec/mocks/any_instance_spec.rb:585 - 409) RSpec::Mocks::Space can be diffed in a failure when it has references to an error generator via a proxy + 409) #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/space_spec.rb:229 + # ./spec/rspec/mocks/any_instance_spec.rb:538 - 410) RSpec::Mocks::Space only adds an instance once + 410) #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/space_spec.rb:120 + # ./spec/rspec/mocks/any_instance_spec.rb:782 - 411) RSpec::Mocks::Space#reset_all allows Array#reverse to be stubbed + 411) #any_instance setting a message expectation properly notifies any instance recorders at multiple levels of hierarchy when a directly stubbed object receives a message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:61 + # ./spec/rspec/mocks/any_instance_spec.rb:572 - 412) RSpec::Mocks::Space#reset_all resets all mocks within + 412) #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/space_spec.rb:50 + # ./spec/rspec/mocks/any_instance_spec.rb:555 - 413) RSpec::Mocks::Space#proxies_of(klass) returns proxies + 413) #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/space_spec.rb:69 + # ./spec/rspec/mocks/any_instance_spec.rb:792 - 414) RSpec::Mocks::Space#proxies_of(klass) returns only the proxies whose object is an instance of the given class + 414) #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/space_spec.rb:86 + # ./spec/rspec/mocks/any_instance_spec.rb:1003 - 415) RSpec::Mocks::Space#proxies_of(klass) looks in the parent space for matching proxies + 415) #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/space_spec.rb:97 + # ./spec/rspec/mocks/any_instance_spec.rb:1008 - 416) RSpec::Mocks::Space#constant_mutator_for can still return a mutator from a parent context + 416) #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/space_spec.rb:192 + # ./spec/rspec/mocks/any_instance_spec.rb:1022 - 417) RSpec::Mocks::Space#constant_mutator_for returns the mutator for the given const name + 417) #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/space_spec.rb:182 + # ./spec/rspec/mocks/any_instance_spec.rb:1016 - 418) RSpec::Mocks::Space#verify_all verifies all any_instance recorders within + 418) #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/space_spec.rb:25 + # ./spec/rspec/mocks/any_instance_spec.rb:933 - 419) RSpec::Mocks::Space#verify_all verifies all mocks within + 419) #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/space_spec.rb:9 + # ./spec/rspec/mocks/any_instance_spec.rb:939 - 420) RSpec::Mocks::Space#verify_all does not reset the proxies (as that should be delayed until reset_all) + 420) #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/space_spec.rb:39 + # ./spec/rspec/mocks/any_instance_spec.rb:948 - 421) RSpec::Mocks::Space#any_instance_recorder_for can still return a recorder from a parent context + 421) #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/space_spec.rb:212 + # ./spec/rspec/mocks/any_instance_spec.rb:924 - 422) RSpec::Mocks::Space#any_instance_recorder_for does not store a parent's proxy in the child space + 422) #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/space_spec.rb:219 + # ./spec/rspec/mocks/any_instance_spec.rb:918 - 423) RSpec::Mocks::Space#any_instance_recorder_for returns the recorder for the given class + 423) #any_instance setting a message expectation message count the 'once' constraint passes for one invocation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:206 + # ./spec/rspec/mocks/any_instance_spec.rb:844 - 424) RSpec::Mocks::Space#ensure_registered does not store a parent's proxy in the child space + 424) #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/space_spec.rb:154 + # ./spec/rspec/mocks/any_instance_spec.rb:849 - 425) RSpec::Mocks::Space#ensure_registered can still return a proxy from a parent context + 425) #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/space_spec.rb:147 + # ./spec/rspec/mocks/any_instance_spec.rb:864 - 426) RSpec::Mocks::Space#ensure_registered returns the proxy for the given object + 426) #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/space_spec.rb:138 + # ./spec/rspec/mocks/any_instance_spec.rb:856 - 427) RSpec::Mocks::Space#proxy_for can still return a proxy from a parent context + 427) #any_instance setting a message expectation message count the 'twice' constraint passes for two invocations # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/space_spec.rb:147 + # ./spec/rspec/mocks/any_instance_spec.rb:875 - 428) RSpec::Mocks::Space#proxy_for returns the proxy for the given object + 428) #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/space_spec.rb:138 + # ./spec/rspec/mocks/any_instance_spec.rb:881 - 429) RSpec::Mocks::Space#proxy_for does not store a parent's proxy in the child space + 429) #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/space_spec.rb:154 + # ./spec/rspec/mocks/any_instance_spec.rb:964 - 430) RSpec::Mocks::Space#registered? returns true if registered in this space + 430) #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/space_spec.rb:166 + # ./spec/rspec/mocks/any_instance_spec.rb:958 - 431) RSpec::Mocks::Space#registered? returns true if registered in a parent space + 431) #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/space_spec.rb:171 + # ./spec/rspec/mocks/any_instance_spec.rb:973 - 432) RSpec::Mocks::Space#registered? returns false if not registered in this or a parent space + 432) #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/space_spec.rb:176 + # ./spec/rspec/mocks/any_instance_spec.rb:906 - 433) when the should syntax is enabled on a non-default syntax host continues to warn about the should syntax + 433) #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/should_syntax_spec.rb:574 + # ./spec/rspec/mocks/any_instance_spec.rb:898 - 434) After a test double has been torn down for a plain double disallows being turned into a null object + 434) #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/expiration_spec.rb:47 + # ./spec/rspec/mocks/any_instance_spec.rb:892 - 435) After a test double has been torn down for a plain double disallows stubbing new methods (with receive_messages) + 435) #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/expiration_spec.rb:29 + # ./spec/rspec/mocks/any_instance_spec.rb:987 - 436) After a test double has been torn down for a plain double disallows previously stubbed methods + 436) #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/expiration_spec.rb:19 + # ./spec/rspec/mocks/any_instance_spec.rb:981 - 437) After a test double has been torn down for a plain double disallows being checked for nullness + 437) #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/expiration_spec.rb:51 + # ./spec/rspec/mocks/any_instance_spec.rb:993 - 438) After a test double has been torn down for a plain double disallows stubbing new methods (with receive) + 438) #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/expiration_spec.rb:23 + # ./spec/rspec/mocks/any_instance_spec.rb:636 - 439) After a test double has been torn down for a plain double disallows previously mocked methods + 439) #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/expiration_spec.rb:15 + # ./spec/rspec/mocks/any_instance_spec.rb:645 - 440) After a test double has been torn down for a plain double disallows mocking new methods + 440) #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/expiration_spec.rb:41 + # ./spec/rspec/mocks/any_instance_spec.rb:739 - 441) After a test double has been torn down for a plain double disallows stubbing new message chains + 441) #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/expiration_spec.rb:35 + # ./spec/rspec/mocks/any_instance_spec.rb:747 - 442) After a test double has been torn down for a class_double disallows stubbing new methods (with receive_messages) + 442) #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/expiration_spec.rb:29 + # ./spec/rspec/mocks/any_instance_spec.rb:734 - 443) After a test double has been torn down for a class_double disallows previously stubbed methods + 443) #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/expiration_spec.rb:19 + # ./spec/rspec/mocks/any_instance_spec.rb:754 - 444) After a test double has been torn down for a class_double disallows being turned into a null object + 444) #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/expiration_spec.rb:47 + # ./spec/rspec/mocks/any_instance_spec.rb:763 - 445) After a test double has been torn down for a class_double disallows mocking new methods + 445) #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/expiration_spec.rb:41 + # ./spec/rspec/mocks/any_instance_spec.rb:769 - 446) After a test double has been torn down for a class_double disallows stubbing new methods (with receive) + 446) #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/expiration_spec.rb:23 + # ./spec/rspec/mocks/any_instance_spec.rb:612 - 447) After a test double has been torn down for a class_double disallows being checked for nullness + 447) #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/expiration_spec.rb:51 + # ./spec/rspec/mocks/any_instance_spec.rb:684 - 448) After a test double has been torn down for a class_double disallows previously mocked methods + 448) #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/expiration_spec.rb:15 + # ./spec/rspec/mocks/any_instance_spec.rb:656 - 449) After a test double has been torn down for a class_double disallows stubbing new message chains + 449) #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/expiration_spec.rb:35 + # ./spec/rspec/mocks/any_instance_spec.rb:676 - 450) After a test double has been torn down for an instance_double disallows being turned into a null object + 450) #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/expiration_spec.rb:47 + # ./spec/rspec/mocks/any_instance_spec.rb:669 - 451) After a test double has been torn down for an instance_double disallows mocking new methods + 451) #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/expiration_spec.rb:41 + # ./spec/rspec/mocks/any_instance_spec.rb:661 - 452) After a test double has been torn down for an instance_double disallows stubbing new methods (with receive_messages) + 452) #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/expiration_spec.rb:29 + # ./spec/rspec/mocks/any_instance_spec.rb:724 - 453) After a test double has been torn down for an instance_double disallows previously stubbed methods + 453) #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/expiration_spec.rb:19 + # ./spec/rspec/mocks/any_instance_spec.rb:713 - 454) After a test double has been torn down for an instance_double disallows previously mocked methods + 454) #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/expiration_spec.rb:15 + # ./spec/rspec/mocks/any_instance_spec.rb:694 - 455) After a test double has been torn down for an instance_double disallows stubbing new message chains + 455) #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/expiration_spec.rb:35 + # ./spec/rspec/mocks/any_instance_spec.rb:700 - 456) After a test double has been torn down for an instance_double disallows being checked for nullness + 456) #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/expiration_spec.rb:51 + # ./spec/rspec/mocks/any_instance_spec.rb:831 - 457) After a test double has been torn down for an instance_double disallows stubbing new methods (with receive) + 457) #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/expiration_spec.rb:23 + # ./spec/rspec/mocks/any_instance_spec.rb:807 - 458) After a test double has been torn down for an object_double disallows previously mocked methods + 458) #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/expiration_spec.rb:15 + # ./spec/rspec/mocks/any_instance_spec.rb:824 - 459) After a test double has been torn down for an object_double disallows being checked for nullness + 459) #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/expiration_spec.rb:51 + # ./spec/rspec/mocks/any_instance_spec.rb:813 - 460) After a test double has been torn down for an object_double disallows mocking new methods + 460) #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/expiration_spec.rb:41 + # ./spec/rspec/mocks/any_instance_spec.rb:595 - 461) After a test double has been torn down for an object_double disallows stubbing new methods (with receive) + 461) #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/expiration_spec.rb:23 + # ./spec/rspec/mocks/any_instance_spec.rb:602 - 462) After a test double has been torn down for an object_double disallows being turned into a null object + 462) #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/expiration_spec.rb:47 + # ./spec/rspec/mocks/any_instance_spec.rb:622 - 463) After a test double has been torn down for an object_double disallows stubbing new methods (with receive_messages) + 463) #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/expiration_spec.rb:29 + # ./spec/rspec/mocks/any_instance_spec.rb:1331 - 464) After a test double has been torn down for an object_double disallows stubbing new message chains + 464) #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/expiration_spec.rb:35 + # ./spec/rspec/mocks/any_instance_spec.rb:1312 - 465) After a test double has been torn down for an object_double disallows previously stubbed methods + 465) #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/expiration_spec.rb:19 + # ./spec/rspec/mocks/any_instance_spec.rb:1323 - 466) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks on any_instance before verifying a double allowance + 466) #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/partial_double_spec.rb:517 + # ./spec/rspec/mocks/any_instance_spec.rb:418 - 467) when verify_partial_doubles configuration option is set allows valid methods to be expected + 467) #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/partial_double_spec.rb:375 + # ./spec/rspec/mocks/any_instance_spec.rb:427 - 468) when verify_partial_doubles configuration option is set does not allow missing methods to be called on any_instance + 468) #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/partial_double_spec.rb:547 + # ./spec/rspec/mocks/any_instance_spec.rb:411 - 469) when verify_partial_doubles configuration option is set can be temporarily supressed and nested + 469) #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/partial_double_spec.rb:398 + # ./spec/rspec/mocks/any_instance_spec.rb:436 - 470) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks before verifying an expectation + 470) #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/partial_double_spec.rb:421 + # ./spec/rspec/mocks/any_instance_spec.rb:444 - 471) when verify_partial_doubles configuration option is set allows the mock to raise an error with yield + 471) #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/partial_double_spec.rb:566 + # ./spec/rspec/mocks/any_instance_spec.rb:452 - 472) when verify_partial_doubles configuration option is set avoids deadlocks when a proxy is accessed from within a `before_verifying_doubles` callback + 472) #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/partial_double_spec.rb:443 + # ./spec/rspec/mocks/any_instance_spec.rb:405 - 473) when verify_partial_doubles configuration option is set does not allow a non-existing method to be called on any_instance + 473) #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/partial_double_spec.rb:541 + # ./spec/rspec/mocks/any_instance_spec.rb:1169 - 474) when verify_partial_doubles configuration option is set allows stubbing and calls the stubbed implementation + 474) #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/partial_double_spec.rb:572 + # ./spec/rspec/mocks/any_instance_spec.rb:1159 - 475) when verify_partial_doubles configuration option is set temporarily supressing partial doubles does not affect normal verifying doubles + 475) #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/partial_double_spec.rb:413 + # ./spec/rspec/mocks/any_instance_spec.rb:1091 - 476) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks before verifying an allowance + 476) #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/partial_double_spec.rb:432 + # ./spec/rspec/mocks/any_instance_spec.rb:1087 - 477) when verify_partial_doubles configuration option is set can be temporarily supressed + 477) #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/partial_double_spec.rb:385 + # ./spec/rspec/mocks/any_instance_spec.rb:1083 - 478) when verify_partial_doubles configuration option is set does not allow a non-existing method to be expected + 478) #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/partial_double_spec.rb:487 + # ./spec/rspec/mocks/any_instance_spec.rb:1056 - 479) when verify_partial_doubles configuration option is set allows private methods to be expected + 479) #any_instance when resetting post-verification existing method with stubbing public methods restores the class to its original state after each example when no instance is created # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:380 + # ./spec/rspec/mocks/any_instance_spec.rb:1049 - 480) when verify_partial_doubles configuration option is set allows a method defined with method_missing to be expected + 480) #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/partial_double_spec.rb:502 + # ./spec/rspec/mocks/any_instance_spec.rb:1065 - 481) when verify_partial_doubles configuration option is set verifies arity range when matching arguments + 481) #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/partial_double_spec.rb:497 + # ./spec/rspec/mocks/any_instance_spec.rb:1147 - 482) when verify_partial_doubles configuration option is set verifies arity range when receiving a message + 482) #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/partial_double_spec.rb:556 + # ./spec/rspec/mocks/any_instance_spec.rb:1114 - 483) when verify_partial_doubles configuration option is set allows private methods to be expected on any_instance expectation + 483) #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/partial_double_spec.rb:512 + # ./spec/rspec/mocks/any_instance_spec.rb:1106 - 484) when verify_partial_doubles configuration option is set allows valid methods to be expected on any_instance + 484) #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/partial_double_spec.rb:507 + # ./spec/rspec/mocks/any_instance_spec.rb:1110 - 485) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks on any_instance before verifying a double + 485) #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/partial_double_spec.rb:529 + # ./spec/rspec/mocks/any_instance_spec.rb:1126 - 486) when verify_partial_doubles configuration option is set does not allow a spy on unimplemented method + 486) #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/partial_double_spec.rb:491 + # ./spec/rspec/mocks/any_instance_spec.rb:1121 - 487) when verify_partial_doubles configuration option is set for a class only runs the `before_verifying_doubles` callback for the class (not for superclasses) + 487) #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/partial_double_spec.rb:462 + # ./spec/rspec/mocks/any_instance_spec.rb:1136 - 488) when verify_partial_doubles configuration option is set for a class can be temporarily supressed + 488) #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/partial_double_spec.rb:474 + # ./spec/rspec/mocks/any_instance_spec.rb:1141 - 489) when verify_partial_doubles configuration option is set when `.new` is stubbed uses the method signature from `#initialize` for arg verification + 489) #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/partial_double_spec.rb:582 + # ./spec/rspec/mocks/any_instance_spec.rb:512 - 490) when verify_partial_doubles configuration option is set when `.new` is stubbed on a class that has undefined `new` prevents it from being stubbed + 490) #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/partial_double_spec.rb:599 + # ./spec/rspec/mocks/any_instance_spec.rb:468 - 491) 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 + 491) #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/partial_double_spec.rb:588 + # ./spec/rspec/mocks/any_instance_spec.rb:472 - 492) 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 + 492) #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/partial_double_spec.rb:626 + # ./spec/rspec/mocks/any_instance_spec.rb:477 - 493) 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 + 493) #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/partial_double_spec.rb:640 + # ./spec/rspec/mocks/any_instance_spec.rb:460 - 494) 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 + 494) #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/partial_double_spec.rb:611 + # ./spec/rspec/mocks/any_instance_spec.rb:504 - 495) and_call_original on a partial double that overrides #method still works even though #method has been overridden + 495) #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/and_call_original_spec.rb:344 + # ./spec/rspec/mocks/any_instance_spec.rb:497 - 496) and_call_original on a partial double that overrides #method works for a singleton method + 496) #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/and_call_original_spec.rb:349 + # ./spec/rspec/mocks/any_instance_spec.rb:490 - 497) and_call_original on a partial double works for aliased methods + 497) 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/and_call_original_spec.rb:225 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:25 - 498) and_call_original on a partial double works for class methods defined on the Class class + 498) 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/and_call_original_spec.rb:213 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:62 - 499) 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 + 499) 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/and_call_original_spec.rb:124 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:188 - 500) 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 + 500) 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/and_call_original_spec.rb:133 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:30 - 501) and_call_original on a partial double works for instance methods defined on the object's class's superclass + 501) 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/and_call_original_spec.rb:218 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:90 - 502) and_call_original on a partial double works for method added through an extended module onto a class's ancestor + 502) 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/and_call_original_spec.rb:117 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:195 - 503) and_call_original on a partial double warns when you override an existing implementation + 503) 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/and_call_original_spec.rb:90 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:80 - 504) and_call_original on a partial double passes the received message through to the original method + 504) 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/and_call_original_spec.rb:65 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:43 - 505) and_call_original on a partial double ignores prior declared stubs + 505) 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/and_call_original_spec.rb:70 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:183 - 506) and_call_original on a partial double works for methods that accept keyword arguments + 506) 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/and_call_original_spec.rb:237 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:134 - 507) and_call_original on a partial double works for class methods defined on a grandparent class + 507) 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/and_call_original_spec.rb:207 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:124 - 508) and_call_original on a partial double works for methods added through an extended module + 508) 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/and_call_original_spec.rb:111 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:146 - 509) and_call_original on a partial double errors when you pass through the wrong number of args + 509) 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/and_call_original_spec.rb:82 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:54 - 510) and_call_original on a partial double passes args and blocks through to the original method + 510) 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/and_call_original_spec.rb:76 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:111 - 511) and_call_original on a partial double works for class methods defined on a superclass + 511) 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/and_call_original_spec.rb:188 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:156 - 512) and_call_original on a partial double when a non-existent method has been stubbed previously restores the original NameError behavior + 512) 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/and_call_original_spec.rb:54 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:100 - 513) 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 + 513) 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/and_call_original_spec.rb:271 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:70 - 514) 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 + 514) 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/and_call_original_spec.rb:266 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:35 - 515) and_call_original on a partial double on an object that defines method_missing works when the method_missing definition handles the message + 515) 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/and_call_original_spec.rb:295 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:484 - 516) and_call_original on a partial double on an object that defines method_missing works for an any_instance partial mock + 516) 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/and_call_original_spec.rb:300 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:517 - 517) 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 + 517) 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/and_call_original_spec.rb:305 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:447 - 518) 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 + 518) 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/and_call_original_spec.rb:312 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:455 - 519) and_call_original on a partial double for singleton methods works + 519) 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/and_call_original_spec.rb:97 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:538 - 520) and_call_original on a partial double for singleton methods works for SimpleDelegator subclasses + 520) 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/and_call_original_spec.rb:103 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:533 - 521) 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 + 521) 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/and_call_original_spec.rb:195 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:560 - 522) and_call_original on a partial double when a method that exists has been stubbed previously restores the original behavior + 522) 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/and_call_original_spec.rb:46 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:555 - 523) and_call_original on a partial double when using any_instance works for instance methods that use double splat + 523) 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/and_call_original_spec.rb:149 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:169 - 524) and_call_original on a partial double when using any_instance works for instance methods defined on the superclass of the class + 524) 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/and_call_original_spec.rb:176 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:174 - 525) 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 + 525) 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/and_call_original_spec.rb:182 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:339 - 526) and_call_original on a partial double when using any_instance works for instance methods that use optional keyword arguments + 526) 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/and_call_original_spec.rb:154 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:343 - 527) and_call_original on a partial double when using any_instance works for instance methods that use optional keyword arguments with an argument supplied + 527) 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/and_call_original_spec.rb:159 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:347 - 528) and_call_original on a partial double when using any_instance works for instance methods defined on the class + 528) 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/and_call_original_spec.rb:143 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:369 - 529) and_call_original on a partial double when using any_instance works for instance methods that use required keyword arguments + 529) 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/and_call_original_spec.rb:168 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:361 - 530) and_call_original on a pure test double raises an error even if the double object responds to the message + 530) 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/and_call_original_spec.rb:362 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:355 - 531) Using a partial mock on a proxy object works properly + 531) 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/partial_double_spec.rb:236 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:331 - 532) Using a partial mock on a proxy object does not confuse the proxy and the proxied object + 532) 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/partial_double_spec.rb:241 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:327 - 533) Constant Mutating #hide_const can be hidden multiple times but still restores the original value properly + 533) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts at_least passes when the message was received the given number of times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:193 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:323 - 534) Constant Mutating #hide_const allows a constant to be hidden, then stubbed, restoring it to its original value properly + 534) 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:202 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:389 - 535) Constant Mutating #hide_const for an unloaded nested constant behaves like unloaded constant hiding returns nil + 535) 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:145 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:381 - 536) Constant Mutating #hide_const for an unloaded nested constant behaves like unloaded constant hiding remains undefined after rspec clears its mocks + 536) 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:139 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:398 - 537) 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 + 537) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts thrice fails when the message was received less than three times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:134 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:420 - 538) Constant Mutating #hide_const for a loaded constant prefixed with :: behaves like loaded constant hiding allows it to be hidden + 538) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts thrice fails when the message was received more than three times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:82 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:430 - 539) Constant Mutating #hide_const for a loaded constant prefixed with :: behaves like loaded constant hiding resets the constant when rspec clear its mocks + 539) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts thrice passes when the message was received thrice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:87 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:411 - 540) Constant Mutating #hide_const for a loaded constant prefixed with :: behaves like loaded constant hiding returns nil + 540) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` only considers the calls with matching args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:93 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:215 - 541) Constant Mutating #hide_const for an unloaded constant with nested name that matches a top-level constant does not hide the top-level constant + 541) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` when the message is received too few times includes the counts of calls with matching args in the error message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:166 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:239 - 542) 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 + 542) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` when constrained with grouped arguments `with` does not group counts on repeated arguments for a single message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:134 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:285 - 543) Constant Mutating #hide_const for an unloaded constant with nested name that matches a top-level constant behaves like unloaded constant hiding returns nil + 543) 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/mutate_const_spec.rb:145 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:273 - 544) 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 + 544) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` when constrained with grouped arguments `with` includes single arguments based on the method call that included them # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:139 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:264 - 545) 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 + 545) 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/mutate_const_spec.rb:87 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:247 - 546) Constant Mutating #hide_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant hiding returns nil + 546) 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/mutate_const_spec.rb:93 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:221 - 547) 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 + 547) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts when constrained by `with` when the message is received too many times includes the counts of calls with matching args in the error message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:82 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:231 - 548) Constant Mutating #hide_const for a loaded nested constant behaves like loaded constant hiding allows it to be hidden + 548) 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 - 549) Constant Mutating #hide_const for a loaded nested constant behaves like loaded constant hiding returns nil + 549) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received counts exactly fails when the message was received fewer times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:93 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:315 - 550) Constant Mutating #hide_const for a loaded nested constant behaves like loaded constant hiding resets the constant when rspec clear its mocks + 550) 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 - 551) Constant Mutating #hide_const for a loaded deeply nested constant behaves like loaded constant hiding allows it to be hidden + 551) 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:82 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:653 - 552) Constant Mutating #hide_const for a loaded deeply nested constant behaves like loaded constant hiding resets the constant when rspec clear its mocks + 552) 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:87 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:637 - 553) Constant Mutating #hide_const for a loaded deeply nested constant behaves like loaded constant hiding returns nil + 553) 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:93 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 554) Constant Mutating #hide_const for an unloaded unnested constant behaves like unloaded constant hiding returns nil + 554) 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:145 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 555) 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 + 555) 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:134 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:595 - 556) Constant Mutating #hide_const for an unloaded unnested constant behaves like unloaded constant hiding remains undefined after rspec clears its mocks + 556) 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:139 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:584 - 557) Constant Mutating #stub_const requires a string argument + 557) 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:221 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:571 - 558) 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 + 558) 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:427 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 559) 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 + 559) 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 - 560) 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 + 560) 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:105 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 561) 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 + 561) 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:120 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 562) 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 + 562) 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:116 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:576 - 563) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 563) 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:110 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:604 - 564) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing returns the stubbed value + 564) 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:116 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:609 - 565) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing allows it to be stubbed + 565) 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:105 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:645 - 566) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 566) 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/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:629 - 567) 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 + 567) 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/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/null_object_double_spec.rb:79 - 568) Constant Mutating #stub_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant stubbing returns the stubbed value + 568) 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/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/null_object_double_spec.rb:47 - 569) 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 + 569) 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/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/null_object_double_spec.rb:96 - 570) Constant Mutating #stub_const for a loaded nested constant behaves like loaded constant stubbing returns the stubbed value + 570) 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/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/null_object_double_spec.rb:90 - 571) 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 + 571) 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/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/null_object_double_spec.rb:69 - 572) Constant Mutating #stub_const for a loaded nested constant behaves like loaded constant stubbing allows it to be stubbed + 572) 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/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/null_object_double_spec.rb:56 - 573) 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 + 573) 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/mutate_const_spec.rb:409 + # ./spec/rspec/mocks/null_object_double_spec.rb:33 - 574) 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 + 574) 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/mutate_const_spec.rb:418 + # ./spec/rspec/mocks/null_object_double_spec.rb:42 - 575) 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 + 575) 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/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/null_object_double_spec.rb:62 - 576) 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 + 576) 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/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/null_object_double_spec.rb:37 - 577) Constant Mutating #stub_const for an unloaded constant nested within a loaded constant behaves like unloaded constant stubbing returns the stubbed value + 577) 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/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/null_object_double_spec.rb:51 - 578) Constant Mutating #stub_const for an unloaded constant nested within a loaded constant behaves like unloaded constant stubbing allows it to be stubbed + 578) 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/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/null_object_double_spec.rb:74 - 579) Constant Mutating #stub_const for an unloaded nested constant removes the root constant when rspec clears its mocks + 579) 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/mutate_const_spec.rb:387 + # ./spec/rspec/mocks/null_object_double_spec.rb:104 - 580) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing returns the stubbed value + 580) 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/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/null_object_double_spec.rb:84 - 581) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 581) 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/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/test_double_spec.rb:34 - 582) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 582) 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/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/test_double_spec.rb:34 - 583) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing allows it to be stubbed + 583) 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/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/test_double_spec.rb:48 - 584) 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 + 584) 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/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/test_double_spec.rb:27 - 585) 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 + 585) 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/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/test_double_spec.rb:7 - 586) 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 + 586) 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/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/test_double_spec.rb:17 - 587) Constant Mutating #stub_const for an unloaded constant nested in a module that redefines `send` behaves like unloaded constant stubbing returns the stubbed value + 587) 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/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/test_double_spec.rb:12 - 588) 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 + 588) 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/mutate_const_spec.rb:298 + # ./spec/rspec/mocks/test_double_spec.rb:48 - 589) Constant Mutating #stub_const for a loaded unnested constant can be stubbed multiple times but still restores the original value properly + 589) 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/mutate_const_spec.rb:228 + # ./spec/rspec/mocks/test_double_spec.rb:48 - 590) Constant Mutating #stub_const for a loaded unnested constant removes the transferred constants on reset + 590) Combining implementation instructions does not warn about overriding the stub when `:with` is chained off the block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:247 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:165 - 591) Constant Mutating #stub_const for a loaded unnested constant raises an error when asked to transfer a nested inherited constant + 591) Combining implementation instructions can combine and_yield, a block implementation and and_raise # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:264 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:94 - 592) 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 + 592) 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/mutate_const_spec.rb:282 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:160 - 593) Constant Mutating #stub_const for a loaded unnested constant allows nested constants to be transferred to a stub module + 593) 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/mutate_const_spec.rb:238 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:4 - 594) Constant Mutating #stub_const for a loaded unnested constant raises an error if asked to transfer a nested constant that is not defined + 594) Combining implementation instructions raises an error if `and_call_original` is followed by any other instructions # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:313 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:181 - 595) Constant Mutating #stub_const for a loaded unnested constant does not transfer nested constants that are inherited from a superclass + 595) Combining implementation instructions can combine and_yield and and_throw # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:256 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:106 - 596) Constant Mutating #stub_const for a loaded unnested constant allows nested constants to be selectively transferred to a stub module + 596) Combining implementation instructions can combine and_yield, a block implementation and and_throw # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:274 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:115 - 597) 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 + 597) 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/mutate_const_spec.rb:332 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:85 - 598) 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 + 598) Combining implementation instructions can combine and_call_original, with, and_return # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:342 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:173 - 599) 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 + 599) Combining implementation instructions a double that already has a terminal block action allows the block action to be overridden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:347 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:152 - 600) 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 + 600) Combining implementation instructions a double that already has a terminal `and_return(x)` action allows the terminal action to be overridden to `and_raise(y)` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:137 - 601) Constant Mutating #stub_const for a loaded unnested constant behaves like loaded constant stubbing allows it to be stubbed + 601) Combining implementation instructions a double that already has a terminal `and_return(x)` action allows the terminal action to be overridden to `and_throw(y)` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:142 - 602) Constant Mutating #stub_const for a loaded unnested constant behaves like loaded constant stubbing returns the stubbed value + 602) Combining implementation instructions a double that already has a terminal `and_return(x)` action allows the terminal action to be overridden to `and_return(y)` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:132 - 603) 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 + 603) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `with` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:31 - 604) 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 + 604) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `twice` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:67 - 605) 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 + 605) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `at_least` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:43 - 606) 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 + 606) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `exactly` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:37 - 607) 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 + 607) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `once` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:61 - 608) Constant Mutating #stub_const for a loaded deeply nested constant behaves like loaded constant stubbing returns the stubbed value + 608) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `ordered` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:78 - 609) Constant Mutating #stub_const for a loaded deeply nested constant behaves like loaded constant stubbing allows it to be stubbed + 609) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `stub` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:25 - 610) Constant Mutating #stub_const for an unloaded deeply nested constant removes the root constant when rspec clears its mocks + 610) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `at_most` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:398 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:49 - 611) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing allows it to be stubbed + 611) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `times` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:55 - 612) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 612) A method stub with args complains if called with other arg # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/stub_spec.rb:534 - 613) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 613) A method stub with args complains if also mocked w/ different args AND called w/ a 3rd set of args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/stub_spec.rb:546 - 614) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing returns the stubbed value + 614) A method stub with args uses the correct stubbed response when responding to a mock expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/stub_spec.rb:555 - 615) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 615) A method stub with args does not complain if not called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/stub_spec.rb:521 - 616) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 616) A method stub with args complains if called with no arg # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/stub_spec.rb:528 - 617) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing allows it to be stubbed + 617) A method stub with args does not complain if called with arg # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/stub_spec.rb:524 - 618) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing returns the stubbed value + 618) A method stub with args does not complain if also mocked w/ different args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/stub_spec.rb:540 - 619) 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 + 619) 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/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/stub_spec.rb:93 - 620) Constant Mutating #stub_const for a loaded constant prefixed with :: behaves like loaded constant stubbing allows it to be stubbed + 620) 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/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/stub_spec.rb:496 - 621) Constant Mutating #stub_const for a loaded constant prefixed with :: behaves like loaded constant stubbing returns the stubbed value + 621) 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/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/stub_spec.rb:39 - 622) at_most passes when at_most(n) is never called + 622) 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/at_most_spec.rb:27 + # ./spec/rspec/mocks/stub_spec.rb:486 - 623) at_most passes when at_most(n) is called less than n times + 623) 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/at_most_spec.rb:21 + # ./spec/rspec/mocks/stub_spec.rb:44 - 624) at_most passes when at_most(n) is called exactly 1 time + 624) 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/at_most_spec.rb:8 + # ./spec/rspec/mocks/stub_spec.rb:453 - 625) at_most passes when at_most(:thrice) is called less than three times + 625) 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/at_most_spec.rb:61 + # ./spec/rspec/mocks/stub_spec.rb:462 - 626) at_most returns the value given by a block when at_most(:once) method is called + 626) 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/at_most_spec.rb:75 + # ./spec/rspec/mocks/stub_spec.rb:57 - 627) at_most passes when at_most(:once) is never called + 627) 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/at_most_spec.rb:38 + # ./spec/rspec/mocks/stub_spec.rb:49 - 628) at_most passes when at_most(:twice) is called twice + 628) 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/at_most_spec.rb:49 + # ./spec/rspec/mocks/stub_spec.rb:491 - 629) at_most passes when at_most(:once) is called once + 629) 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/at_most_spec.rb:32 + # ./spec/rspec/mocks/stub_spec.rb:72 - 630) at_most fails fast when at_most(:thrice) and is called four times + 630) 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/at_most_spec.rb:117 + # ./spec/rspec/mocks/stub_spec.rb:78 - 631) at_most passes when at_most(:thrice) is called thrice + 631) 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/at_most_spec.rb:67 + # ./spec/rspec/mocks/stub_spec.rb:479 - 632) at_most passes when at_most(:twice) is never called + 632) 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/at_most_spec.rb:56 + # ./spec/rspec/mocks/stub_spec.rb:65 - 633) at_most fails fast when at_most(n) times method is called n plus 1 times + 633) 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/at_most_spec.rb:81 + # ./spec/rspec/mocks/stub_spec.rb:507 - 634) at_most fails fast when at_most(:twice) and is called three times + 634) 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/at_most_spec.rb:108 + # ./spec/rspec/mocks/stub_spec.rb:501 - 635) at_most fails fast when at_most(:once) and is called twice + 635) 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/at_most_spec.rb:100 + # ./spec/rspec/mocks/stub_spec.rb:88 - 636) at_most passes when at_most(n) is called exactly n times + 636) 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/at_most_spec.rb:14 + # ./spec/rspec/mocks/stub_spec.rb:83 - 637) at_most fails fast when at_most(n) times method is called n plus 1 time + 637) 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/at_most_spec.rb:91 + # ./spec/rspec/mocks/stub_spec.rb:470 - 638) at_most passes when at_most(:twice) is called once + 638) 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/at_most_spec.rb:43 + # ./spec/rspec/mocks/stub_spec.rb:446 - 639) at_most when called with negative expectation raises an error + 639) 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/at_most_spec.rb:128 + # ./spec/rspec/mocks/stub_spec.rb:32 - 640) An instance double with the doubled class not loaded includes the doubled module in errors for unexpected messages + 640) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:12 + # ./spec/rspec/mocks/stub_spec.rb:117 - 641) An instance double with the doubled class not loaded handles classes that are materialized after mocking + 641) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:35 + # ./spec/rspec/mocks/stub_spec.rb:285 - 642) An instance double with the doubled class not loaded allows any instance method to be expected + 642) A method stub #rspec_reset restores existing class methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:25 + # ./spec/rspec/mocks/stub_spec.rb:292 - 643) An instance double with the doubled class not loaded allows any instance method to be stubbed + 643) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:19 + # ./spec/rspec/mocks/stub_spec.rb:334 - 644) 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')` + 644) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:59 + # ./spec/rspec/mocks/stub_spec.rb:266 - 645) 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)` + 645) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:64 + # ./spec/rspec/mocks/stub_spec.rb:259 - 646) An instance double with the doubled class not loaded for null objects returns self from any message + 646) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:45 + # ./spec/rspec/mocks/stub_spec.rb:353 - 647) An instance double with the doubled class not loaded for null objects reports it responds to any message + 647) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:49 + # ./spec/rspec/mocks/stub_spec.rb:299 - 648) negative expectation failure expect(...).to_not receive_messages(:a => 1, :b => 2) + 648) 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/matchers/receive_messages_spec.rb:139 + # ./spec/rspec/mocks/stub_spec.rb:318 - 649) negative expectation failure allow(...).to_not receive_messages(:a => 1, :b => 2) + 649) 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/matchers/receive_messages_spec.rb:125 + # ./spec/rspec/mocks/stub_spec.rb:325 - 650) negative expectation failure expect_any_instance_of(...).to_not receive_messages(:a => 1, :b => 2) + 650) 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/matchers/receive_messages_spec.rb:146 + # ./spec/rspec/mocks/stub_spec.rb:253 - 651) negative expectation failure allow_any_instance_of(...).to_not receive_messages(:a => 1, :b => 2) + 651) 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/matchers/receive_messages_spec.rb:132 + # ./spec/rspec/mocks/stub_spec.rb:416 - 652) An instance double with the doubled class loaded validates `with` args against the method signature when stubbing a method + 652) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:142 + # ./spec/rspec/mocks/stub_spec.rb:400 - 653) An instance double with the doubled class loaded only allows instance methods that exist to be stubbed + 653) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:12 + # ./spec/rspec/mocks/stub_spec.rb:408 - 654) An instance double with the doubled class loaded only allows instance methods that exist to be expected + 654) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:20 + # ./spec/rspec/mocks/stub_spec.rb:431 - 655) An instance double with the doubled class loaded allows class to be specified by constant + 655) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:149 + # ./spec/rspec/mocks/stub_spec.rb:143 - 656) An instance double with the doubled class loaded suggests using `class_double` when a class method is stubbed + 656) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:33 + # ./spec/rspec/mocks/stub_spec.rb:151 - 657) An instance double with the doubled class loaded checks that stubbed methods are invoked with the correct arity + 657) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:79 + # ./spec/rspec/mocks/stub_spec.rb:189 - 658) An instance double with the doubled class loaded checks the arity of stubbed methods + 658) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:70 + # ./spec/rspec/mocks/stub_spec.rb:199 - 659) An instance double with the doubled class loaded allows keyword arguments + 659) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:87 + # ./spec/rspec/mocks/stub_spec.rb:178 - 660) An instance double with the doubled class loaded gives a descriptive error message for NoMethodError + 660) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:49 + # ./spec/rspec/mocks/stub_spec.rb:168 - 661) An instance double with the doubled class loaded allows `send` to be stubbed if it is defined on the class + 661) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:43 + # ./spec/rspec/mocks/stub_spec.rb:158 - 662) An instance double with the doubled class loaded doesn't suggest `class_double` when a non-class method is stubbed + 662) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:38 + # ./spec/rspec/mocks/stub_spec.rb:214 - 663) An instance double with the doubled class loaded checks that stubbed methods with required keyword args are invoked with the required arguments + 663) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:133 + # ./spec/rspec/mocks/stub_spec.rb:231 - 664) An instance double with the doubled class loaded does not allow dynamic methods to be expected + 664) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:57 + # ./spec/rspec/mocks/stub_spec.rb:99 - 665) An instance double with the doubled class loaded for null objects reports that it responds to protected methods when the appropriate arg is passed + 665) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:223 + # ./spec/rspec/mocks/stub_spec.rb:107 - 666) An instance double with the doubled class loaded for null objects includes the double's name in a private method error + 666) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:194 + # ./spec/rspec/mocks/matchers/receive_spec.rb:636 - 667) 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 + 667) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:210 + # ./spec/rspec/mocks/matchers/receive_spec.rb:568 - 668) An instance double with the doubled class loaded for null objects verifies arguments + 668) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:188 + # ./spec/rspec/mocks/matchers/receive_spec.rb:546 - 669) An instance double with the doubled class loaded for null objects reports what public messages it responds to accurately + 669) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:200 + # ./spec/rspec/mocks/matchers/receive_spec.rb:590 - 670) An instance double with the doubled class loaded for null objects only allows defined methods + 670) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:181 + # ./spec/rspec/mocks/matchers/receive_spec.rb:533 - 671) 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 + 671) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:93 + # ./spec/rspec/mocks/matchers/receive_spec.rb:524 - 672) 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 + 672) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation provides a useful matcher description # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:106 + # ./spec/rspec/mocks/matchers/receive_spec.rb:278 - 673) 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 + 673) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:100 + # ./spec/rspec/mocks/matchers/receive_spec.rb:254 - 674) 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 + 674) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation sets up a message expectation that fails if the message is not received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:115 + # ./spec/rspec/mocks/matchers/receive_spec.rb:260 - 675) 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 + 675) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation reports the line number of expectation of unreceived message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:126 + # ./spec/rspec/mocks/matchers/receive_spec.rb:268 - 676) 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)` + 676) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:163 + # ./spec/rspec/mocks/matchers/receive_spec.rb:182 - 677) 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')` + 677) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows the caller to configure how the subject responds # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:157 + # ./spec/rspec/mocks/matchers/receive_spec.rb:49 - 678) An instance double with the doubled class loaded when given a class that has an overridden `#name` method properly verifies + 678) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:171 + # ./spec/rspec/mocks/matchers/receive_spec.rb:54 - 679) Using a reopened file object as a partial mock allows `write` to be stubbed and reset + 679) 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/partial_double_spec.rb:199 + # ./spec/rspec/mocks/matchers/receive_spec.rb:221 - 680) 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 + 680) 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/matchers/have_received_spec.rb:637 + # ./spec/rspec/mocks/matchers/receive_spec.rb:169 - 681) 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 + 681) 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/matchers/have_received_spec.rb:629 + # ./spec/rspec/mocks/matchers/receive_spec.rb:177 - 682) 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 + 682) 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/matchers/have_received_spec.rb:653 + # ./spec/rspec/mocks/matchers/receive_spec.rb:211 - 683) 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 + 683) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher does not get confused by messages being passed as strings and symbols # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/matchers/receive_spec.rb:203 - 684) 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 + 684) 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/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/matchers/receive_spec.rb:63 - 685) 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 + 685) 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/matchers/have_received_spec.rb:595 + # ./spec/rspec/mocks/matchers/receive_spec.rb:159 - 686) 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 + 686) 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/matchers/have_received_spec.rb:584 + # ./spec/rspec/mocks/matchers/receive_spec.rb:118 - 687) 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 + 687) 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/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/matchers/receive_spec.rb:106 - 688) 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 + 688) 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/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/matchers/receive_spec.rb:98 - 689) 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 + 689) 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/matchers/have_received_spec.rb:571 + # ./spec/rspec/mocks/matchers/receive_spec.rb:153 - 690) 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 + 690) 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/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/matchers/receive_spec.rb:133 - 691) 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 + 691) 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/matchers/have_received_spec.rb:576 + # ./spec/rspec/mocks/matchers/receive_spec.rb:126 - 692) 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 + 692) 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/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/matchers/receive_spec.rb:81 - 693) 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 + 693) 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/matchers/have_received_spec.rb:604 + # ./spec/rspec/mocks/matchers/receive_spec.rb:90 - 694) 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 + 694) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation when a message is not received sets up a message expectation that formats argument matchers correctly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:609 + # ./spec/rspec/mocks/matchers/receive_spec.rb:493 - 695) 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 + 695) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation when a message is received the wrong number of times sets up a message expectation that formats argument matchers correctly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:645 + # ./spec/rspec/mocks/matchers/receive_spec.rb:502 - 696) 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 + 696) 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/matchers/have_received_spec.rb:35 + # ./spec/rspec/mocks/matchers/receive_spec.rb:337 - 697) 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 + 697) 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/matchers/have_received_spec.rb:146 + # ./spec/rspec/mocks/matchers/receive_spec.rb:395 - 698) 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 + 698) 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/matchers/have_received_spec.rb:25 + # ./spec/rspec/mocks/matchers/receive_spec.rb:360 - 699) 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 + 699) 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/matchers/have_received_spec.rb:30 + # ./spec/rspec/mocks/matchers/receive_spec.rb:382 - 700) 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 + 700) 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/matchers/have_received_spec.rb:90 + # ./spec/rspec/mocks/matchers/receive_spec.rb:375 - 701) 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 + 701) 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/matchers/have_received_spec.rb:124 + # ./spec/rspec/mocks/matchers/receive_spec.rb:19 - 702) 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 + 702) 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/matchers/have_received_spec.rb:80 + # ./spec/rspec/mocks/matchers/receive_spec.rb:26 - 703) 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 + 703) 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/matchers/have_received_spec.rb:195 + # ./spec/rspec/mocks/matchers/receive_spec.rb:14 - 704) 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) + 704) 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/matchers/have_received_spec.rb:188 + # ./spec/rspec/mocks/matchers/receive_spec.rb:9 - 705) 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 + 705) 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/matchers/have_received_spec.rb:62 + # ./spec/rspec/mocks/matchers/receive_spec.rb:446 - 706) 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 + 706) 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/matchers/have_received_spec.rb:43 + # ./spec/rspec/mocks/matchers/receive_spec.rb:451 - 707) 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 + 707) 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/matchers/have_received_spec.rb:111 + # ./spec/rspec/mocks/matchers/receive_spec.rb:439 - 708) 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 + 708) 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/matchers/have_received_spec.rb:156 + # ./spec/rspec/mocks/matchers/receive_spec.rb:431 - 709) 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 + 709) 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/matchers/have_received_spec.rb:54 + # ./spec/rspec/mocks/matchers/receive_spec.rb:375 - 710) 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 + 710) 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/matchers/have_received_spec.rb:70 + # ./spec/rspec/mocks/matchers/receive_spec.rb:382 - 711) 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` + 711) 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/matchers/have_received_spec.rb:134 + # ./spec/rspec/mocks/matchers/receive_spec.rb:360 - 712) 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 + 712) 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/matchers/have_received_spec.rb:183 + # ./spec/rspec/mocks/matchers/receive_spec.rb:395 - 713) 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 + 713) 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/matchers/have_received_spec.rb:100 + # ./spec/rspec/mocks/matchers/receive_spec.rb:337 - 714) 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 + 714) 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/matchers/have_received_spec.rb:517 + # ./spec/rspec/mocks/matchers/receive_spec.rb:233 - 715) 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 + 715) 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/matchers/have_received_spec.rb:447 + # ./spec/rspec/mocks/matchers/receive_spec.rb:169 - 716) 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 + 716) 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/matchers/have_received_spec.rb:484 + # ./spec/rspec/mocks/matchers/receive_spec.rb:191 - 717) 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 + 717) 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/matchers/have_received_spec.rb:455 + # ./spec/rspec/mocks/matchers/receive_spec.rb:211 - 718) 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 + 718) 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/matchers/have_received_spec.rb:560 + # ./spec/rspec/mocks/matchers/receive_spec.rb:203 - 719) 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 + 719) 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/matchers/have_received_spec.rb:555 + # ./spec/rspec/mocks/matchers/receive_spec.rb:182 - 720) 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 + 720) 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/matchers/have_received_spec.rb:538 + # ./spec/rspec/mocks/matchers/receive_spec.rb:54 - 721) 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 + 721) 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/matchers/have_received_spec.rb:533 + # ./spec/rspec/mocks/matchers/receive_spec.rb:177 - 722) 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 + 722) 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/matchers/have_received_spec.rb:169 + # ./spec/rspec/mocks/matchers/receive_spec.rb:221 - 723) 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 + 723) 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/matchers/have_received_spec.rb:174 + # ./spec/rspec/mocks/matchers/receive_spec.rb:197 - 724) 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 + 724) 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/matchers/have_received_spec.rb:381 + # ./spec/rspec/mocks/matchers/receive_spec.rb:63 - 725) 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 + 725) 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/matchers/have_received_spec.rb:389 + # ./spec/rspec/mocks/matchers/receive_spec.rb:49 - 726) 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 + 726) 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/matchers/have_received_spec.rb:398 + # ./spec/rspec/mocks/matchers/receive_spec.rb:81 - 727) 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 + 727) 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/matchers/have_received_spec.rb:343 + # ./spec/rspec/mocks/matchers/receive_spec.rb:126 - 728) 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 + 728) 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/matchers/have_received_spec.rb:347 + # ./spec/rspec/mocks/matchers/receive_spec.rb:159 - 729) 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 + 729) 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/matchers/have_received_spec.rb:339 + # ./spec/rspec/mocks/matchers/receive_spec.rb:118 - 730) 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 + 730) 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/matchers/have_received_spec.rb:411 + # ./spec/rspec/mocks/matchers/receive_spec.rb:98 - 731) 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 + 731) 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/matchers/have_received_spec.rb:430 + # ./spec/rspec/mocks/matchers/receive_spec.rb:90 - 732) 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 + 732) 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/matchers/have_received_spec.rb:420 + # ./spec/rspec/mocks/matchers/receive_spec.rb:133 - 733) 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 + 733) 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/matchers/have_received_spec.rb:301 + # ./spec/rspec/mocks/matchers/receive_spec.rb:153 - 734) 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 + 734) 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/matchers/have_received_spec.rb:315 + # ./spec/rspec/mocks/matchers/receive_spec.rb:106 - 735) 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 + 735) 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/matchers/have_received_spec.rb:297 + # ./spec/rspec/mocks/matchers/receive_spec.rb:417 - 736) 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 + 736) 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/matchers/have_received_spec.rb:369 + # ./spec/rspec/mocks/matchers/receive_spec.rb:730 - 737) 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 + 737) 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/matchers/have_received_spec.rb:361 + # ./spec/rspec/mocks/matchers/receive_spec.rb:736 - 738) 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 + 738) 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/matchers/have_received_spec.rb:355 + # ./spec/rspec/mocks/matchers/receive_spec.rb:672 - 739) 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 + 739) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework first behaves like using rspec-mocks in another test framework supports `expect(...).not_to receive` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:327 + # ./spec/rspec/mocks/matchers/receive_spec.rb:662 - 740) 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 + 740) 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/matchers/have_received_spec.rb:323 + # ./spec/rspec/mocks/matchers/receive_spec.rb:652 - 741) 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 + 741) 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/matchers/have_received_spec.rb:331 + # ./spec/rspec/mocks/matchers/receive_spec.rb:642 - 742) 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 + 742) 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:215 + # ./spec/rspec/mocks/matchers/receive_spec.rb:240 - 743) 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 + 743) 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/matchers/have_received_spec.rb:231 + # ./spec/rspec/mocks/matchers/receive_spec.rb:758 - 744) 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 + 744) 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/matchers/have_received_spec.rb:239 + # ./spec/rspec/mocks/matchers/receive_spec.rb:642 - 745) 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 + 745) 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/matchers/have_received_spec.rb:264 + # ./spec/rspec/mocks/matchers/receive_spec.rb:652 - 746) 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 + 746) 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/matchers/have_received_spec.rb:285 + # ./spec/rspec/mocks/matchers/receive_spec.rb:672 - 747) 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 + 747) 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/matchers/have_received_spec.rb:247 + # ./spec/rspec/mocks/matchers/receive_spec.rb:662 - 748) 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 + 748) 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/matchers/have_received_spec.rb:273 + # ./spec/rspec/mocks/matchers/receive_spec.rb:293 - 749) 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 + 749) 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/matchers/have_received_spec.rb:221 + # ./spec/rspec/mocks/matchers/receive_spec.rb:301 - 750) a message expectation with multiple invoke handlers and no specified count fails when there are too many calls (if there is no stub) + 750) 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/multiple_invoke_handler_spec.rb:31 + # ./spec/rspec/mocks/matchers/receive_spec.rb:322 - 751) a message expectation with multiple invoke handlers and no specified count falls back to a previously stubbed value + 751) 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/multiple_invoke_handler_spec.rb:17 + # ./spec/rspec/mocks/matchers/receive_spec.rb:309 - 752) a message expectation with multiple invoke handlers and no specified count invokes procs in order + 752) 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/multiple_invoke_handler_spec.rb:10 + # ./spec/rspec/mocks/matchers/receive_spec.rb:288 - 753) a message expectation with multiple invoke handlers and no specified count fails when there are too few calls (if there is no stub) + 753) 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/multiple_invoke_handler_spec.rb:25 + # ./spec/rspec/mocks/matchers/receive_spec.rb:288 - 754) receive_message_chain with only the expect syntax enabled works with allow where the first level of the chain is already expected + 754) 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/matchers/receive_message_chain_spec.rb:198 + # ./spec/rspec/mocks/matchers/receive_spec.rb:293 - 755) receive_message_chain with only the expect syntax enabled works with a string of messages to chain + 755) 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/matchers/receive_message_chain_spec.rb:103 + # ./spec/rspec/mocks/matchers/receive_spec.rb:301 - 756) receive_message_chain with only the expect syntax enabled provides a matcher description (when passing a string) + 756) 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/matchers/receive_message_chain_spec.rb:222 + # ./spec/rspec/mocks/matchers/receive_spec.rb:322 - 757) receive_message_chain with only the expect syntax enabled works with allow where the first level of the chain is already stubbed + 757) 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/matchers/receive_message_chain_spec.rb:214 + # ./spec/rspec/mocks/matchers/receive_spec.rb:309 - 758) receive_message_chain with only the expect syntax enabled works with a do block + 758) 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/matchers/receive_message_chain_spec.rb:32 + # ./spec/rspec/mocks/matchers/receive_spec.rb:347 - 759) receive_message_chain with only the expect syntax enabled accepts any number of arguments to the stubbed messages with an inline hash return value + 759) 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/matchers/receive_message_chain_spec.rb:121 + # ./spec/rspec/mocks/matchers/receive_spec.rb:268 - 760) receive_message_chain with only the expect syntax enabled errors with a negative expectation + 760) 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/matchers/receive_message_chain_spec.rb:14 + # ./spec/rspec/mocks/matchers/receive_spec.rb:611 - 761) receive_message_chain with only the expect syntax enabled works with and_throw + 761) 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/matchers/receive_message_chain_spec.rb:91 + # ./spec/rspec/mocks/matchers/receive_spec.rb:260 - 762) receive_message_chain with only the expect syntax enabled affects previously stubbed instances when `expect_any_instance_of` is called + 762) 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/matchers/receive_message_chain_spec.rb:175 + # ./spec/rspec/mocks/matchers/receive_spec.rb:278 - 763) receive_message_chain with only the expect syntax enabled provides a matcher description (when passing symbols and a hash) + 763) 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/matchers/receive_message_chain_spec.rb:232 + # ./spec/rspec/mocks/matchers/receive_spec.rb:254 - 764) receive_message_chain with only the expect syntax enabled does not raise when expect is used and the entire chain is called + 764) 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/matchers/receive_message_chain_spec.rb:143 + # ./spec/rspec/mocks/matchers/receive_spec.rb:169 - 765) receive_message_chain with only the expect syntax enabled works with allow_any_instance + 765) 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/matchers/receive_message_chain_spec.rb:151 + # ./spec/rspec/mocks/matchers/receive_spec.rb:54 - 766) receive_message_chain with only the expect syntax enabled works with and_call_original + 766) 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/matchers/receive_message_chain_spec.rb:73 + # ./spec/rspec/mocks/matchers/receive_spec.rb:203 - 767) 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 + 767) 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/matchers/receive_message_chain_spec.rb:168 + # ./spec/rspec/mocks/matchers/receive_spec.rb:221 - 768) receive_message_chain with only the expect syntax enabled works with and_yield + 768) 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/matchers/receive_message_chain_spec.rb:97 + # ./spec/rspec/mocks/matchers/receive_spec.rb:182 - 769) receive_message_chain with only the expect syntax enabled works with a {} block + 769) 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/matchers/receive_message_chain_spec.rb:40 + # ./spec/rspec/mocks/matchers/receive_spec.rb:191 - 770) receive_message_chain with only the expect syntax enabled fails with and_call_original when the entire chain is not called + 770) 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/matchers/receive_message_chain_spec.rb:79 + # ./spec/rspec/mocks/matchers/receive_spec.rb:49 - 771) receive_message_chain with only the expect syntax enabled accepts any number of arguments to the stubbed messages + 771) 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/matchers/receive_message_chain_spec.rb:115 + # ./spec/rspec/mocks/matchers/receive_spec.rb:177 - 772) receive_message_chain with only the expect syntax enabled gives the { } block precedence over the do block + 772) 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/matchers/receive_message_chain_spec.rb:46 + # ./spec/rspec/mocks/matchers/receive_spec.rb:211 - 773) receive_message_chain with only the expect syntax enabled passes when with expect_any_instance_of is used and the entire chain is called + 773) 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/matchers/receive_message_chain_spec.rb:183 + # ./spec/rspec/mocks/matchers/receive_spec.rb:63 - 774) receive_message_chain with only the expect syntax enabled works with and_raise + 774) 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/matchers/receive_message_chain_spec.rb:85 + # ./spec/rspec/mocks/matchers/receive_spec.rb:197 - 775) receive_message_chain with only the expect syntax enabled works with a hash return as the last argument in the chain + 775) 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/receive_message_chain_spec.rb:109 + # ./spec/rspec/mocks/matchers/receive_spec.rb:81 - 776) receive_message_chain with only the expect syntax enabled works with expect where the first level of the chain is already stubbed + 776) 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/matchers/receive_message_chain_spec.rb:206 + # ./spec/rspec/mocks/matchers/receive_spec.rb:90 - 777) receive_message_chain with only the expect syntax enabled works with and_return + 777) 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/matchers/receive_message_chain_spec.rb:54 + # ./spec/rspec/mocks/matchers/receive_spec.rb:106 - 778) 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 + 778) 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/matchers/receive_message_chain_spec.rb:127 + # ./spec/rspec/mocks/matchers/receive_spec.rb:126 - 779) receive_message_chain with only the expect syntax enabled errors with a negative any_instance expectation + 779) 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/receive_message_chain_spec.rb:20 + # ./spec/rspec/mocks/matchers/receive_spec.rb:118 - 780) receive_message_chain with only the expect syntax enabled works with and_invoke + 780) 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/matchers/receive_message_chain_spec.rb:60 + # ./spec/rspec/mocks/matchers/receive_spec.rb:133 - 781) receive_message_chain with only the expect syntax enabled stubs already stubbed instances when using `allow_any_instance_of` + 781) 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/receive_message_chain_spec.rb:159 + # ./spec/rspec/mocks/matchers/receive_spec.rb:153 - 782) 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 + 782) 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/receive_message_chain_spec.rb:135 + # ./spec/rspec/mocks/matchers/receive_spec.rb:159 - 783) receive_message_chain with only the expect syntax enabled provides a matcher description (when passing symbols) + 783) 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/matchers/receive_message_chain_spec.rb:227 + # ./spec/rspec/mocks/matchers/receive_spec.rb:98 - 784) receive_message_chain with only the expect syntax enabled errors with a negative any_instance allowance + 784) 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/matchers/receive_message_chain_spec.rb:26 + # ./spec/rspec/mocks/matchers/receive_spec.rb:233 - 785) receive_message_chain with only the expect syntax enabled works with expect where the first level of the chain is already expected + 785) 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/matchers/receive_message_chain_spec.rb:190 + # ./spec/rspec/mocks/matchers/receive_spec.rb:169 - 786) receive_message_chain with only the expect syntax enabled errors with a negative allowance + 786) 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/matchers/receive_message_chain_spec.rb:8 + # ./spec/rspec/mocks/matchers/receive_spec.rb:177 - 787) receive_message_chain with only the expect syntax enabled can constrain the return value by the argument to the last call + 787) 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/matchers/receive_message_chain_spec.rb:66 + # ./spec/rspec/mocks/matchers/receive_spec.rb:203 - 788) receive_message_chain when the expect and should syntaxes are enabled stubs the message correctly + 788) 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/matchers/receive_message_chain_spec.rb:241 + # ./spec/rspec/mocks/matchers/receive_spec.rb:63 - 789) a message expectation with multiple invoke handlers specifying at_least less than the number of values fails when called less than the specified number + 789) 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/multiple_invoke_handler_spec.rb:67 + # ./spec/rspec/mocks/matchers/receive_spec.rb:211 - 790) a message expectation with multiple invoke handlers specifying at_least less than the number of values uses the last return value for subsequent calls + 790) 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/multiple_invoke_handler_spec.rb:60 + # ./spec/rspec/mocks/matchers/receive_spec.rb:197 - 791) 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 + 791) 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/multiple_invoke_handler_spec.rb:75 + # ./spec/rspec/mocks/matchers/receive_spec.rb:191 - 792) 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 + 792) 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/multiple_invoke_handler_spec.rb:82 + # ./spec/rspec/mocks/matchers/receive_spec.rb:182 - 793) Loading rspec/mocks/standalone exposes the RSpec::Mocks API on `main` + 793) 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/standalone_spec.rb:7 + # ./spec/rspec/mocks/matchers/receive_spec.rb:49 - 794) Loading rspec/mocks/standalone does not infect other objects with the RSpec::Mocks API + 794) 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/standalone_spec.rb:20 + # ./spec/rspec/mocks/matchers/receive_spec.rb:54 - 795) 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 + 795) 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/multiple_invoke_handler_spec.rb:106 + # ./spec/rspec/mocks/matchers/receive_spec.rb:221 - 796) 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 + 796) 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/multiple_invoke_handler_spec.rb:93 + # ./spec/rspec/mocks/matchers/receive_spec.rb:118 - 797) 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 + 797) 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/multiple_invoke_handler_spec.rb:100 + # ./spec/rspec/mocks/matchers/receive_spec.rb:159 - 798) RSpec::Mocks::Matchers::Receive has a description before being matched + 798) 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/matchers/receive_spec.rb:636 + # ./spec/rspec/mocks/matchers/receive_spec.rb:126 - 799) RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations can toggle the available syntax + 799) 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/matchers/receive_spec.rb:704 + # ./spec/rspec/mocks/matchers/receive_spec.rb:81 - 800) RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations cannot use `expect` with another matcher + 800) 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/matchers/receive_spec.rb:696 + # ./spec/rspec/mocks/matchers/receive_spec.rb:98 - 801) 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 + 801) 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/matchers/receive_spec.rb:652 + # ./spec/rspec/mocks/matchers/receive_spec.rb:106 - 802) 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` + 802) 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/matchers/receive_spec.rb:672 + # ./spec/rspec/mocks/matchers/receive_spec.rb:90 - 803) 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` + 803) 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/matchers/receive_spec.rb:662 + # ./spec/rspec/mocks/matchers/receive_spec.rb:133 - 804) 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 + 804) 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/matchers/receive_spec.rb:642 + # ./spec/rspec/mocks/matchers/receive_spec.rb:153 - 805) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance does not expect the message to be received + 805) 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/matchers/receive_spec.rb:233 + # ./spec/rspec/mocks/matchers/receive_spec.rb:347 - 806) 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 + 806) 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/matchers/receive_spec.rb:169 + # ./spec/rspec/mocks/matchers/receive_spec.rb:704 - 807) 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 + 807) 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/matchers/receive_spec.rb:211 + # ./spec/rspec/mocks/matchers/receive_spec.rb:696 - 808) 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 + 808) 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/matchers/receive_spec.rb:63 + # ./spec/rspec/mocks/matchers/receive_spec.rb:652 - 809) 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 + 809) 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/matchers/receive_spec.rb:49 + # ./spec/rspec/mocks/matchers/receive_spec.rb:672 - 810) 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` + 810) 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/matchers/receive_spec.rb:182 + # ./spec/rspec/mocks/matchers/receive_spec.rb:662 - 811) 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 + 811) 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/matchers/receive_spec.rb:203 + # ./spec/rspec/mocks/matchers/receive_spec.rb:642 - 812) 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 + 812) 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/matchers/receive_spec.rb:54 + # ./spec/rspec/mocks/matchers/receive_spec.rb:240 - 813) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does support inherited matchers + 813) PartialDoubleUsingMocksDirectly fails when message is received with incorrect args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:197 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:35 - 814) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does not support other matchers + 814) PartialDoubleUsingMocksDirectly passes when message is received with correct args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:191 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:49 - 815) 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 + 815) PartialDoubleUsingMocksDirectly fails when expected message is not received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:177 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:28 - 816) 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 + 816) PartialDoubleUsingMocksDirectly passes when expected message is received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:221 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:43 - 817) 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 + 817) PartialDoubleUsingMocksDirectly restores the original method if it existed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:90 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:55 - 818) 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 + 818) PartialDoubleUsingMocksDirectly with a class method handled by method_missing restores the original behavior # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:153 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:74 - 819) 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 + 819) PartialDoubleUsingMocksDirectly with an instance method handled by method_missing restores the original behavior # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:118 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:64 - 820) 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 + 820) 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/matchers/receive_spec.rb:98 + # ./spec/rspec/mocks/block_return_value_spec.rb:71 - 821) 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 + 821) 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/matchers/receive_spec.rb:106 + # ./spec/rspec/mocks/block_return_value_spec.rb:53 - 822) 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 + 822) 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/matchers/receive_spec.rb:159 + # ./spec/rspec/mocks/block_return_value_spec.rb:53 - 823) 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 + 823) 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/matchers/receive_spec.rb:133 + # ./spec/rspec/mocks/block_return_value_spec.rb:38 - 824) 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 + 824) 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/matchers/receive_spec.rb:126 + # ./spec/rspec/mocks/block_return_value_spec.rb:44 - 825) 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 + 825) 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/matchers/receive_spec.rb:81 + # ./spec/rspec/mocks/block_return_value_spec.rb:9 - 826) 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 + 826) 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/matchers/receive_spec.rb:375 + # ./spec/rspec/mocks/block_return_value_spec.rb:3 - 827) 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 + 827) 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/matchers/receive_spec.rb:382 + # ./spec/rspec/mocks/block_return_value_spec.rb:19 - 828) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like handles frozen objects cleanly when adding the method double raises clear error + 828) 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/matchers/receive_spec.rb:360 + # ./spec/rspec/mocks/block_return_value_spec.rb:27 - 829) 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 + 829) 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/matchers/receive_spec.rb:395 + # ./spec/rspec/mocks/block_return_value_spec.rb:62 - 830) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like resets partial mocks cleanly removes the method double + 830) 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/receive_spec.rb:337 + # ./spec/rspec/mocks/partial_double_spec.rb:330 - 831) 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 + 831) 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/receive_spec.rb:446 + # ./spec/rspec/mocks/partial_double_spec.rb:324 - 832) 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 + 832) 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/receive_spec.rb:451 + # ./spec/rspec/mocks/partial_double_spec.rb:318 - 833) 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 + 833) 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/receive_spec.rb:439 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:81 - 834) 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 + 834) 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/receive_spec.rb:431 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:74 - 835) RSpec::Mocks::Matchers::Receive allow(...).to receive ordered with receive counts is not supported + 835) 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/receive_spec.rb:417 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:96 - 836) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders includes the correct call site in the expect warning + 836) 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/receive_spec.rb:26 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:89 - 837) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders includes the correct call site in the allow warning + 837) 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/receive_spec.rb:14 + # ./spec/rspec/mocks/null_object_double_spec.rb:129 - 838) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders warns about allow(Klass.any_instance).to receive... + 838) 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/receive_spec.rb:9 + # ./spec/rspec/mocks/and_call_original_spec.rb:225 - 839) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders warns about expect(Klass.any_instance).to receive... + 839) 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/receive_spec.rb:19 + # ./spec/rspec/mocks/and_call_original_spec.rb:117 - 840) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts fails with exact receive counts when the ordering is incorrect + 840) 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/receive_spec.rb:533 + # ./spec/rspec/mocks/and_call_original_spec.rb:133 - 841) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts passes with at most when the ordering is correct + 841) 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/receive_spec.rb:568 + # ./spec/rspec/mocks/and_call_original_spec.rb:65 - 842) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts passes with exact receive counts when the ordering is correct + 842) 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/receive_spec.rb:524 + # ./spec/rspec/mocks/and_call_original_spec.rb:237 - 843) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts passes with at least when the ordering is correct + 843) 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/receive_spec.rb:546 + # ./spec/rspec/mocks/and_call_original_spec.rb:82 - 844) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts does not result in infinite recursion when `respond_to?` is stubbed + 844) 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/receive_spec.rb:590 + # ./spec/rspec/mocks/and_call_original_spec.rb:76 - 845) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like handles frozen objects cleanly when adding the method double raises clear error + 845) 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/receive_spec.rb:360 + # ./spec/rspec/mocks/and_call_original_spec.rb:188 - 846) 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 + 846) 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/receive_spec.rb:375 + # ./spec/rspec/mocks/and_call_original_spec.rb:70 - 847) 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 + 847) 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/receive_spec.rb:382 + # ./spec/rspec/mocks/and_call_original_spec.rb:90 - 848) 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 + 848) 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/receive_spec.rb:395 + # ./spec/rspec/mocks/and_call_original_spec.rb:218 - 849) 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 + 849) 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/receive_spec.rb:254 + # ./spec/rspec/mocks/and_call_original_spec.rb:111 - 850) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation reports the line number of expectation of unreceived message + 850) 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/receive_spec.rb:268 + # ./spec/rspec/mocks/and_call_original_spec.rb:213 - 851) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation provides a useful matcher description + 851) 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/receive_spec.rb:278 + # ./spec/rspec/mocks/and_call_original_spec.rb:124 - 852) 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 + 852) 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/receive_spec.rb:260 + # ./spec/rspec/mocks/and_call_original_spec.rb:207 - 853) 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 + 853) 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/receive_spec.rb:502 + # ./spec/rspec/mocks/and_call_original_spec.rb:54 - 854) 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 + 854) 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/receive_spec.rb:169 + # ./spec/rspec/mocks/and_call_original_spec.rb:46 - 855) 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 + 855) 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/receive_spec.rb:63 + # ./spec/rspec/mocks/and_call_original_spec.rb:182 - 856) 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 + 856) 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/receive_spec.rb:49 + # ./spec/rspec/mocks/and_call_original_spec.rb:149 - 857) 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 + 857) 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/receive_spec.rb:54 + # ./spec/rspec/mocks/and_call_original_spec.rb:154 - 858) 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 + 858) 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/receive_spec.rb:211 + # ./spec/rspec/mocks/and_call_original_spec.rb:143 - 859) 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 + 859) 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/receive_spec.rb:177 + # ./spec/rspec/mocks/and_call_original_spec.rb:168 - 860) 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 + 860) 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/receive_spec.rb:221 + # ./spec/rspec/mocks/and_call_original_spec.rb:176 - 861) 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 + 861) 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/receive_spec.rb:203 + # ./spec/rspec/mocks/and_call_original_spec.rb:159 - 862) 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` + 862) 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/receive_spec.rb:182 + # ./spec/rspec/mocks/and_call_original_spec.rb:103 - 863) 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 + 863) 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/receive_spec.rb:81 + # ./spec/rspec/mocks/and_call_original_spec.rb:97 - 864) 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 + 864) 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/receive_spec.rb:90 + # ./spec/rspec/mocks/and_call_original_spec.rb:312 - 865) 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 + 865) 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/receive_spec.rb:153 + # ./spec/rspec/mocks/and_call_original_spec.rb:305 - 866) 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 + 866) 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/receive_spec.rb:133 + # ./spec/rspec/mocks/and_call_original_spec.rb:295 - 867) 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 + 867) 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/receive_spec.rb:126 + # ./spec/rspec/mocks/and_call_original_spec.rb:300 - 868) 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 + 868) 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/receive_spec.rb:98 + # ./spec/rspec/mocks/and_call_original_spec.rb:271 - 869) 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 + 869) 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/receive_spec.rb:159 + # ./spec/rspec/mocks/and_call_original_spec.rb:266 - 870) 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 + 870) 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/receive_spec.rb:106 + # ./spec/rspec/mocks/and_call_original_spec.rb:195 - 871) 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 + 871) 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/receive_spec.rb:118 + # ./spec/rspec/mocks/and_call_original_spec.rb:362 - 872) 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 + 872) 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/receive_spec.rb:493 + # ./spec/rspec/mocks/and_call_original_spec.rb:349 - 873) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like resets partial mocks cleanly removes the method double + 873) 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/receive_spec.rb:337 + # ./spec/rspec/mocks/and_call_original_spec.rb:344 - 874) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation supports `to_not` as an alias for `not_to` + 874) 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/matchers/receive_spec.rb:301 + # ./spec/rspec/mocks/expiration_spec.rb:35 - 875) 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 + 875) 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/matchers/receive_spec.rb:288 + # ./spec/rspec/mocks/expiration_spec.rb:41 - 876) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation allows the caller to constrain the received arguments + 876) 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/matchers/receive_spec.rb:309 + # ./spec/rspec/mocks/expiration_spec.rb:51 - 877) 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 + 877) 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/matchers/receive_spec.rb:293 + # ./spec/rspec/mocks/expiration_spec.rb:29 - 878) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation prevents confusing double-negative expressions involving `never` + 878) 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/matchers/receive_spec.rb:322 + # ./spec/rspec/mocks/expiration_spec.rb:23 - 879) RSpec::Mocks::Matchers::Receive allow(...).not_to receive behaves like an expect syntax negative allowance is disabled since this expression is confusing + 879) 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/matchers/receive_spec.rb:240 + # ./spec/rspec/mocks/expiration_spec.rb:47 - 880) 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 + 880) 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/matchers/receive_spec.rb:288 + # ./spec/rspec/mocks/expiration_spec.rb:19 - 881) 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` + 881) 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/matchers/receive_spec.rb:322 + # ./spec/rspec/mocks/expiration_spec.rb:15 - 882) 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 + 882) 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/matchers/receive_spec.rb:309 + # ./spec/rspec/mocks/expiration_spec.rb:41 - 883) 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 + 883) 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/matchers/receive_spec.rb:293 + # ./spec/rspec/mocks/expiration_spec.rb:15 - 884) 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` + 884) 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/matchers/receive_spec.rb:301 + # ./spec/rspec/mocks/expiration_spec.rb:51 - 885) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance does not expect the message to be received + 885) 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/matchers/receive_spec.rb:233 + # ./spec/rspec/mocks/expiration_spec.rb:35 - 886) 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 + 886) 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/matchers/receive_spec.rb:203 + # ./spec/rspec/mocks/expiration_spec.rb:23 - 887) 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` + 887) 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/matchers/receive_spec.rb:182 + # ./spec/rspec/mocks/expiration_spec.rb:19 - 888) 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 + 888) 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/matchers/receive_spec.rb:63 + # ./spec/rspec/mocks/expiration_spec.rb:47 - 889) 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 + 889) 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/matchers/receive_spec.rb:191 + # ./spec/rspec/mocks/expiration_spec.rb:29 - 890) 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 + 890) 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/matchers/receive_spec.rb:211 + # ./spec/rspec/mocks/expiration_spec.rb:41 - 891) 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 + 891) 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/matchers/receive_spec.rb:177 + # ./spec/rspec/mocks/expiration_spec.rb:15 - 892) 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 + 892) 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/matchers/receive_spec.rb:197 + # ./spec/rspec/mocks/expiration_spec.rb:35 - 893) 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 + 893) 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/matchers/receive_spec.rb:49 + # ./spec/rspec/mocks/expiration_spec.rb:51 - 894) 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 + 894) 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/matchers/receive_spec.rb:221 + # ./spec/rspec/mocks/expiration_spec.rb:29 - 895) 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 + 895) 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/matchers/receive_spec.rb:169 + # ./spec/rspec/mocks/expiration_spec.rb:23 - 896) 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 + 896) 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/matchers/receive_spec.rb:54 + # ./spec/rspec/mocks/expiration_spec.rb:47 - 897) 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 + 897) 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/matchers/receive_spec.rb:81 + # ./spec/rspec/mocks/expiration_spec.rb:19 - 898) 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 + 898) 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/matchers/receive_spec.rb:126 + # ./spec/rspec/mocks/expiration_spec.rb:19 - 899) 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 + 899) 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/matchers/receive_spec.rb:133 + # ./spec/rspec/mocks/expiration_spec.rb:23 - 900) 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 + 900) 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/matchers/receive_spec.rb:106 + # ./spec/rspec/mocks/expiration_spec.rb:47 - 901) 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 + 901) 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/matchers/receive_spec.rb:159 + # ./spec/rspec/mocks/expiration_spec.rb:41 - 902) 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 + 902) 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/matchers/receive_spec.rb:153 + # ./spec/rspec/mocks/expiration_spec.rb:51 - 903) 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 + 903) 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/matchers/receive_spec.rb:118 + # ./spec/rspec/mocks/expiration_spec.rb:15 - 904) 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 + 904) 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/matchers/receive_spec.rb:90 + # ./spec/rspec/mocks/expiration_spec.rb:29 - 905) 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 + 905) 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/matchers/receive_spec.rb:98 + # ./spec/rspec/mocks/expiration_spec.rb:35 - 906) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like resets partial mocks of any instance cleanly removes the method double + 906) 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/matchers/receive_spec.rb:347 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:60 - 907) 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 + 907) 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/matchers/receive_spec.rb:240 + # ./spec/rspec/mocks/message_expectation_string_representation_spec.rb:12 - 908) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework last can use `expect` with any matcher + 908) 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/matchers/receive_spec.rb:758 + # ./spec/rspec/mocks/message_expectation_string_representation_spec.rb:18 - 909) 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 + 909) 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/matchers/receive_spec.rb:652 + # ./spec/rspec/mocks/message_expectation_string_representation_spec.rb:6 - 910) 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` + 910) #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/matchers/receive_spec.rb:662 + # ./spec/rspec/mocks/once_counts_spec.rb:8 - 911) 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 + 911) #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/matchers/receive_spec.rb:642 + # ./spec/rspec/mocks/once_counts_spec.rb:20 - 912) 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` + 912) #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/matchers/receive_spec.rb:672 + # ./spec/rspec/mocks/once_counts_spec.rb:14 - 913) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation provides a useful matcher description + 913) #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/matchers/receive_spec.rb:278 + # ./spec/rspec/mocks/once_counts_spec.rb:26 - 914) 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 + 914) #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/matchers/receive_spec.rb:611 + # ./spec/rspec/mocks/once_counts_spec.rb:34 - 915) 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 + 915) #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/matchers/receive_spec.rb:260 + # ./spec/rspec/mocks/once_counts_spec.rb:42 - 916) 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 + 916) #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/matchers/receive_spec.rb:268 + # ./spec/rspec/mocks/once_counts_spec.rb:73 - 917) 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 + 917) #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/matchers/receive_spec.rb:254 + # ./spec/rspec/mocks/once_counts_spec.rb:50 - 918) 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 + 918) 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/matchers/receive_spec.rb:177 + # ./spec/rspec/mocks/and_return_spec.rb:7 - 919) 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 + 919) 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/matchers/receive_spec.rb:203 + # ./spec/rspec/mocks/and_return_spec.rb:15 - 920) 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 + 920) 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/receive_spec.rb:54 + # ./spec/rspec/mocks/mock_expectation_error_spec.rb:12 - 921) 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` + 921) Using rspec-mocks features in before(:all) blocks #hide_const(for an undefined const) raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:182 + # ./spec/support/before_all_shared_example_group.rb:11 - 922) 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 + 922) Using rspec-mocks features in before(:all) blocks #expect(...).to receive raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:221 + # ./spec/support/before_all_shared_example_group.rb:11 - 923) 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 + 923) Using rspec-mocks features in before(:all) blocks #stub_const does not stub the const # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:169 + # ./spec/rspec/mocks/before_all_spec.rb:10 - 924) 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 + 924) Using rspec-mocks features in before(:all) blocks #stub_const raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:191 + # ./spec/support/before_all_shared_example_group.rb:11 - 925) 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 + 925) Using rspec-mocks features in before(:all) blocks allow(...).to receive_message_chain raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:63 + # ./spec/support/before_all_shared_example_group.rb:11 - 926) 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 + 926) Using rspec-mocks features in before(:all) blocks #expect_any_instance_of(...).to receive raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:211 + # ./spec/support/before_all_shared_example_group.rb:11 - 927) 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 + 927) Using rspec-mocks features in before(:all) blocks #allow(...).to receive raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:197 + # ./spec/support/before_all_shared_example_group.rb:11 - 928) 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 + 928) Using rspec-mocks features in before(:all) blocks #allow_any_instance_of(...).to receive raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:49 + # ./spec/support/before_all_shared_example_group.rb:11 - 929) 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 + 929) Using rspec-mocks features in before(:all) blocks #hide_const(for a defined const) raises an error with a useful message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:90 + # ./spec/support/before_all_shared_example_group.rb:11 - 930) 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 + 930) Using rspec-mocks features in before(:all) blocks #hide_const(for a defined const) does not hide the const # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:133 + # ./spec/rspec/mocks/before_all_spec.rb:30 - 931) 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 + 931) 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/receive_spec.rb:98 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:47 - 932) 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 + 932) 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/matchers/receive_spec.rb:159 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:4 - 933) 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 + 933) 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/matchers/receive_spec.rb:153 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:15 - 934) 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 + 934) 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/matchers/receive_spec.rb:106 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:24 - 935) 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 + 935) 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/matchers/receive_spec.rb:118 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:60 - 936) 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 + 936) 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/matchers/receive_spec.rb:126 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:53 - 937) 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 + 937) 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/matchers/receive_spec.rb:81 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:38 - 938) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like resets partial mocks of any instance cleanly removes the method double + 938) 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/matchers/receive_spec.rb:347 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:35 - 939) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework first can use `expect` with any matcher + 939) 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/matchers/receive_spec.rb:730 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 - 940) 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 + 940) 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/matchers/receive_spec.rb:736 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 - 941) 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` + 941) 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/matchers/receive_spec.rb:672 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:22 - 942) 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 + 942) 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:652 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:6 - 943) 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` + 943) 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:662 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:10 - 944) 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 + 944) 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:642 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:21 - 945) OrderGroup #consume keeps returning ordered? expectation until all are returned + 945) 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/order_group_spec.rb:21 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:17 - 946) OrderGroup #consume returns the first ordered? expectation + 946) 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/order_group_spec.rb:18 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:25 - 947) A partial class mock that has been subclassed cleans up stubs during #reset to prevent leakage onto subclasses between examples + 947) 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/partial_double_spec.rb:278 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:38 - 948) A partial class mock that has been subclassed stubbing a base class class method returns the value for the descendent class + 948) 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/partial_double_spec.rb:296 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:34 - 949) A partial class mock that has been subclassed stubbing a base class class method returns the value for the stub on the base class + 949) 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/partial_double_spec.rb:292 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:30 - 950) .allow_message does not set an expectation that the message will be received + 950) 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/syntax_agnostic_message_matchers_spec.rb:31 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:48 - 951) .allow_message supports block implementations + 951) 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/syntax_agnostic_message_matchers_spec.rb:26 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:52 - 952) .allow_message does not get confused when the string and symbol message form are both used + 952) 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/syntax_agnostic_message_matchers_spec.rb:36 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:44 - 953) .allow_message sets up basic message allowance + 953) 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/syntax_agnostic_message_matchers_spec.rb:6 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:56 - 954) .allow_message sets up message allowance with params and return value + 954) 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/syntax_agnostic_message_matchers_spec.rb:16 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:64 - 955) .allow_message when target cannot be proxied raises ArgumentError with message + 955) 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/syntax_agnostic_message_matchers_spec.rb:47 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:60 - 956) RSpec::Mocks.verify delegates to the space + 956) 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_spec.rb:42 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:95 - 957) RSpec::Mocks when there is a `let` declaration that overrides an argument matcher allows the `let` definition to win + 957) 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_spec.rb:229 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:87 - 958) RSpec::Mocks.setup starts a new space scope that is later removed by .teardown + 958) 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_spec.rb:76 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:83 - 959) RSpec::Mocks.configuration returns a memoized configuration instance + 959) 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_spec.rb:89 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:91 - 960) 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 + 960) 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/hash_including_matcher_spec.rb:75 - 961) RSpec::Mocks behaves like library wide checks has no malformed whitespace + 961) 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/hash_including_matcher_spec.rb:71 - 962) RSpec::Mocks behaves like library wide checks issues no warnings when the spec files are loaded + 962) 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/hash_including_matcher_spec.rb:79 - 963) RSpec::Mocks behaves like library wide checks issues no warnings when loaded + 963) 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/integration/rails_support_spec.rb:10 - 964) RSpec::Mocks.teardown does not put rspec-mocks into an inconsistent state when called extra times + 964) 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_spec.rb:61 + # ./spec/integration/rails_support_spec.rb:37 - 965) RSpec::Mocks.teardown resets method stubs + 965) 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_spec.rb:54 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:49 - 966) RSpec::Mocks.with_temporary_scope does not verify if an error occurs before the block completes + 966) 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_spec.rb:202 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:55 - 967) RSpec::Mocks.with_temporary_scope tears down even if an error occurs + 967) 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_spec.rb:189 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 - 968) RSpec::Mocks.with_temporary_scope returns the result of the passed block + 968) 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_spec.rb:212 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 - 969) 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) + 969) 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_spec.rb:142 + # ./spec/rspec/mocks/mutate_const_spec.rb:221 - 970) 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 + 970) 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_spec.rb:137 + # ./spec/rspec/mocks/mutate_const_spec.rb:398 - 971) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed const allows the stubbed constants to be used + 971) 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_spec.rb:133 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 972) RSpec::Mocks.with_temporary_scope in a before(:all) with an unmet mock expectation fails with a mock expectation error + 972) 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_spec.rb:158 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 973) 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) + 973) 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_spec.rb:183 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 974) 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 + 974) 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_spec.rb:177 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 975) RSpec::Mocks.with_temporary_scope in a before(:all) with an any_instance stub allows the stub to be used + 975) 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_spec.rb:173 + # ./spec/rspec/mocks/mutate_const_spec.rb:427 - 976) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed double does not allow the double to be used in the examples + 976) 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_spec.rb:111 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 977) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed double allows the stubbed double to be used + 977) 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_spec.rb:107 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 978) 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) + 978) 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_spec.rb:117 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 979) Method visibility when using partial mocks keeps public methods public + 979) 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/partial_double_spec.rb:318 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 980) Method visibility when using partial mocks keeps private methods private + 980) 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/partial_double_spec.rb:324 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 981) Method visibility when using partial mocks keeps protected methods protected + 981) 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/partial_double_spec.rb:330 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 982) a double acting as a null object fails verification when explicit exception not met + 982) 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/null_object_double_spec.rb:62 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 983) a double acting as a null object returns a string from `to_str` + 983) 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/null_object_double_spec.rb:47 + # ./spec/rspec/mocks/mutate_const_spec.rb:274 - 984) a double acting as a null object can be interpolated in a string as an integer + 984) 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/null_object_double_spec.rb:96 + # ./spec/rspec/mocks/mutate_const_spec.rb:313 - 985) a double acting as a null object allows explicit expectation + 985) 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/null_object_double_spec.rb:42 + # ./spec/rspec/mocks/mutate_const_spec.rb:282 - 986) a double acting as a null object does not allow null objects to be used outside of examples + 986) 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/null_object_double_spec.rb:104 + # ./spec/rspec/mocks/mutate_const_spec.rb:256 - 987) a double acting as a null object says it responds to everything + 987) 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/null_object_double_spec.rb:33 + # ./spec/rspec/mocks/mutate_const_spec.rb:238 - 988) a double acting as a null object returns an explicitly stubbed value from an expectation with no implementation + 988) 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/null_object_double_spec.rb:56 + # ./spec/rspec/mocks/mutate_const_spec.rb:264 - 989) a double acting as a null object ignores unexpected methods + 989) 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/null_object_double_spec.rb:69 + # ./spec/rspec/mocks/mutate_const_spec.rb:298 - 990) a double acting as a null object allows expected message with different args first + 990) 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/null_object_double_spec.rb:84 + # ./spec/rspec/mocks/mutate_const_spec.rb:247 - 991) a double acting as a null object allows explicit stubs + 991) 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/null_object_double_spec.rb:37 + # ./spec/rspec/mocks/mutate_const_spec.rb:228 - 992) a double acting as a null object allows expected message with different args second + 992) 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/null_object_double_spec.rb:90 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 993) a double acting as a null object continues to return self from an explicit expectation + 993) 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/null_object_double_spec.rb:51 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 994) a double acting as a null object allows unexpected message sends using `__send__` + 994) 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/null_object_double_spec.rb:79 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 995) a double acting as a null object allows unexpected message sends using `send` + 995) 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/null_object_double_spec.rb:74 + # ./spec/rspec/mocks/mutate_const_spec.rb:332 - 996) allow(...).to receive_messages(:a => 1, :b => 2) allows the object to respond to multiple messages + 996) 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/matchers/receive_messages_spec.rb:35 + # ./spec/rspec/mocks/mutate_const_spec.rb:347 - 997) allow(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a do; end; block is given + 997) 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/matchers/receive_messages_spec.rb:10 + # ./spec/rspec/mocks/mutate_const_spec.rb:342 - 998) allow(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given + 998) 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/matchers/receive_messages_spec.rb:4 + # ./spec/rspec/mocks/mutate_const_spec.rb:409 - 999) allow(...).to receive_messages(:a => 1, :b => 2) behaves like handles partially mocked objects correctly resets partially mocked objects correctly + 999) 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/matchers/receive_messages_spec.rb:22 + # ./spec/rspec/mocks/mutate_const_spec.rb:418 - 1000) MockExpectationError is not caught by StandardError rescue blocks + 1000) 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/mock_expectation_error_spec.rb:12 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1001) Test doubles format well in failure messages formats the doubles when they appear in data structures and diffs + 1001) 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/formatting_spec.rb:94 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1002) Test doubles format well in failure messages `class_double(SomeClass)` without a name # + 1002) 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/formatting_spec.rb:74 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1003) Test doubles format well in failure messages `class_double(SomeClass)` with a name # + 1003) 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/formatting_spec.rb:68 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1004) Test doubles format well in failure messages `object_double([])` without a name # + 1004) 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/formatting_spec.rb:88 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1005) Test doubles format well in failure messages `object_double([])` with a name # + 1005) 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/formatting_spec.rb:82 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1006) Test doubles format well in failure messages `instance_double(SomeClass)` avoids sending `instance_variable_get` to the double as it may be stubbed + 1006) 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/formatting_spec.rb:59 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1007) Test doubles format well in failure messages `instance_double(SomeClass)` without a name # + 1007) 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/formatting_spec.rb:54 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1008) Test doubles format well in failure messages `instance_double(SomeClass)` with a name # + 1008) 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/formatting_spec.rb:48 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1009) Test doubles format well in failure messages `double` avoids sending `instance_variable_get` to the double as it may be stubbed + 1009) 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/formatting_spec.rb:39 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1010) Test doubles format well in failure messages `double` without a name # + 1010) 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/formatting_spec.rb:34 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1011) Test doubles format well in failure messages `double` with a name # + 1011) 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/formatting_spec.rb:24 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1012) Test doubles format well in failure messages `double` with a name formats the name as a symbol if that was how it was provided + 1012) 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/formatting_spec.rb:28 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1013) allow_any_instance_of(...).to receive_messages(:a => 1, :b => 2) updates stubs on instances with existing stubs + 1013) 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/matchers/receive_messages_spec.rb:55 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1014) allow_any_instance_of(...).to receive_messages(:a => 1, :b => 2) allows the object to respond to multiple messages + 1014) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing returns the stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:49 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1015) 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 + 1015) 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/matchers/receive_messages_spec.rb:10 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1016) allow_any_instance_of(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given + 1016) 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/matchers/receive_messages_spec.rb:4 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1017) expect_any_instance_of(...).to receive_messages(:a => 1, :b => 2) sets up multiple expectations + 1017) 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/matchers/receive_messages_spec.rb:112 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1018) 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 + 1018) 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/matchers/receive_messages_spec.rb:10 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1019) expect_any_instance_of(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given + 1019) 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/matchers/receive_messages_spec.rb:4 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1020) Expected argument verification (when `#with` is called) when doubling a loaded class does not cover required args when `any_args` is not used + 1020) Constant Mutating #stub_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant stubbing allows it to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:97 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 1021) 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 + 1021) Constant Mutating #stub_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant stubbing returns the stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:58 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 1022) 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 + 1022) Constant Mutating #stub_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant stubbing resets it to its original value when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:72 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 1023) 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 + 1023) 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/expected_arg_verification_spec.rb:66 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 1024) 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` + 1024) 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/expected_arg_verification_spec.rb:86 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 1025) 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 + 1025) 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/expected_arg_verification_spec.rb:80 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 1026) 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 + 1026) 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/verifying_doubles/expected_arg_verification_spec.rb:45 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 1027) 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 + 1027) 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/verifying_doubles/expected_arg_verification_spec.rb:29 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 1028) 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 + 1028) 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/verifying_doubles/expected_arg_verification_spec.rb:37 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 1029) 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 + 1029) 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/verifying_doubles/expected_arg_verification_spec.rb:111 + # ./spec/rspec/mocks/mutate_const_spec.rb:387 - 1030) 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 + 1030) 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/verifying_doubles/expected_arg_verification_spec.rb:105 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 1031) 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) + 1031) 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/verifying_doubles/expected_arg_verification_spec.rb:128 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 1032) 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 + 1032) 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/verifying_doubles/expected_arg_verification_spec.rb:134 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 1033) 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 + 1033) 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/verifying_doubles/expected_arg_verification_spec.rb:150 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 1034) 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 + 1034) 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/verifying_doubles/expected_arg_verification_spec.rb:119 + # ./spec/rspec/mocks/mutate_const_spec.rb:193 - 1035) Expected argument verification (when `#with` is called) when doubling an unloaded class allows any arguments + 1035) 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/verifying_doubles/expected_arg_verification_spec.rb:11 + # ./spec/rspec/mocks/mutate_const_spec.rb:202 - 1036) argument matchers matching instance_of does NOT accept integer as instance_of(Numeric) + 1036) 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/argument_matchers_spec.rb:72 + # ./spec/rspec/mocks/mutate_const_spec.rb:134 - 1037) argument matchers matching instance_of handles non matching instances nicely + 1037) 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/argument_matchers_spec.rb:87 + # ./spec/rspec/mocks/mutate_const_spec.rb:139 - 1038) argument matchers matching instance_of rejects non numeric + 1038) 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/argument_matchers_spec.rb:77 + # ./spec/rspec/mocks/mutate_const_spec.rb:145 - 1039) argument matchers matching instance_of does NOT accept float as instance_of(Numeric) + 1039) 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/argument_matchers_spec.rb:67 + # ./spec/rspec/mocks/mutate_const_spec.rb:93 - 1040) argument matchers matching instance_of rejects non string + 1040) 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/argument_matchers_spec.rb:82 + # ./spec/rspec/mocks/mutate_const_spec.rb:82 - 1041) argument matchers matching instance_of accepts float as instance_of(Float) + 1041) 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/argument_matchers_spec.rb:62 + # ./spec/rspec/mocks/mutate_const_spec.rb:87 - 1042) argument matchers matching array_including fails array_including when args aren't array + 1042) 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/argument_matchers_spec.rb:288 + # ./spec/rspec/mocks/mutate_const_spec.rb:166 - 1043) argument matchers matching array_including matches array with array_including same array + 1043) 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/argument_matchers_spec.rb:278 + # ./spec/rspec/mocks/mutate_const_spec.rb:134 - 1044) argument matchers matching array_including matches array with array_including using fuzzymatcher + 1044) 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/argument_matchers_spec.rb:283 + # ./spec/rspec/mocks/mutate_const_spec.rb:139 - 1045) argument matchers matching array_including fails array_including when arg doesn't contain all elements + 1045) 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/argument_matchers_spec.rb:295 + # ./spec/rspec/mocks/mutate_const_spec.rb:145 - 1046) argument matchers matching handling arbitrary matchers matches against a Matcher + 1046) 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/argument_matchers_spec.rb:345 + # ./spec/rspec/mocks/mutate_const_spec.rb:93 - 1047) argument matchers matching handling arbitrary matchers fails when given an arbitrary object that returns false from #=== + 1047) 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/argument_matchers_spec.rb:352 + # ./spec/rspec/mocks/mutate_const_spec.rb:82 - 1048) argument matchers matching handling arbitrary matchers matches any arbitrary object using #=== + 1048) 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/argument_matchers_spec.rb:337 + # ./spec/rspec/mocks/mutate_const_spec.rb:87 - 1049) 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 + 1049) 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/argument_matchers_spec.rb:378 + # ./spec/rspec/mocks/mutate_const_spec.rb:87 - 1050) 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 + 1050) 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/argument_matchers_spec.rb:383 + # ./spec/rspec/mocks/mutate_const_spec.rb:82 - 1051) 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 + 1051) 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/argument_matchers_spec.rb:373 + # ./spec/rspec/mocks/mutate_const_spec.rb:93 - 1052) argument matchers matching hash_excluding matches hash with hash_excluding same hash + 1052) 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/argument_matchers_spec.rb:264 + # ./spec/rspec/mocks/mutate_const_spec.rb:93 - 1053) argument matchers matching hash_excluding handles non matching instances nicely + 1053) 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/argument_matchers_spec.rb:269 + # ./spec/rspec/mocks/mutate_const_spec.rb:82 - 1054) argument matchers matching hash_including fails hash_including with missing key + 1054) 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/argument_matchers_spec.rb:255 + # ./spec/rspec/mocks/mutate_const_spec.rb:87 - 1055) argument matchers matching hash_including matches hash with hash_including same hash + 1055) 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/argument_matchers_spec.rb:250 + # ./spec/rspec/mocks/mutate_const_spec.rb:145 - 1056) argument matchers matching duck_type matches duck type with two methods + 1056) 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/argument_matchers_spec.rb:118 + # ./spec/rspec/mocks/mutate_const_spec.rb:134 - 1057) argument matchers matching duck_type rejects goose when expecting a duck + 1057) 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/argument_matchers_spec.rb:123 + # ./spec/rspec/mocks/mutate_const_spec.rb:139 - 1058) argument matchers matching duck_type matches duck type with one method + 1058) #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/argument_matchers_spec.rb:113 + # ./spec/rspec/mocks/twice_counts_spec.rb:29 - 1059) argument matchers matching handling non-matcher arguments fails if regexp does not match submitted regexp + 1059) #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/argument_matchers_spec.rb:412 + # ./spec/rspec/mocks/twice_counts_spec.rb:38 - 1060) argument matchers matching handling non-matcher arguments fails with zero arguments + 1060) #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/argument_matchers_spec.rb:478 + # ./spec/rspec/mocks/twice_counts_spec.rb:15 - 1061) argument matchers matching handling non-matcher arguments fails for a hash w/ wrong keys + 1061) #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/argument_matchers_spec.rb:451 + # ./spec/rspec/mocks/twice_counts_spec.rb:8 - 1062) argument matchers matching handling non-matcher arguments fails for a hash w/ wrong values + 1062) #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/argument_matchers_spec.rb:444 + # ./spec/rspec/mocks/twice_counts_spec.rb:54 - 1063) argument matchers matching handling non-matcher arguments matches against a hash submitted and received by value + 1063) #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/argument_matchers_spec.rb:417 + # ./spec/rspec/mocks/twice_counts_spec.rb:22 - 1064) argument matchers matching handling non-matcher arguments fails if regexp does not match submitted string + 1064) #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/argument_matchers_spec.rb:407 + # ./spec/rspec/mocks/twice_counts_spec.rb:46 - 1065) argument matchers matching handling non-matcher arguments fails a class against an object of a different type + 1065) #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/argument_matchers_spec.rb:473 + # ./spec/rspec/mocks/twice_counts_spec.rb:64 - 1066) argument matchers matching handling non-matcher arguments fails with sensible message when arg#description is nil + 1066) #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/argument_matchers_spec.rb:491 + # ./spec/rspec/mocks/twice_counts_spec.rb:89 - 1067) argument matchers matching handling non-matcher arguments matches regexp against regexp + 1067) Diffs printed when arguments don't match with a matcher object that defines #description uses the object's description # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:402 + # ./spec/rspec/mocks/diffing_spec.rb:270 - 1068) argument matchers matching handling non-matcher arguments matches string against regexp + 1068) Diffs printed when arguments don't match with a matcher object that does not define #description for a matcher object that does not implement #description # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:397 + # ./spec/rspec/mocks/diffing_spec.rb:287 - 1069) 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 + 1069) 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/argument_matchers_spec.rb:429 + # ./spec/rspec/mocks/diffing_spec.rb:81 - 1070) argument matchers matching handling non-matcher arguments fails with sensible message when args respond to #description + 1070) 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/argument_matchers_spec.rb:484 + # ./spec/rspec/mocks/diffing_spec.rb:21 - 1071) argument matchers matching handling non-matcher arguments matches a class against an instance of itself + 1071) 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/argument_matchers_spec.rb:468 + # ./spec/rspec/mocks/diffing_spec.rb:241 - 1072) argument matchers matching handling non-matcher arguments matches a class against itself + 1072) 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/argument_matchers_spec.rb:458 + # ./spec/rspec/mocks/diffing_spec.rb:46 - 1073) argument matchers matching handling non-matcher arguments fails with sensible message when arg#description is blank + 1073) 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/argument_matchers_spec.rb:498 + # ./spec/rspec/mocks/diffing_spec.rb:12 - 1074) argument matchers matching handling non-matcher arguments fails a class against an unrelated class + 1074) 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/argument_matchers_spec.rb:463 + # ./spec/rspec/mocks/diffing_spec.rb:68 - 1075) 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) + 1075) 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/argument_matchers_spec.rb:422 + # ./spec/rspec/mocks/diffing_spec.rb:33 - 1076) argument matchers matching kind_of accepts fixnum as kind_of(Numeric) + 1076) 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/argument_matchers_spec.rb:30 + # ./spec/rspec/mocks/diffing_spec.rb:90 - 1077) argument matchers matching kind_of handles a class thats overridden === + 1077) 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/argument_matchers_spec.rb:53 + # ./spec/rspec/mocks/diffing_spec.rb:57 - 1078) argument matchers matching kind_of accepts float as kind_of(Numeric) + 1078) 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/argument_matchers_spec.rb:35 + # ./spec/rspec/mocks/diffing_spec.rb:201 - 1079) argument matchers matching kind_of handles non matching kinds nicely + 1079) 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/argument_matchers_spec.rb:40 + # ./spec/rspec/mocks/diffing_spec.rb:174 - 1080) argument matchers matching kind_of matches arguments that have defined `kind_of?` to return true + 1080) 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/argument_matchers_spec.rb:47 + # ./spec/rspec/mocks/diffing_spec.rb:187 - 1081) argument matchers matching any_args when passed twice immediately signals that this is invalid + 1081) Diffs printed when arguments don't match with a non matcher object that defines #description does not use the object's description for a non-matcher object that implements #description # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:221 + # ./spec/rspec/mocks/diffing_spec.rb:251 - 1082) 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 + 1082) 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/argument_matchers_spec.rb:175 + # ./spec/rspec/mocks/diffing_spec.rb:133 - 1083) argument matchers matching any_args as the first of three args does not match a call where the last two args do not match + 1083) 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/argument_matchers_spec.rb:187 + # ./spec/rspec/mocks/diffing_spec.rb:102 - 1084) 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 + 1084) Diffs printed when arguments don't match with a non matcher object with keyword arguments on normal doubles prints a diff when keyword argument were expected but got an option hash (literal) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:183 + # ./spec/rspec/mocks/diffing_spec.rb:117 - 1085) 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 + 1085) 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/argument_matchers_spec.rb:179 + # ./spec/rspec/mocks/to_ary_spec.rb:8 - 1086) argument matchers matching any_args as the first of three args does not match a call of no args + 1086) 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/argument_matchers_spec.rb:191 + # ./spec/rspec/mocks/to_ary_spec.rb:3 - 1087) argument matchers matching any_args as the only arg passed to `with` matches no args + 1087) 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/argument_matchers_spec.rb:135 + # ./spec/rspec/mocks/to_ary_spec.rb:27 - 1088) argument matchers matching any_args as the only arg passed to `with` matches one arg + 1088) 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/argument_matchers_spec.rb:139 + # ./spec/rspec/mocks/to_ary_spec.rb:31 - 1089) argument matchers matching any_args as the only arg passed to `with` matches many args + 1089) 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/argument_matchers_spec.rb:143 + # ./spec/rspec/mocks/to_ary_spec.rb:13 - 1090) 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 + 1090) 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/argument_matchers_spec.rb:207 + # ./spec/rspec/mocks/to_ary_spec.rb:23 - 1091) argument matchers matching any_args as the middle of three args does not match a call of no args + 1091) 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/argument_matchers_spec.rb:215 + # ./spec/rspec/mocks/to_ary_spec.rb:40 - 1092) 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 + 1092) 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/argument_matchers_spec.rb:199 + # ./spec/rspec/mocks/to_ary_spec.rb:44 - 1093) 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 + 1093) 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/argument_matchers_spec.rb:211 + # ./spec/rspec/mocks/to_ary_spec.rb:8 - 1094) 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 + 1094) 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/argument_matchers_spec.rb:203 + # ./spec/rspec/mocks/to_ary_spec.rb:3 - 1095) 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 + 1095) 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/argument_matchers_spec.rb:151 + # ./spec/rspec/mocks/to_ary_spec.rb:48 - 1096) argument matchers matching any_args as the last of three args does not match a call where the first two args do not match + 1096) 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/argument_matchers_spec.rb:163 + # ./spec/rspec/mocks/to_ary_spec.rb:13 - 1097) 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 + 1097) 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/argument_matchers_spec.rb:155 + # ./spec/rspec/mocks/at_least_spec.rb:109 - 1098) 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 + 1098) 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/argument_matchers_spec.rb:159 + # ./spec/rspec/mocks/at_least_spec.rb:132 - 1099) argument matchers matching any_args as the last of three args does not match a call of no args + 1099) 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/argument_matchers_spec.rb:167 + # ./spec/rspec/mocks/at_least_spec.rb:79 - 1100) argument matchers matching boolean rejects non boolean + 1100) 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/argument_matchers_spec.rb:21 + # ./spec/rspec/mocks/at_least_spec.rb:63 - 1101) argument matchers matching boolean accepts true as boolean + 1101) 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/argument_matchers_spec.rb:11 + # ./spec/rspec/mocks/at_least_spec.rb:13 - 1102) argument matchers matching boolean accepts false as boolean + 1102) 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/argument_matchers_spec.rb:16 + # ./spec/rspec/mocks/at_least_spec.rb:139 - 1103) argument matchers matching array_excluding fails array_excluding when is the same array + 1103) 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/argument_matchers_spec.rb:309 + # ./spec/rspec/mocks/at_least_spec.rb:38 - 1104) argument matchers matching array_excluding matches array_excluding when using the fuzzy matcher + 1104) 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/argument_matchers_spec.rb:323 + # ./spec/rspec/mocks/at_least_spec.rb:6 - 1105) argument matchers matching array_excluding matches array with array_excluding different array + 1105) 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/argument_matchers_spec.rb:304 + # ./spec/rspec/mocks/at_least_spec.rb:54 - 1106) argument matchers matching array_excluding fails array_excluding when arg contains some elements + 1106) 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/argument_matchers_spec.rb:316 + # ./spec/rspec/mocks/at_least_spec.rb:73 - 1107) argument matchers matching array_excluding fails array_excluding when using the fuzzy matcher + 1107) 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/argument_matchers_spec.rb:328 + # ./spec/rspec/mocks/at_least_spec.rb:101 - 1108) argument matchers matching anything accepts string as anything + 1108) 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/argument_matchers_spec.rb:96 + # ./spec/rspec/mocks/at_least_spec.rb:23 - 1109) argument matchers matching anything doesn't accept no arguments + 1109) 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/argument_matchers_spec.rb:101 + # ./spec/rspec/mocks/at_least_spec.rb:86 - 1110) argument matchers matching anything handles non matching instances nicely + 1110) 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/argument_matchers_spec.rb:106 + # ./spec/rspec/mocks/at_least_spec.rb:45 - 1111) argument matchers matching no_args fails no_args with one arg + 1111) 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/argument_matchers_spec.rb:235 + # ./spec/rspec/mocks/at_least_spec.rb:94 - 1112) argument matchers matching no_args matches no args against no_args + 1112) 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/argument_matchers_spec.rb:230 + # ./spec/rspec/mocks/at_least_spec.rb:118 - 1113) argument matchers matching no_args when passed with other arguments immediately signals that this is invalid + 1113) 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/argument_matchers_spec.rb:241 + # ./spec/rspec/mocks/at_least_spec.rb:30 - 1114) A method stub instructs an instance to respond_to the message + 1114) 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/stub_spec.rb:39 + # ./spec/rspec/mocks/at_least_spec.rb:147 - 1115) A method stub remains private when it stubs a private instance method + 1115) 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/stub_spec.rb:88 + # ./spec/rspec/mocks/at_least_spec.rb:125 - 1116) A method stub yields a specified object and return another specified object + 1116) 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/stub_spec.rb:479 + # ./spec/rspec/mocks/spy_spec.rb:123 - 1117) A method stub returns values in order to consecutive calls + 1117) 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/stub_spec.rb:446 + # ./spec/rspec/mocks/spy_spec.rb:35 - 1118) A method stub is retained when stubbed object is `clone`d + 1118) 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/stub_spec.rb:78 + # ./spec/rspec/mocks/spy_spec.rb:27 - 1119) A method stub is cleared when stubbed object when `dup`ed + 1119) 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/stub_spec.rb:83 + # ./spec/rspec/mocks/spy_spec.rb:39 - 1120) A method stub throws with argument when told to + 1120) 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/stub_spec.rb:491 + # ./spec/rspec/mocks/spy_spec.rb:45 - 1121) A method stub overrides a pre-existing stub + 1121) 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/stub_spec.rb:501 + # ./spec/rspec/mocks/spy_spec.rb:31 - 1122) A method stub overrides a pre-existing method + 1122) 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/stub_spec.rb:496 + # ./spec/rspec/mocks/spy_spec.rb:105 - 1123) A method stub allows a stub and an expectation + 1123) 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/stub_spec.rb:507 + # ./spec/rspec/mocks/spy_spec.rb:39 - 1124) A method stub instructs a class object to respond_to the message + 1124) 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/stub_spec.rb:44 + # ./spec/rspec/mocks/spy_spec.rb:27 - 1125) A method stub ignores when message is received with args + 1125) 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/stub_spec.rb:57 + # ./spec/rspec/mocks/spy_spec.rb:35 - 1126) A method stub handles multiple stubbed methods + 1126) 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/stub_spec.rb:72 + # ./spec/rspec/mocks/spy_spec.rb:45 - 1127) A method stub remains private when it stubs a private class method + 1127) 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/stub_spec.rb:93 + # ./spec/rspec/mocks/spy_spec.rb:31 - 1128) A method stub ignores when expected message is received with no args + 1128) 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/stub_spec.rb:49 + # ./spec/rspec/mocks/spy_spec.rb:5 - 1129) A method stub keeps returning last value in consecutive calls + 1129) 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/stub_spec.rb:453 + # ./spec/rspec/mocks/spy_spec.rb:9 - 1130) A method stub ignores when expected message is not received + 1130) 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/stub_spec.rb:65 + # ./spec/rspec/mocks/spy_spec.rb:21 - 1131) A method stub throws when told to + 1131) 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/stub_spec.rb:486 + # ./spec/rspec/mocks/spy_spec.rb:17 - 1132) A method stub yields a specified object + 1132) 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/stub_spec.rb:462 + # ./spec/rspec/mocks/spy_spec.rb:13 - 1133) A method stub yields multiple times with multiple calls to and_yield + 1133) 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/stub_spec.rb:470 + # ./spec/rspec/mocks/spy_spec.rb:84 - 1134) A method stub using `with` determines which value is returned + 1134) 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/stub_spec.rb:99 + # ./spec/rspec/mocks/spy_spec.rb:39 - 1135) A method stub using `with` allows differing arities + 1135) 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/stub_spec.rb:107 + # ./spec/rspec/mocks/spy_spec.rb:45 - 1136) A method stub stubbing with prepend does not unnecessarily prepend a module when stubbing a method on a module extended onto itself + 1136) 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/stub_spec.rb:178 + # ./spec/rspec/mocks/spy_spec.rb:27 - 1137) A method stub stubbing with prepend does not unnecessarily prepend a module when the module was included + 1137) 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/stub_spec.rb:189 + # ./spec/rspec/mocks/spy_spec.rb:35 - 1138) A method stub stubbing with prepend handles stubbing prepended methods + 1138) 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/stub_spec.rb:143 + # ./spec/rspec/mocks/spy_spec.rb:31 - 1139) A method stub stubbing with prepend reuses our prepend module so as not to keep mutating the ancestors + 1139) 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/stub_spec.rb:199 + # ./spec/rspec/mocks/spy_spec.rb:66 - 1140) A method stub stubbing with prepend does not unnecessarily prepend a module when the prepended module does not override the stubbed method + 1140) 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/stub_spec.rb:168 + # ./spec/rspec/mocks/spy_spec.rb:39 - 1141) A method stub stubbing with prepend handles stubbing prepended methods on an object's singleton class + 1141) 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/stub_spec.rb:158 + # ./spec/rspec/mocks/spy_spec.rb:45 - 1142) A method stub stubbing with prepend handles stubbing prepended methods on a class's singleton class + 1142) 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/stub_spec.rb:151 + # ./spec/rspec/mocks/spy_spec.rb:27 - 1143) A method stub stubbing with prepend when a module with a method override is prepended after reset can still be stubbed again + 1143) 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/stub_spec.rb:231 + # ./spec/rspec/mocks/spy_spec.rb:35 - 1144) 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 + 1144) 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/stub_spec.rb:214 + # ./spec/rspec/mocks/spy_spec.rb:31 - 1145) A method stub using `and_return` returns declared value when message is received + 1145) 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/stub_spec.rb:32 + # ./spec/rspec/mocks/partial_double_spec.rb:517 - 1146) A method stub #rspec_reset restores existing singleton methods with the appropriate context + 1146) 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/stub_spec.rb:266 + # ./spec/rspec/mocks/partial_double_spec.rb:502 - 1147) A method stub #rspec_reset restores existing class methods + 1147) 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/stub_spec.rb:292 + # ./spec/rspec/mocks/partial_double_spec.rb:398 - 1148) A method stub #rspec_reset restores existing private instance methods + 1148) 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/stub_spec.rb:285 + # ./spec/rspec/mocks/partial_double_spec.rb:380 - 1149) A method stub #rspec_reset restores existing private class methods + 1149) 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/stub_spec.rb:318 + # ./spec/rspec/mocks/partial_double_spec.rb:385 - 1150) A method stub #rspec_reset restores existing instance methods + 1150) 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/stub_spec.rb:259 + # ./spec/rspec/mocks/partial_double_spec.rb:547 - 1151) A method stub #rspec_reset removes stubbed methods that didn't exist + 1151) 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/stub_spec.rb:253 + # ./spec/rspec/mocks/partial_double_spec.rb:512 - 1152) A method stub #rspec_reset correctly handles stubbing inherited mixed in class methods + 1152) 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/stub_spec.rb:353 + # ./spec/rspec/mocks/partial_double_spec.rb:541 - 1153) A method stub #rspec_reset correctly restores the visibility of methods whose visibility has been tweaked on the singleton class + 1153) 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/stub_spec.rb:334 + # ./spec/rspec/mocks/partial_double_spec.rb:443 - 1154) A method stub #rspec_reset does not remove existing methods that have been stubbed twice + 1154) 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/stub_spec.rb:325 + # ./spec/rspec/mocks/partial_double_spec.rb:507 - 1155) A method stub #rspec_reset restores existing aliased module_function methods + 1155) 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/stub_spec.rb:299 + # ./spec/rspec/mocks/partial_double_spec.rb:421 - 1156) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores non-prepended instance methods + 1156) 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/stub_spec.rb:408 + # ./spec/rspec/mocks/partial_double_spec.rb:491 - 1157) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores prepended instance methods + 1157) 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/stub_spec.rb:400 + # ./spec/rspec/mocks/partial_double_spec.rb:529 - 1158) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores prepended object singleton methods + 1158) 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/stub_spec.rb:431 + # ./spec/rspec/mocks/partial_double_spec.rb:413 - 1159) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores prepended class methods + 1159) 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/stub_spec.rb:416 + # ./spec/rspec/mocks/partial_double_spec.rb:497 - 1160) A method stub when the stubbed method is called does not call any methods on the passed args, since that could mutate them + 1160) 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/stub_spec.rb:117 + # ./spec/rspec/mocks/partial_double_spec.rb:572 - 1161) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher describes itself properly + 1161) 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/hash_excluding_matcher_spec.rb:6 + # ./spec/rspec/mocks/partial_double_spec.rb:375 - 1162) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with some of the specified keys + 1162) when verify_partial_doubles configuration option is set does not allow a non-existing method to be expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:57 + # ./spec/rspec/mocks/partial_double_spec.rb:487 - 1163) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with the specified key + 1163) 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/hash_excluding_matcher_spec.rb:49 + # ./spec/rspec/mocks/partial_double_spec.rb:432 - 1164) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a non-hash + 1164) 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/hash_excluding_matcher_spec.rb:37 + # ./spec/rspec/mocks/partial_double_spec.rb:556 - 1165) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with the specified key/value pair + 1165) when verify_partial_doubles configuration option is set allows the mock to raise an error with yield # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:45 + # ./spec/rspec/mocks/partial_double_spec.rb:566 - 1166) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with a specified key + 1166) 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/hash_excluding_matcher_spec.rb:41 + # ./spec/rspec/mocks/partial_double_spec.rb:582 - 1167) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with one of the specified keys + 1167) 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/hash_excluding_matcher_spec.rb:53 + # ./spec/rspec/mocks/partial_double_spec.rb:599 - 1168) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with one key/value pair included + 1168) 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/hash_excluding_matcher_spec.rb:61 + # ./spec/rspec/mocks/partial_double_spec.rb:611 - 1169) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash without the specified key + 1169) 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/hash_excluding_matcher_spec.rb:11 + # ./spec/rspec/mocks/partial_double_spec.rb:626 - 1170) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash with the specified key, but different value + 1170) 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/hash_excluding_matcher_spec.rb:15 + # ./spec/rspec/mocks/partial_double_spec.rb:640 - 1171) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches an empty hash + 1171) 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/hash_excluding_matcher_spec.rb:23 + # ./spec/rspec/mocks/partial_double_spec.rb:588 - 1172) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash without the specified key, given as anything() + 1172) 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/hash_excluding_matcher_spec.rb:19 + # ./spec/rspec/mocks/partial_double_spec.rb:474 - 1173) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash without any of the specified keys + 1173) 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/hash_excluding_matcher_spec.rb:27 + # ./spec/rspec/mocks/partial_double_spec.rb:462 - 1174) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches against classes inheriting from Hash + 1174) 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/hash_excluding_matcher_spec.rb:31 + # ./spec/rspec/mocks/at_most_spec.rb:21 - 1175) RSpec::Mocks::ExampleMethods works properly when extended onto an object that later extends `RSpec::Matchers` + 1175) 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/example_methods_spec.rb:31 + # ./spec/rspec/mocks/at_most_spec.rb:56 - 1176) RSpec::Mocks::ExampleMethods works properly when extended onto an object that has previous extended `RSpec::Matchers` + 1176) 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/example_methods_spec.rb:25 + # ./spec/rspec/mocks/at_most_spec.rb:108 - 1177) RSpec::Mocks::ExampleMethods works properly when extended onto an object + 1177) 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/example_methods_spec.rb:21 + # ./spec/rspec/mocks/at_most_spec.rb:117 - 1178) 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 + 1178) 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/example_methods_spec.rb:4 + # ./spec/rspec/mocks/at_most_spec.rb:27 - 1179) Serialization of mocked objects marshals the same with and without stubbing + 1179) 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/serialization_spec.rb:84 + # ./spec/rspec/mocks/at_most_spec.rb:49 - 1180) 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 + 1180) 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/serialization_spec.rb:43 + # ./spec/rspec/mocks/at_most_spec.rb:100 - 1181) 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 + 1181) 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/serialization_spec.rb:47 + # ./spec/rspec/mocks/at_most_spec.rb:81 - 1182) Serialization of mocked objects without YAML loaded does not add #to_yaml to the stubbed object + 1182) 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/serialization_spec.rb:77 + # ./spec/rspec/mocks/at_most_spec.rb:75 - 1183) A partial double uses reports nil in the error message + 1183) 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/partial_double_spec.rb:132 + # ./spec/rspec/mocks/at_most_spec.rb:38 - 1184) A partial double shares message expectations with clone + 1184) 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/partial_double_spec.rb:160 + # ./spec/rspec/mocks/at_most_spec.rb:32 - 1185) A partial double can expect a message and set a return value + 1185) 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/partial_double_spec.rb:74 + # ./spec/rspec/mocks/at_most_spec.rb:8 - 1186) A partial double can accept an inner hash as a message argument + 1186) 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/partial_double_spec.rb:86 + # ./spec/rspec/mocks/at_most_spec.rb:91 - 1187) 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 + 1187) 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/partial_double_spec.rb:145 + # ./spec/rspec/mocks/at_most_spec.rb:67 - 1188) A partial double can accept a hash as a message argument + 1188) 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/partial_double_spec.rb:79 + # ./spec/rspec/mocks/at_most_spec.rb:14 - 1189) A partial double names the class in the failure message when expectation is on class + 1189) 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/partial_double_spec.rb:19 + # ./spec/rspec/mocks/at_most_spec.rb:43 - 1190) A partial double can accept the string form of a message for a positive message expectation + 1190) 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/partial_double_spec.rb:119 + # ./spec/rspec/mocks/at_most_spec.rb:61 - 1191) A partial double can accept the string form of a message for a negative message expectation + 1191) 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/partial_double_spec.rb:124 + # ./spec/rspec/mocks/at_most_spec.rb:128 - 1192) A partial double verifies the method was called when expecting a message + 1192) RSpec::Mocks::Space raises ArgumentError with message if object is symbol # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:112 + # ./spec/rspec/mocks/space_spec.rb:241 - 1193) A partial double does not create an any_instance recorder when a message is allowed + 1193) RSpec::Mocks::Space tracks proxies in parent and child space separately # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:6 + # ./spec/rspec/mocks/space_spec.rb:108 - 1194) A partial double does not conflict with @options in the object + 1194) RSpec::Mocks::Space can be diffed in a failure when it has references to an error generator via a proxy # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:26 + # ./spec/rspec/mocks/space_spec.rb:229 - 1195) A partial double clears message expectations when `dup`ed + 1195) RSpec::Mocks::Space only adds an instance once # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:168 + # ./spec/rspec/mocks/space_spec.rb:120 - 1196) A partial double allows a class and a subclass to both be stubbed + 1196) 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/partial_double_spec.rb:100 + # ./spec/rspec/mocks/space_spec.rb:39 - 1197) A partial double allows `respond_to?` to be stubbed + 1197) 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/partial_double_spec.rb:46 + # ./spec/rspec/mocks/space_spec.rb:25 - 1198) A partial double names the class in the failure message + 1198) 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/partial_double_spec.rb:12 + # ./spec/rspec/mocks/space_spec.rb:9 - 1199) A partial double can disallow messages from being received + 1199) RSpec::Mocks::Space#reset_all resets all mocks within # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:64 + # ./spec/rspec/mocks/space_spec.rb:50 - 1200) A partial double allows `class` to be stubbed even when `any_instance` has already been used + 1200) RSpec::Mocks::Space#reset_all allows Array#reverse to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:32 + # ./spec/rspec/mocks/space_spec.rb:61 - 1201) A partial double can create a positive message expectation + 1201) 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/partial_double_spec.rb:95 + # ./spec/rspec/mocks/space_spec.rb:212 - 1202) RSpec::Mocks::Configuration adds stub and should_receive to the given modules + 1202) 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/configuration_spec.rb:12 + # ./spec/rspec/mocks/space_spec.rb:219 - 1203) RSpec::Mocks::Configuration#when_declaring_verifying_double captures the supplied blocks + 1203) 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/configuration_spec.rb:177 + # ./spec/rspec/mocks/space_spec.rb:206 - 1204) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax defaults to enabling both the :should and :expect syntaxes + 1204) 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/configuration_spec.rb:36 + # ./spec/rspec/mocks/space_spec.rb:192 - 1205) 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 + 1205) 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/configuration_spec.rb:50 + # ./spec/rspec/mocks/space_spec.rb:182 - 1206) 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 + 1206) 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/configuration_spec.rb:58 + # ./spec/rspec/mocks/space_spec.rb:69 - 1207) 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 + 1207) 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/configuration_spec.rb:66 + # ./spec/rspec/mocks/space_spec.rb:86 - 1208) 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 + 1208) 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/configuration_spec.rb:62 + # ./spec/rspec/mocks/space_spec.rb:97 - 1209) 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 + 1209) 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/configuration_spec.rb:54 + # ./spec/rspec/mocks/space_spec.rb:176 - 1210) 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 + 1210) 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/configuration_spec.rb:123 + # ./spec/rspec/mocks/space_spec.rb:166 - 1211) 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 + 1211) 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/configuration_spec.rb:107 + # ./spec/rspec/mocks/space_spec.rb:171 - 1212) 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 + 1212) 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/configuration_spec.rb:115 + # ./spec/rspec/mocks/space_spec.rb:138 - 1213) 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 + 1213) 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/configuration_spec.rb:119 + # ./spec/rspec/mocks/space_spec.rb:154 - 1214) 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 + 1214) 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/configuration_spec.rb:111 + # ./spec/rspec/mocks/space_spec.rb:147 - 1215) 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 + 1215) 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/configuration_spec.rb:88 + # ./spec/rspec/mocks/space_spec.rb:147 - 1216) 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 + 1216) 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/configuration_spec.rb:92 + # ./spec/rspec/mocks/space_spec.rb:154 - 1217) 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 + 1217) 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/configuration_spec.rb:97 + # ./spec/rspec/mocks/space_spec.rb:138 - 1218) 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 + 1218) 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/configuration_spec.rb:80 + # ./spec/rspec/mocks/partial_double_spec.rb:199 - 1219) 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 + 1219) 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/configuration_spec.rb:84 + # ./spec/rspec/mocks/formatting_spec.rb:94 - 1220) 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 + 1220) 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/configuration_spec.rb:76 + # ./spec/rspec/mocks/formatting_spec.rb:68 - 1221) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax defaults to enabling both the :should and :expect syntaxes + 1221) 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/configuration_spec.rb:36 + # ./spec/rspec/mocks/formatting_spec.rb:74 - 1222) 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 + 1222) 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/configuration_spec.rb:66 + # ./spec/rspec/mocks/formatting_spec.rb:82 - 1223) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect reports that the syntax is :expect + 1223) 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/configuration_spec.rb:62 + # ./spec/rspec/mocks/formatting_spec.rb:88 - 1224) 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 + 1224) 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/configuration_spec.rb:58 + # ./spec/rspec/mocks/formatting_spec.rb:59 - 1225) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect removes `any_instance` from every class + 1225) 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/configuration_spec.rb:54 + # ./spec/rspec/mocks/formatting_spec.rb:48 - 1226) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect removes the should methods from every object + 1226) 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/configuration_spec.rb:50 + # ./spec/rspec/mocks/formatting_spec.rb:54 - 1227) 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 + 1227) 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/configuration_spec.rb:84 + # ./spec/rspec/mocks/formatting_spec.rb:39 - 1228) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should reports that the syntax is :should + 1228) 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/configuration_spec.rb:88 + # ./spec/rspec/mocks/formatting_spec.rb:34 - 1229) 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 + 1229) 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/configuration_spec.rb:97 + # ./spec/rspec/mocks/formatting_spec.rb:24 - 1230) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should adds `any_instance` to every class + 1230) 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/configuration_spec.rb:80 + # ./spec/rspec/mocks/formatting_spec.rb:28 - 1231) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should adds the should methods to every object + 1231) 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/configuration_spec.rb:76 + # ./spec/rspec/mocks/partial_double_spec.rb:19 - 1232) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should does not warn about the should syntax + 1232) 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/configuration_spec.rb:92 + # ./spec/rspec/mocks/partial_double_spec.rb:74 - 1233) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] adds the should methods to every object + 1233) 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/configuration_spec.rb:107 + # ./spec/rspec/mocks/partial_double_spec.rb:112 - 1234) 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 + 1234) 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/configuration_spec.rb:115 + # ./spec/rspec/mocks/partial_double_spec.rb:64 - 1235) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] adds `any_instance` to every class + 1235) 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/configuration_spec.rb:111 + # ./spec/rspec/mocks/partial_double_spec.rb:32 - 1236) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] does not warn about the should syntax + 1236) 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/configuration_spec.rb:123 + # ./spec/rspec/mocks/partial_double_spec.rb:6 - 1237) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] reports that both syntaxes are enabled + 1237) 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/configuration_spec.rb:119 + # ./spec/rspec/mocks/partial_double_spec.rb:119 - 1238) #any_instance when resetting post-verification adds an instance to the current space when stubbed method is invoked + 1238) 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/any_instance_spec.rb:1169 + # ./spec/rspec/mocks/partial_double_spec.rb:145 - 1239) #any_instance when resetting post-verification existing method with expectations ensures that the next spec does not see that expectation + 1239) 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/any_instance_spec.rb:1147 + # ./spec/rspec/mocks/partial_double_spec.rb:12 - 1240) #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 + 1240) 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/any_instance_spec.rb:1126 + # ./spec/rspec/mocks/partial_double_spec.rb:160 - 1241) #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 + 1241) 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/any_instance_spec.rb:1121 + # ./spec/rspec/mocks/partial_double_spec.rb:168 - 1242) #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 + 1242) 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/any_instance_spec.rb:1141 + # ./spec/rspec/mocks/partial_double_spec.rb:95 - 1243) #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 + 1243) 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/any_instance_spec.rb:1136 + # ./spec/rspec/mocks/partial_double_spec.rb:79 - 1244) #any_instance when resetting post-verification existing method with expectations private methods ensures that the restored method behaves as it originally did + 1244) 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/any_instance_spec.rb:1114 + # ./spec/rspec/mocks/partial_double_spec.rb:86 - 1245) #any_instance when resetting post-verification existing method with expectations private methods cleans up the backed up method + 1245) 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/any_instance_spec.rb:1106 + # ./spec/rspec/mocks/partial_double_spec.rb:124 - 1246) #any_instance when resetting post-verification existing method with expectations private methods restores a stubbed private method after the spec is run + 1246) 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/any_instance_spec.rb:1110 + # ./spec/rspec/mocks/partial_double_spec.rb:132 - 1247) #any_instance when resetting post-verification existing method with stubbing private methods cleans up the backed up method + 1247) 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/any_instance_spec.rb:1083 + # ./spec/rspec/mocks/partial_double_spec.rb:26 - 1248) #any_instance when resetting post-verification existing method with stubbing private methods restores a stubbed private method after the spec is run + 1248) 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/any_instance_spec.rb:1087 + # ./spec/rspec/mocks/partial_double_spec.rb:100 - 1249) #any_instance when resetting post-verification existing method with stubbing private methods ensures that the restored method behaves as it originally did + 1249) 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/any_instance_spec.rb:1091 + # ./spec/rspec/mocks/partial_double_spec.rb:46 - 1250) #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 + 1250) 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/any_instance_spec.rb:1056 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:67 - 1251) #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 + 1251) 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/any_instance_spec.rb:1065 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:60 - 1252) #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 + 1252) 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/any_instance_spec.rb:1049 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:75 - 1253) #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 + 1253) 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/any_instance_spec.rb:1159 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:82 - 1254) #any_instance when used after the test has finished restores the original behavior of a stubbed method + 1254) 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/any_instance_spec.rb:1312 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:32 - 1255) #any_instance when used after the test has finished restores the original behaviour, even if the expectation fails + 1255) 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/any_instance_spec.rb:1331 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:62 - 1256) #any_instance when used after the test has finished does not restore a stubbed method not originally implemented in the class + 1256) 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/any_instance_spec.rb:1323 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:58 - 1257) #any_instance when directed at a method defined on a superclass mocks the method correctly + 1257) 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/any_instance_spec.rb:1286 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:45 - 1258) #any_instance when directed at a method defined on a superclass stubs the method correctly + 1258) 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/any_instance_spec.rb:1281 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:8 - 1259) #any_instance setting a message expectation does not set the expectation on every instance + 1259) 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/any_instance_spec.rb:547 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:52 - 1260) #any_instance setting a message expectation works with a SimpleDelegator subclass + 1260) 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/any_instance_spec.rb:792 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:17 - 1261) #any_instance setting a message expectation does not modify the return value of stubs set on an instance of a subclass + 1261) 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/any_instance_spec.rb:563 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:72 - 1262) #any_instance setting a message expectation affects previously stubbed instances + 1262) 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/any_instance_spec.rb:538 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:78 - 1263) #any_instance setting a message expectation does not modify the return value of stubs set on an instance + 1263) An object double when an unloaded object constant has previously been stubbed with an object uses the stubbed const value to verify against for `object_double(ConstName)`, which probably isn't what the user wants, but there's nothing else we can do since we can't get the constant name from the given object and thus cannot interrogate our stubbed const registry to see it has been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:555 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:111 - 1264) #any_instance setting a message expectation handles inspect accessing expected methods + 1264) 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/any_instance_spec.rb:523 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:106 - 1265) #any_instance setting a message expectation works with a BasicObject subclass that mixes in Kernel + 1265) 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/any_instance_spec.rb:782 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:129 - 1266) #any_instance setting a message expectation properly notifies any instance recorders at multiple levels of hierarchy when a directly stubbed object receives a message + 1266) 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/any_instance_spec.rb:572 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:124 - 1267) #any_instance setting a message expectation properly notifies any instance recorders when they are created after the object's mock proxy + 1267) 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/any_instance_spec.rb:585 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:90 - 1268) #any_instance setting a message expectation message count the 'once' constraint passes for one invocation + 1268) 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/any_instance_spec.rb:844 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:96 - 1269) #any_instance setting a message expectation message count the 'once' constraint fails when an instance is declared but there are no invocations + 1269) 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/any_instance_spec.rb:856 + # ./spec/rspec/mocks/mock_ordering_spec.rb:66 - 1270) #any_instance setting a message expectation message count the 'once' constraint fails when no instances are declared + 1270) ordering supports duplicate messages # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:849 + # ./spec/rspec/mocks/mock_ordering_spec.rb:100 - 1271) #any_instance setting a message expectation message count the 'once' constraint fails for more than one invocation + 1271) 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/any_instance_spec.rb:864 + # ./spec/rspec/mocks/mock_ordering_spec.rb:46 - 1272) #any_instance setting a message expectation message count the 'exactly(n)' constraint passes for n invocations where n = 3 + 1272) 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/any_instance_spec.rb:933 + # ./spec/rspec/mocks/mock_ordering_spec.rb:16 - 1273) #any_instance setting a message expectation message count the 'exactly(n)' constraint fails for n invocations where n < 3 + 1273) 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/any_instance_spec.rb:939 + # ./spec/rspec/mocks/mock_ordering_spec.rb:38 - 1274) #any_instance setting a message expectation message count the 'exactly(n)' constraint fails for n invocations where n > 3 + 1274) 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/any_instance_spec.rb:948 + # ./spec/rspec/mocks/mock_ordering_spec.rb:27 - 1275) #any_instance setting a message expectation message count the 'exactly(n)' constraint time alias fails for 2 invocations + 1275) 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/any_instance_spec.rb:924 + # ./spec/rspec/mocks/mock_ordering_spec.rb:80 - 1276) #any_instance setting a message expectation message count the 'exactly(n)' constraint time alias passes for 1 invocation + 1276) 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/any_instance_spec.rb:918 + # ./spec/rspec/mocks/mock_ordering_spec.rb:56 - 1277) #any_instance setting a message expectation message count the 'at_most(n)' constraint passes for n invocations where n < 3 + 1277) 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/any_instance_spec.rb:987 + # ./spec/rspec/mocks/mock_ordering_spec.rb:7 - 1278) #any_instance setting a message expectation message count the 'at_most(n)' constraint passes for n invocations where n = 3 + 1278) 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/any_instance_spec.rb:981 + # ./spec/rspec/mocks/marshal_extension_spec.rb:36 - 1279) #any_instance setting a message expectation message count the 'at_most(n)' constraint fails for n invocations where n > 3 + 1279) 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/any_instance_spec.rb:993 + # ./spec/rspec/mocks/marshal_extension_spec.rb:17 - 1280) #any_instance setting a message expectation message count the 'never' constraint passes for 0 invocations + 1280) 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/any_instance_spec.rb:1003 + # ./spec/rspec/mocks/marshal_extension_spec.rb:31 - 1281) #any_instance setting a message expectation message count the 'never' constraint fails on the first invocation + 1281) 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/any_instance_spec.rb:1008 + # ./spec/rspec/mocks/marshal_extension_spec.rb:24 - 1282) #any_instance setting a message expectation message count the 'never' constraint when combined with other expectations passes when the other expectations are met + 1282) 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/any_instance_spec.rb:1016 + # ./spec/rspec/mocks/marshal_extension_spec.rb:58 - 1283) #any_instance setting a message expectation message count the 'never' constraint when combined with other expectations fails when the other expectations are not met + 1283) 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/any_instance_spec.rb:1022 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:12 - 1284) #any_instance setting a message expectation message count the 'thrice' constraint passes for three invocations + 1284) 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/any_instance_spec.rb:892 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:18 - 1285) #any_instance setting a message expectation message count the 'thrice' constraint fails for more than three invocations + 1285) 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/any_instance_spec.rb:898 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:7 - 1286) #any_instance setting a message expectation message count the 'thrice' constraint fails for less than three invocations + 1286) 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/any_instance_spec.rb:906 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:33 - 1287) #any_instance setting a message expectation message count the 'at_least(n)' constraint fails for n invocations where n < 3 + 1287) 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/any_instance_spec.rb:964 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:28 - 1288) #any_instance setting a message expectation message count the 'at_least(n)' constraint passes for n invocations where n > 3 + 1288) 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/any_instance_spec.rb:973 + # ./spec/rspec/mocks/stash_spec.rb:26 - 1289) #any_instance setting a message expectation message count the 'at_least(n)' constraint passes for n invocations where n = 3 + 1289) 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/any_instance_spec.rb:958 + # ./spec/rspec/mocks/partial_double_spec.rb:278 - 1290) #any_instance setting a message expectation message count the 'twice' constraint passes for two invocations + 1290) 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/any_instance_spec.rb:875 + # ./spec/rspec/mocks/partial_double_spec.rb:292 - 1291) #any_instance setting a message expectation message count the 'twice' constraint fails for more than two invocations + 1291) 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/any_instance_spec.rb:881 + # ./spec/rspec/mocks/partial_double_spec.rb:296 - 1292) #any_instance setting a message expectation with an expectation is set on a method which does not exist returns the expected value + 1292) 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/any_instance_spec.rb:656 + # ./spec/rspec/mocks/configuration_spec.rb:12 - 1293) #any_instance setting a message expectation with an expectation is set on a method which does not exist fails if no instance is created + 1293) 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/any_instance_spec.rb:669 + # ./spec/rspec/mocks/configuration_spec.rb:36 - 1294) #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 + 1294) 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/any_instance_spec.rb:684 + # ./spec/rspec/mocks/configuration_spec.rb:115 - 1295) #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 + 1295) 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/any_instance_spec.rb:661 + # ./spec/rspec/mocks/configuration_spec.rb:123 - 1296) #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 + 1296) 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/any_instance_spec.rb:676 + # ./spec/rspec/mocks/configuration_spec.rb:119 - 1297) #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 + 1297) 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/any_instance_spec.rb:700 + # ./spec/rspec/mocks/configuration_spec.rb:111 - 1298) #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 + 1298) 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/any_instance_spec.rb:694 + # ./spec/rspec/mocks/configuration_spec.rb:107 - 1299) #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 + 1299) 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/any_instance_spec.rb:713 + # ./spec/rspec/mocks/configuration_spec.rb:66 - 1300) #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 + 1300) 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/any_instance_spec.rb:724 + # ./spec/rspec/mocks/configuration_spec.rb:54 - 1301) #any_instance setting a message expectation when an instance has been directly stubbed fails when a second instance to receive the message + 1301) 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/any_instance_spec.rb:622 + # ./spec/rspec/mocks/configuration_spec.rb:50 - 1302) #any_instance setting a message expectation when the class has an included module allows mocking a method that is defined on the module + 1302) 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/any_instance_spec.rb:612 + # ./spec/rspec/mocks/configuration_spec.rb:62 - 1303) #any_instance setting a message expectation with argument matching returns the expected value when arguments match + 1303) 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/any_instance_spec.rb:807 + # ./spec/rspec/mocks/configuration_spec.rb:58 - 1304) #any_instance setting a message expectation with argument matching is not affected by the invocation of existing methods on other instances + 1304) 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/any_instance_spec.rb:824 + # ./spec/rspec/mocks/configuration_spec.rb:84 - 1305) #any_instance setting a message expectation with argument matching fails when arguments do not match + 1305) 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/any_instance_spec.rb:831 + # ./spec/rspec/mocks/configuration_spec.rb:97 - 1306) #any_instance setting a message expectation with argument matching fails when the arguments match but different instances are used + 1306) 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/any_instance_spec.rb:813 + # ./spec/rspec/mocks/configuration_spec.rb:80 - 1307) #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 + 1307) 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/any_instance_spec.rb:595 + # ./spec/rspec/mocks/configuration_spec.rb:88 - 1308) #any_instance setting a message expectation when the class has a prepended module prevents mocking a method that is defined on the prepended module + 1308) 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/any_instance_spec.rb:602 + # ./spec/rspec/mocks/configuration_spec.rb:76 - 1309) #any_instance setting a message expectation with an expectation is set on a method that exists fails if no instance is created + 1309) 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/any_instance_spec.rb:747 + # ./spec/rspec/mocks/configuration_spec.rb:92 - 1310) #any_instance setting a message expectation with an expectation is set on a method that exists returns the expected value + 1310) 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/any_instance_spec.rb:734 + # ./spec/rspec/mocks/configuration_spec.rb:177 - 1311) #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 + 1311) 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/any_instance_spec.rb:739 + # ./spec/rspec/mocks/configuration_spec.rb:36 - 1312) #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 + 1312) 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/any_instance_spec.rb:754 + # ./spec/rspec/mocks/configuration_spec.rb:62 - 1313) #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 + 1313) 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/any_instance_spec.rb:769 + # ./spec/rspec/mocks/configuration_spec.rb:58 - 1314) #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 + 1314) 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/any_instance_spec.rb:763 + # ./spec/rspec/mocks/configuration_spec.rb:50 - 1315) #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 + 1315) 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/any_instance_spec.rb:636 + # ./spec/rspec/mocks/configuration_spec.rb:66 - 1316) #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 + 1316) 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/any_instance_spec.rb:645 + # ./spec/rspec/mocks/configuration_spec.rb:54 - 1317) #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 + 1317) 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/any_instance_spec.rb:1231 + # ./spec/rspec/mocks/configuration_spec.rb:107 - 1318) #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 + 1318) 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/any_instance_spec.rb:1240 + # ./spec/rspec/mocks/configuration_spec.rb:123 - 1319) #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 + 1319) 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/any_instance_spec.rb:1213 + # ./spec/rspec/mocks/configuration_spec.rb:115 - 1320) #any_instance passing the receiver to the implementation block when configured to pass the instance an any instance expectation doesn't effect with + 1320) 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/any_instance_spec.rb:1207 + # ./spec/rspec/mocks/configuration_spec.rb:119 - 1321) #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 + 1321) 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/any_instance_spec.rb:1185 + # ./spec/rspec/mocks/configuration_spec.rb:111 - 1322) #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 + 1322) 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/any_instance_spec.rb:1194 + # ./spec/rspec/mocks/configuration_spec.rb:92 - 1323) #any_instance chain yields the value specified + 1323) 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/any_instance_spec.rb:47 + # ./spec/rspec/mocks/configuration_spec.rb:76 - 1324) #any_instance when used in conjunction with a `dup` doesn't fail when dup accepts parameters + 1324) 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/any_instance_spec.rb:1266 + # ./spec/rspec/mocks/configuration_spec.rb:88 - 1325) #any_instance when used in conjunction with a `dup` doesn't cause an infinite loop + 1325) 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/any_instance_spec.rb:1250 + # ./spec/rspec/mocks/configuration_spec.rb:97 - 1326) #any_instance when used in conjunction with a `dup` doesn't bomb if the object doesn't support `dup` + 1326) 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/any_instance_spec.rb:1259 + # ./spec/rspec/mocks/configuration_spec.rb:80 - 1327) #any_instance when a class overrides Object#method stubs the method correctly + 1327) 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/any_instance_spec.rb:1300 + # ./spec/rspec/mocks/configuration_spec.rb:84 - 1328) #any_instance when a class overrides Object#method mocks the method correctly + 1328) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the with method is called, indicating the expectation has already been invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1305 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1329) #any_instance when stubbing does not suppress an exception when a method that doesn't exist is invoked + 1329) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the and_throw method is called, indicating the expectation has already been invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:91 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1330) #any_instance when stubbing with multiple stubs stubs a method + 1330) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the at_least method is called, indicating the expectation has already been invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:248 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1331) #any_instance when stubbing with multiple stubs returns the same value for calls on different instances + 1331) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the at_most method is called, indicating the expectation has already been invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:254 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1332) #any_instance when stubbing with #and_throw can stub a method that exists + 1332) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the and_raise method is called, indicating the expectation has already been invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:328 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1333) #any_instance when stubbing with #and_throw can stub a method that doesn't exist + 1333) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the exactly method is called, indicating the expectation has already been invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:323 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1334) #any_instance when stubbing multiple methods allows multiple methods to be stubbed in a single invocation + 1334) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the and_return method is called, indicating the expectation has already been invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:97 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1335) #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 + 1335) Modifying invoked expectations behaves like a customization on an invoked expectation raises when the and_yield method is called, indicating the expectation has already been invoked # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:110 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1336) #any_instance when stubbing multiple methods allows a chain of methods to be stubbed using #receive_message_chain given symbols representing the methods + 1336) 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/any_instance_spec.rb:105 + # ./spec/rspec/mocks/stub_chain_spec.rb:6 - 1337) #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 + 1337) 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/any_instance_spec.rb:120 + # ./spec/rspec/mocks/stub_chain_spec.rb:160 - 1338) #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 + 1338) 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/any_instance_spec.rb:115 + # ./spec/rspec/mocks/stub_chain_spec.rb:152 - 1339) #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 + 1339) 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/any_instance_spec.rb:127 + # ./spec/rspec/mocks/stub_chain_spec.rb:147 - 1340) #any_instance when stubbing with #and_call_original and competing #with can combine and_call_original, with, and_return + 1340) 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/any_instance_spec.rb:301 + # ./spec/rspec/mocks/stub_chain_spec.rb:96 - 1341) #any_instance when stubbing aliased methods tracks aliased method calls + 1341) 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/any_instance_spec.rb:213 + # ./spec/rspec/mocks/stub_chain_spec.rb:38 - 1342) #any_instance when stubbing with #and_raise can stub a method that exists + 1342) 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/any_instance_spec.rb:316 + # ./spec/rspec/mocks/stub_chain_spec.rb:45 - 1343) #any_instance when stubbing with #and_raise can stub a method that doesn't exist + 1343) 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/any_instance_spec.rb:311 + # ./spec/rspec/mocks/stub_chain_spec.rb:52 - 1344) #any_instance when stubbing when partially mocking objects resets partially mocked objects correctly + 1344) 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/any_instance_spec.rb:349 + # ./spec/rspec/mocks/stub_chain_spec.rb:59 - 1345) #any_instance when stubbing behaves as 'every instance' handles stubbing on a sub class when a super class is stubbed differently + 1345) 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/any_instance_spec.rb:163 + # ./spec/rspec/mocks/stub_chain_spec.rb:16 - 1346) #any_instance when stubbing behaves as 'every instance' stubs every instance in the spec + 1346) 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/any_instance_spec.rb:138 + # ./spec/rspec/mocks/stub_chain_spec.rb:23 - 1347) #any_instance when stubbing behaves as 'every instance' handles stubbing on super and subclasses + 1347) 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/any_instance_spec.rb:157 + # ./spec/rspec/mocks/stub_chain_spec.rb:30 - 1348) #any_instance when stubbing behaves as 'every instance' stubs instance created before any_instance was called + 1348) 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/any_instance_spec.rb:144 + # ./spec/rspec/mocks/stub_chain_spec.rb:104 - 1349) #any_instance when stubbing behaves as 'every instance' handles method restoration on subclasses + 1349) 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/any_instance_spec.rb:172 + # ./spec/rspec/mocks/stub_chain_spec.rb:114 - 1350) #any_instance when stubbing behaves as 'every instance' handles freeze and duplication correctly + 1350) 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/any_instance_spec.rb:150 + # ./spec/rspec/mocks/stub_chain_spec.rb:126 - 1351) #any_instance when stubbing core ruby objects works with the non-standard constructor class + 1351) 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/any_instance_spec.rb:396 + # ./spec/rspec/mocks/stub_chain_spec.rb:136 - 1352) #any_instance when stubbing core ruby objects works with the non-standard constructor '' + 1352) 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/any_instance_spec.rb:385 + # ./spec/rspec/mocks/stub_chain_spec.rb:68 - 1353) #any_instance when stubbing core ruby objects works with the non-standard constructor {} + 1353) 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/any_instance_spec.rb:375 + # ./spec/rspec/mocks/stub_chain_spec.rb:75 - 1354) #any_instance when stubbing core ruby objects works with the non-standard constructor [] + 1354) 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/any_instance_spec.rb:370 + # ./spec/rspec/mocks/stub_chain_spec.rb:89 - 1355) #any_instance when stubbing core ruby objects works with the non-standard constructor module + 1355) 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/any_instance_spec.rb:390 + # ./spec/rspec/mocks/stub_chain_spec.rb:82 - 1356) #any_instance when stubbing core ruby objects works uniformly across *everything* + 1356) Failure notification does not allow a double to miscount the number of times a message was received when a failure is notified in an alternate way # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:365 + # ./spec/rspec/mocks/failure_notification_spec.rb:24 - 1357) #any_instance when stubbing core ruby objects works with the non-standard constructor "" + 1357) Failure notification uses the rspec-support notifier to support `aggregate_failures` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:380 + # ./spec/rspec/mocks/failure_notification_spec.rb:8 - 1358) #any_instance when stubbing with #and_yield yields the value specified + 1358) Failure notification includes the line of future expectation in the notification for an unreceived message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:291 + # ./spec/rspec/mocks/failure_notification_spec.rb:16 - 1359) #any_instance when stubbing with a block returns the same computed value for calls on different instances + 1359) Failure notification when using `aggregate_failures` spy failures for unreceived messages are reported correctly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:340 + # ./spec/rspec/mocks/failure_notification_spec.rb:34 - 1360) #any_instance when stubbing with a block stubs a method + 1360) Failure notification when using `aggregate_failures` failing negative expectations are only notified once # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:335 + # ./spec/rspec/mocks/failure_notification_spec.rb:58 - 1361) #any_instance when stubbing when the class has a prepended module prevents stubbing a method that is defined on the prepended module + 1361) 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/any_instance_spec.rb:188 + # ./spec/rspec/mocks/failure_notification_spec.rb:45 - 1362) #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 + 1362) 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/any_instance_spec.rb:196 + # ./spec/rspec/mocks/serialization_spec.rb:84 - 1363) #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 + 1363) 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/any_instance_spec.rb:203 + # ./spec/rspec/mocks/serialization_spec.rb:77 - 1364) #any_instance when stubbing when the class has a prepended module allows stubbing a method that is not defined on the prepended module + 1364) 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/any_instance_spec.rb:181 + # ./spec/rspec/mocks/serialization_spec.rb:43 - 1365) #any_instance when stubbing with #and_return can stub a method that exists + 1365) 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/any_instance_spec.rb:266 + # ./spec/rspec/mocks/serialization_spec.rb:47 - 1366) #any_instance when stubbing with #and_return can change how instances responds in the middle of an example + 1366) 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/any_instance_spec.rb:278 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:67 - 1367) #any_instance when stubbing with #and_return can stub a method that doesn't exist + 1367) 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/any_instance_spec.rb:261 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:45 - 1368) #any_instance when stubbing with #and_return returns the same object for calls on different instances + 1368) 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/any_instance_spec.rb:271 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:58 - 1369) #any_instance when stubbing with argument matching returns the stubbed value when arguments match + 1369) 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/any_instance_spec.rb:229 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:32 - 1370) #any_instance when stubbing with argument matching fails the spec with an expectation error when the arguments do not match + 1370) 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/any_instance_spec.rb:235 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:18 - 1371) #any_instance unstubbing using `and_call_original` removes any stubs set directly on an instance + 1371) RSpec::Mocks::Double reports line number of expectation of unreceived message after a message expectation after similar stub # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:436 + # ./spec/rspec/mocks/double_spec.rb:87 - 1372) #any_instance unstubbing using `and_call_original` removes stubs from sub class after Invocation when super class was originally stubbed + 1372) RSpec::Mocks::Double passes proc to expectation block with an argument # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:427 + # ./spec/rspec/mocks/double_spec.rb:321 - 1373) #any_instance unstubbing using `and_call_original` removes all stubs with the supplied method name + 1373) RSpec::Mocks::Double yields 0 args to blocks that take a variable number of arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:411 + # ./spec/rspec/mocks/double_spec.rb:430 - 1374) #any_instance unstubbing using `and_call_original` does not remove any expectations with the same method name + 1374) RSpec::Mocks::Double returns nil if no return value is set and there is no previously stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:444 + # ./spec/rspec/mocks/double_spec.rb:210 - 1375) #any_instance unstubbing using `and_call_original` removes stubs even if they have already been invoked + 1375) RSpec::Mocks::Double fails when receiving message specified as not to be received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:418 + # ./spec/rspec/mocks/double_spec.rb:130 - 1376) #any_instance unstubbing using `and_call_original` does not get confused about string vs symbol usage for the message + 1376) RSpec::Mocks::Double raises exception if args don't match when method called even when using null_object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:452 + # ./spec/rspec/mocks/double_spec.rb:243 - 1377) #any_instance unstubbing using `and_call_original` replaces the stubbed method with the original method + 1377) RSpec::Mocks::Double yields two values 3 times consecutively # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:405 + # ./spec/rspec/mocks/double_spec.rb:510 - 1378) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_return' + 1378) RSpec::Mocks::Double fails if unexpected method called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:55 + # ./spec/rspec/mocks/double_spec.rb:264 - 1379) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_yield' + 1379) RSpec::Mocks::Double yields 0 args multiple times to blocks that take a variable number of arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:63 + # ./spec/rspec/mocks/double_spec.rb:438 - 1380) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_raise' + 1380) RSpec::Mocks::Double yields many args 3 times consecutively to blocks that take a variable number of arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:59 + # ./spec/rspec/mocks/double_spec.rb:473 - 1381) #any_instance invocation order when stubbing allows chaining 'and_yield' + 1381) RSpec::Mocks::Double warns when `and_return` is called on a negative expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:71 + # ./spec/rspec/mocks/double_spec.rb:109 - 1382) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_throw' + 1382) RSpec::Mocks::Double fails when calling yielding method with wrong arity # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:67 + # ./spec/rspec/mocks/double_spec.rb:520 - 1383) #any_instance invocation order when setting a message expectation raises an error if 'with' follows 'and_return' + 1383) RSpec::Mocks::Double fails when calling yielding method consecutively with wrong arity # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:78 + # ./spec/rspec/mocks/double_spec.rb:536 - 1384) #any_instance invocation order when setting a message expectation raises an error if 'with' follows 'and_raise' + 1384) RSpec::Mocks::Double temporarily replaces a method stub on a double # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:83 + # ./spec/rspec/mocks/double_spec.rb:587 - 1385) #any_instance expect_any_instance_of(...).not_to receive prevents confusing double-negative expressions involving `never` + 1385) RSpec::Mocks::Double raises exception if args don't match when method called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:512 + # ./spec/rspec/mocks/double_spec.rb:216 - 1386) #any_instance expect_any_instance_of(...).not_to receive fails if the method is called + 1386) RSpec::Mocks::Double fails when receiving message specified as not to be received with args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:460 + # ./spec/rspec/mocks/double_spec.rb:140 - 1387) #any_instance expect_any_instance_of(...).not_to receive affects previously stubbed instances + 1387) RSpec::Mocks::Double passes proc to stub block without an argument # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:477 + # ./spec/rspec/mocks/double_spec.rb:326 - 1388) #any_instance expect_any_instance_of(...).not_to receive passes if no method is called + 1388) RSpec::Mocks::Double yields single value 3 times consecutively # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:468 + # ./spec/rspec/mocks/double_spec.rb:491 - 1389) #any_instance expect_any_instance_of(...).not_to receive passes if only a different method is called + 1389) RSpec::Mocks::Double returns the previously stubbed value if no return value is set # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:472 + # ./spec/rspec/mocks/double_spec.rb:203 - 1390) #any_instance expect_any_instance_of(...).not_to receive when used in combination with should_receive passes if only the expected message is received + 1390) RSpec::Mocks::Double allows setter methods to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:504 + # ./spec/rspec/mocks/double_spec.rb:52 - 1391) #any_instance expect_any_instance_of(...).not_to receive with constraints passes if the method is called with different parameters + 1391) RSpec::Mocks::Double yields single value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:497 + # ./spec/rspec/mocks/double_spec.rb:483 - 1392) #any_instance expect_any_instance_of(...).not_to receive with constraints fails if the method is called with the specified parameters + 1392) RSpec::Mocks::Double fails when array arguments do not match # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:490 + # ./spec/rspec/mocks/double_spec.rb:150 - 1393) only stashing the original method keeps the original method intact after multiple expectations are added on the same method + 1393) 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/stash_spec.rb:12 + # ./spec/rspec/mocks/double_spec.rb:621 - 1394) PartialDoubleUsingMocksDirectly passes when message is received with correct args + 1394) 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/partial_double_using_mocks_directly_spec.rb:49 + # ./spec/rspec/mocks/double_spec.rb:31 - 1395) PartialDoubleUsingMocksDirectly fails when expected message is not received + 1395) 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/partial_double_using_mocks_directly_spec.rb:28 + # ./spec/rspec/mocks/double_spec.rb:47 - 1396) PartialDoubleUsingMocksDirectly fails when message is received with incorrect args + 1396) 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/partial_double_using_mocks_directly_spec.rb:35 + # ./spec/rspec/mocks/double_spec.rb:357 - 1397) PartialDoubleUsingMocksDirectly restores the original method if it existed + 1397) 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/partial_double_using_mocks_directly_spec.rb:55 + # ./spec/rspec/mocks/double_spec.rb:465 - 1398) PartialDoubleUsingMocksDirectly passes when expected message is received + 1398) 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/partial_double_using_mocks_directly_spec.rb:43 + # ./spec/rspec/mocks/double_spec.rb:178 - 1399) PartialDoubleUsingMocksDirectly with an instance method handled by method_missing restores the original behavior + 1399) 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/partial_double_using_mocks_directly_spec.rb:64 + # ./spec/rspec/mocks/double_spec.rb:653 - 1400) PartialDoubleUsingMocksDirectly with a class method handled by method_missing restores the original behavior + 1400) 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/partial_double_using_mocks_directly_spec.rb:74 + # ./spec/rspec/mocks/double_spec.rb:316 - 1401) and_invoke when a block is passed raises ArgumentError + 1401) 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_invoke_spec.rb:7 + # ./spec/rspec/mocks/double_spec.rb:635 - 1402) and_invoke when calling passed callables passes the arguments into the callable + 1402) 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/and_invoke_spec.rb:35 + # ./spec/rspec/mocks/double_spec.rb:25 - 1403) and_invoke when a non-callable are passed in any position raises ArgumentError + 1403) 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/and_invoke_spec.rb:24 + # ./spec/rspec/mocks/double_spec.rb:352 - 1404) and_invoke when no argument is passed raises ArgumentError + 1404) 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_invoke_spec.rb:15 + # ./spec/rspec/mocks/double_spec.rb:71 - 1405) Using rspec-mocks features in before(:all) blocks #expect(...).to receive raises an error with a useful message + 1405) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/double_spec.rb:455 - 1406) Using rspec-mocks features in before(:all) blocks #stub_const raises an error with a useful message + 1406) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/double_spec.rb:571 - 1407) Using rspec-mocks features in before(:all) blocks #stub_const does not stub the const + 1407) 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/before_all_spec.rb:10 + # ./spec/rspec/mocks/double_spec.rb:596 - 1408) Using rspec-mocks features in before(:all) blocks #hide_const(for an undefined const) raises an error with a useful message + 1408) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/double_spec.rb:187 - 1409) Using rspec-mocks features in before(:all) blocks #allow_any_instance_of(...).to receive raises an error with a useful message + 1409) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/double_spec.rb:234 - 1410) Using rspec-mocks features in before(:all) blocks #allow(...).to receive raises an error with a useful message + 1410) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/double_spec.rb:290 - 1411) Using rspec-mocks features in before(:all) blocks allow(...).to receive_message_chain raises an error with a useful message + 1411) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/double_spec.rb:362 - 1412) Using rspec-mocks features in before(:all) blocks #hide_const(for a defined const) does not hide the const + 1412) 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/before_all_spec.rb:30 + # ./spec/rspec/mocks/double_spec.rb:643 - 1413) Using rspec-mocks features in before(:all) blocks #hide_const(for a defined const) raises an error with a useful message + 1413) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/double_spec.rb:546 - 1414) Using rspec-mocks features in before(:all) blocks #expect_any_instance_of(...).to receive raises an error with a useful message + 1414) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/double_spec.rb:347 - 1415) ordering passes when messages are received in order across objects + 1415) 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/mock_ordering_spec.rb:27 + # ./spec/rspec/mocks/double_spec.rb:302 - 1416) ordering supports duplicate messages + 1416) 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/mock_ordering_spec.rb:100 + # ./spec/rspec/mocks/double_spec.rb:296 - 1417) ordering fails when messages are received out of order (3rd message 1st) + 1417) 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/mock_ordering_spec.rb:46 + # ./spec/rspec/mocks/double_spec.rb:331 - 1418) ordering ignores order of non ordered messages + 1418) 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/mock_ordering_spec.rb:80 + # ./spec/rspec/mocks/double_spec.rb:15 - 1419) ordering fails when messages are received out of order (3rd message 2nd) + 1419) 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/mock_ordering_spec.rb:56 + # ./spec/rspec/mocks/double_spec.rb:628 - 1420) ordering fails when messages are out of order across objects + 1420) 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/mock_ordering_spec.rb:66 + # ./spec/rspec/mocks/double_spec.rb:528 - 1421) ordering fails when messages are received out of order (2nd message 1st) + 1421) 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/mock_ordering_spec.rb:38 + # ./spec/rspec/mocks/double_spec.rb:197 - 1422) ordering passes when messages are received in order + 1422) 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/mock_ordering_spec.rb:16 + # ./spec/rspec/mocks/double_spec.rb:393 - 1423) ordering passes when messages are received in order + 1423) 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/mock_ordering_spec.rb:7 + # ./spec/rspec/mocks/double_spec.rb:38 - 1424) and_return when a block is passed raises ArgumentError + 1424) 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/and_return_spec.rb:7 + # ./spec/rspec/mocks/double_spec.rb:342 - 1425) and_return when no argument is passed raises ArgumentError + 1425) 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/and_return_spec.rb:15 + # ./spec/rspec/mocks/double_spec.rb:336 - 1426) #as_null_object sets the object to null_object + 1426) 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/null_object_double_spec.rb:113 + # ./spec/rspec/mocks/double_spec.rb:280 - 1427) RSpec::Mocks::TestDouble copies the `as_null_object` state when dup'd + 1427) 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/test_double_spec.rb:34 + # ./spec/rspec/mocks/double_spec.rb:559 - 1428) RSpec::Mocks::TestDouble copies the `as_null_object` state when clone'd + 1428) 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/test_double_spec.rb:34 + # ./spec/rspec/mocks/double_spec.rb:605 - 1429) RSpec::Mocks::TestDouble with syntax [:should] stubs the methods passed in the stubs hash + 1429) 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/test_double_spec.rb:48 + # ./spec/rspec/mocks/double_spec.rb:501 - 1430) RSpec::Mocks::TestDouble#freeze doesn't freeze the object + 1430) 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/test_double_spec.rb:17 + # ./spec/rspec/mocks/double_spec.rb:423 - 1431) RSpec::Mocks::TestDouble#freeze gives a warning + 1431) 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/test_double_spec.rb:7 + # ./spec/rspec/mocks/double_spec.rb:553 - 1432) RSpec::Mocks::TestDouble#freeze returns the instance of the test double + 1432) 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/test_double_spec.rb:27 + # ./spec/rspec/mocks/double_spec.rb:400 - 1433) RSpec::Mocks::TestDouble#freeze gives the correct call site for the warning + 1433) 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/test_double_spec.rb:12 + # ./spec/rspec/mocks/double_spec.rb:386 - 1434) RSpec::Mocks::TestDouble with syntax [:should, :expect] stubs the methods passed in the stubs hash + 1434) 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/test_double_spec.rb:48 + # ./spec/rspec/mocks/double_spec.rb:98 - 1435) RSpec::Mocks::TestDouble with syntax [:expect] stubs the methods passed in the stubs hash + 1435) 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/test_double_spec.rb:48 + # ./spec/rspec/mocks/double_spec.rb:416 - 1436) RSpec::Mocks::MessageExpectation has a nice string representation for a raw message expectation on a test double + 1436) 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/message_expectation_string_representation_spec.rb:6 + # ./spec/rspec/mocks/double_spec.rb:20 - 1437) RSpec::Mocks::MessageExpectation has a nice string representation for a raw message expectation on a partial double + 1437) 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/message_expectation_string_representation_spec.rb:12 + # ./spec/rspec/mocks/double_spec.rb:306 - 1438) RSpec::Mocks::MessageExpectation has a nice string representation for a message expectation constrained by `with` + 1438) 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/message_expectation_string_representation_spec.rb:18 + # ./spec/rspec/mocks/double_spec.rb:580 - 1439) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has not been hidden + 1439) 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/mutate_const_spec.rb:528 + # ./spec/rspec/mocks/double_spec.rb:7 - 1440) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it was not previously defined + 1440) 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/mutate_const_spec.rb:525 + # ./spec/rspec/mocks/double_spec.rb:103 - 1441) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has been mutated + 1441) 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/mutate_const_spec.rb:526 + # ./spec/rspec/mocks/double_spec.rb:123 - 1442) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates the name is valid + 1442) 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/mutate_const_spec.rb:524 + # ./spec/rspec/mocks/double_spec.rb:409 - 1443) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice returns nil for the original value + 1443) 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/mutate_const_spec.rb:529 + # ./spec/rspec/mocks/double_spec.rb:77 - 1444) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has been stubbed + 1444) 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/mutate_const_spec.rb:527 + # ./spec/rspec/mocks/double_spec.rb:375 - 1445) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice exposes its name + 1445) 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/mutate_const_spec.rb:523 + # ./spec/rspec/mocks/double_spec.rb:270 - 1446) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not been hidden + 1446) 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/mutate_const_spec.rb:541 + # ./spec/rspec/mocks/double_spec.rb:611 - 1447) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not been mutated + 1447) 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/mutate_const_spec.rb:539 + # ./spec/rspec/mocks/double_spec.rb:60 - 1448) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates the name is valid + 1448) 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/mutate_const_spec.rb:537 + # ./spec/rspec/mocks/double_spec.rb:447 - 1449) RSpec::Mocks::Constant.original for a previously undefined hidden constant exposes its name + 1449) 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/mutate_const_spec.rb:536 + # ./spec/rspec/mocks/double_spec.rb:11 - 1450) RSpec::Mocks::Constant.original for a previously undefined hidden constant returns nil for the original value + 1450) 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/mutate_const_spec.rb:542 + # ./spec/rspec/mocks/double_spec.rb:739 - 1451) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it was previously undefined + 1451) 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/mutate_const_spec.rb:538 + # ./spec/rspec/mocks/double_spec.rb:744 - 1452) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not not been stubbed + 1452) 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/mutate_const_spec.rb:540 + # ./spec/rspec/mocks/double_spec.rb:730 - 1453) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice exposes its name + 1453) 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/mutate_const_spec.rb:563 + # ./spec/rspec/mocks/double_spec.rb:162 - 1454) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it was previously defined + 1454) 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/mutate_const_spec.rb:565 + # ./spec/rspec/mocks/double_spec.rb:170 - 1455) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates the name is valid + 1455) 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/mutate_const_spec.rb:564 + # ./spec/rspec/mocks/double_spec.rb:722 - 1456) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has not been stubbed + 1456) 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/mutate_const_spec.rb:567 + # ./spec/rspec/mocks/double_spec.rb:702 - 1457) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice exposes its original value + 1457) 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/mutate_const_spec.rb:569 + # ./spec/rspec/mocks/double_spec.rb:710 - 1458) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has been hidden + 1458) 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/mutate_const_spec.rb:568 + # ./spec/rspec/mocks/double_spec.rb:685 - 1459) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has been mutated + 1459) 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/mutate_const_spec.rb:566 + # ./spec/rspec/mocks/double_spec.rb:693 - 1460) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it has not been mutated + 1460) 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/mutate_const_spec.rb:498 + # ./spec/rspec/mocks/double_spec.rb:668 - 1461) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant returns nil for the original value + 1461) 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/mutate_const_spec.rb:501 + # ./spec/rspec/mocks/double_spec.rb:676 - 1462) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it has not been hidden + 1462) 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/mutate_const_spec.rb:500 + # ./spec/rspec/mocks/double_spec.rb:224 - 1463) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it has not been stubbed + 1463) 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/mutate_const_spec.rb:499 + # ./spec/rspec/mocks/double_spec.rb:253 - 1464) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates the name is valid + 1464) 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/mutate_const_spec.rb:496 + # ./spec/rspec/mocks/double_spec.rb:772 - 1465) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it was not previously defined + 1465) 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/mutate_const_spec.rb:497 + # ./spec/rspec/mocks/double_spec.rb:782 - 1466) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant exposes its name + 1466) 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/mutate_const_spec.rb:495 + # ./spec/rspec/mocks/double_spec.rb:765 - 1467) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant exposes its name + 1467) 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/mutate_const_spec.rb:483 + # ./spec/rspec/mocks/double_spec.rb:794 - 1468) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it was not previously defined + 1468) 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/mutate_const_spec.rb:485 + # ./spec/rspec/mocks/double_spec.rb:808 - 1469) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has not been hidden + 1469) 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/mutate_const_spec.rb:488 + # ./spec/rspec/mocks/double_spec.rb:815 - 1470) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has been mutated + 1470) 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/mutate_const_spec.rb:486 + # ./spec/rspec/mocks/double_spec.rb:752 - 1471) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant returns nil for the original value + 1471) 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/mutate_const_spec.rb:489 + # ./spec/rspec/mocks/partial_double_spec.rb:236 - 1472) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has been stubbed + 1472) 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/mutate_const_spec.rb:487 + # ./spec/rspec/mocks/partial_double_spec.rb:241 - 1473) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates the name is valid + 1473) 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:484 + # ./spec/rspec/mocks/order_group_spec.rb:18 - 1474) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice exposes its original value + 1474) 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:515 + # ./spec/rspec/mocks/order_group_spec.rb:21 - 1475) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it was previously defined + 1475) 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/mutate_const_spec.rb:511 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:109 - 1476) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates the name is valid + 1476) 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/mutate_const_spec.rb:510 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:116 - 1477) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has been mutated + 1477) 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/mutate_const_spec.rb:512 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:122 - 1478) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice exposes its name + 1478) 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/mutate_const_spec.rb:509 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:106 - 1479) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has been stubbed + 1479) 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/mutate_const_spec.rb:513 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:93 - 1480) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has not been hidden + 1480) 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/mutate_const_spec.rb:514 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:100 - 1481) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has been stubbed + 1481) 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/mutate_const_spec.rb:461 + # ./spec/rspec/mocks/stub_implementation_spec.rb:47 - 1482) RSpec::Mocks::Constant.original for a previously defined stubbed constant exposes its original value + 1482) 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/mutate_const_spec.rb:463 + # ./spec/rspec/mocks/stub_implementation_spec.rb:30 - 1483) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates the name is valid + 1483) 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/mutate_const_spec.rb:458 + # ./spec/rspec/mocks/stub_implementation_spec.rb:38 - 1484) RSpec::Mocks::Constant.original for a previously defined stubbed constant exposes its name + 1484) 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/mutate_const_spec.rb:457 + # ./spec/rspec/mocks/stub_implementation_spec.rb:71 - 1485) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has been mutated + 1485) 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/mutate_const_spec.rb:460 + # ./spec/rspec/mocks/stub_implementation_spec.rb:58 - 1486) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has not been hidden + 1486) 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/mutate_const_spec.rb:462 + # ./spec/rspec/mocks/stub_implementation_spec.rb:58 - 1487) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it was previously defined + 1487) 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/mutate_const_spec.rb:459 + # ./spec/rspec/mocks/stub_implementation_spec.rb:71 - 1488) RSpec::Mocks::Constant.original for a previously undefined stubbed constant returns nil for the original value + 1488) 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/mutate_const_spec.rb:476 + # ./spec/rspec/mocks/stub_implementation_spec.rb:97 - 1489) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it was not previously defined + 1489) 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/mutate_const_spec.rb:472 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1490) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates the name is valid + 1490) 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/mutate_const_spec.rb:471 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1491) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has not been hidden + 1491) 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/mutate_const_spec.rb:475 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1492) RSpec::Mocks::Constant.original for a previously undefined stubbed constant exposes its name + 1492) 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/mutate_const_spec.rb:470 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1493) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has been mutated + 1493) 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/mutate_const_spec.rb:473 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1494) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has been stubbed + 1494) 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/mutate_const_spec.rb:474 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1495) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has been mutated + 1495) 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/mutate_const_spec.rb:552 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1496) RSpec::Mocks::Constant.original for a previously defined hidden constant exposes its name + 1496) 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/mutate_const_spec.rb:549 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1497) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has been hidden + 1497) 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/mutate_const_spec.rb:554 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1498) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has not been stubbed + 1498) 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/mutate_const_spec.rb:553 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1499) RSpec::Mocks::Constant.original for a previously defined hidden constant exposes its original value + 1499) 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/mutate_const_spec.rb:555 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1500) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it was previously defined + 1500) 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/mutate_const_spec.rb:551 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1501) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates the name is valid + 1501) 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/mutate_const_spec.rb:550 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1502) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it was previously defined + 1502) 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/mutate_const_spec.rb:446 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1503) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been mutated + 1503) 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/mutate_const_spec.rb:447 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1504) RSpec::Mocks::Constant.original for a previously defined unstubbed constant exposes its original value + 1504) 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/mutate_const_spec.rb:450 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 1505) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates the name is valid + 1505) 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/mutate_const_spec.rb:445 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 1506) RSpec::Mocks::Constant.original for a previously defined unstubbed constant exposes its name + 1506) 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/mutate_const_spec.rb:444 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 1507) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been hidden + 1507) 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:449 + # ./spec/rspec/mocks/mutate_const_spec.rb:462 - 1508) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been stubbed + 1508) 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:448 + # ./spec/rspec/mocks/mutate_const_spec.rb:461 - 1509) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) exposes the provided string as the name + 1509) 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:576 + # ./spec/rspec/mocks/mutate_const_spec.rb:460 - 1510) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been mutated + 1510) 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:579 + # ./spec/rspec/mocks/mutate_const_spec.rb:459 - 1511) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been hidden + 1511) 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:581 + # ./spec/rspec/mocks/mutate_const_spec.rb:458 - 1512) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates the name is invalid + 1512) 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:577 + # ./spec/rspec/mocks/mutate_const_spec.rb:463 - 1513) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) returns nil for its original value + 1513) 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:582 + # ./spec/rspec/mocks/mutate_const_spec.rb:457 - 1514) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it was not previously defined + 1514) 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:578 + # ./spec/rspec/mocks/mutate_const_spec.rb:483 - 1515) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been stubbed + 1515) 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:580 + # ./spec/rspec/mocks/mutate_const_spec.rb:489 - 1516) 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 + 1516) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/mutate_const_spec.rb:484 - 1517) 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 + 1517) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/mutate_const_spec.rb:487 - 1518) 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 + 1518) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/mutate_const_spec.rb:485 - 1519) 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 + 1519) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/mutate_const_spec.rb:488 - 1520) 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 + 1520) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/mutate_const_spec.rb:486 - 1521) 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 + 1521) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/mutate_const_spec.rb:511 - 1522) 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 + 1522) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/mutate_const_spec.rb:512 - 1523) 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 + 1523) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/mutate_const_spec.rb:509 - 1524) a message expectation with multiple return values and no specified count fails when there are too few calls (if there is no stub) + 1524) 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/multiple_return_value_spec.rb:38 + # ./spec/rspec/mocks/mutate_const_spec.rb:515 - 1525) a message expectation with multiple return values and no specified count falls back to a previously stubbed value + 1525) 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/multiple_return_value_spec.rb:30 + # ./spec/rspec/mocks/mutate_const_spec.rb:513 - 1526) a message expectation with multiple return values and no specified count returns values in order + 1526) 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/multiple_return_value_spec.rb:23 + # ./spec/rspec/mocks/mutate_const_spec.rb:510 - 1527) a message expectation with multiple return values and no specified count fails when there are too many calls (if there is no stub) + 1527) 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/multiple_return_value_spec.rb:44 + # ./spec/rspec/mocks/mutate_const_spec.rb:514 - 1528) at_least passes when at least twice method is called twice + 1528) 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/at_least_spec.rb:94 + # ./spec/rspec/mocks/mutate_const_spec.rb:551 - 1529) at_least passes when at least once method is called once + 1529) 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/at_least_spec.rb:73 + # ./spec/rspec/mocks/mutate_const_spec.rb:549 - 1530) at_least passes when at least thrice method is called four times + 1530) 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/at_least_spec.rb:109 + # ./spec/rspec/mocks/mutate_const_spec.rb:554 - 1531) at_least passes when at least once method is called twice + 1531) 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/at_least_spec.rb:79 + # ./spec/rspec/mocks/mutate_const_spec.rb:552 - 1532) at_least fails when at least twice method is never called + 1532) 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/at_least_spec.rb:38 + # ./spec/rspec/mocks/mutate_const_spec.rb:555 - 1533) at_least fails when called less than n times + 1533) 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/at_least_spec.rb:13 + # ./spec/rspec/mocks/mutate_const_spec.rb:550 - 1534) at_least returns the value given by a block when the at least once method is called + 1534) 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/at_least_spec.rb:118 + # ./spec/rspec/mocks/mutate_const_spec.rb:553 - 1535) at_least fails when at least thrice method is called less than three times + 1535) 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/at_least_spec.rb:45 + # ./spec/rspec/mocks/mutate_const_spec.rb:476 - 1536) at_least passes when at least n times method is called exactly n times + 1536) 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/at_least_spec.rb:54 + # ./spec/rspec/mocks/mutate_const_spec.rb:475 - 1537) at_least fails if method is never called + 1537) 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/at_least_spec.rb:6 + # ./spec/rspec/mocks/mutate_const_spec.rb:471 - 1538) at_least passes when at least thrice method is called three times + 1538) 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/at_least_spec.rb:101 + # ./spec/rspec/mocks/mutate_const_spec.rb:472 - 1539) at_least uses a stub value if no value set + 1539) 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/at_least_spec.rb:132 + # ./spec/rspec/mocks/mutate_const_spec.rb:474 - 1540) at_least fails when at least twice method is called once + 1540) 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/at_least_spec.rb:30 + # ./spec/rspec/mocks/mutate_const_spec.rb:473 - 1541) at_least fails when at least once method is never called + 1541) 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/at_least_spec.rb:23 + # ./spec/rspec/mocks/mutate_const_spec.rb:470 - 1542) at_least prefers its own return value over a stub + 1542) 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/at_least_spec.rb:139 + # ./spec/rspec/mocks/mutate_const_spec.rb:448 - 1543) at_least passes when at least twice method is called three times + 1543) 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/at_least_spec.rb:86 + # ./spec/rspec/mocks/mutate_const_spec.rb:444 - 1544) at_least passes when at least n times method is called n plus 1 times + 1544) 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/at_least_spec.rb:63 + # ./spec/rspec/mocks/mutate_const_spec.rb:449 - 1545) at_least when sent with 0 outputs a removal message + 1545) 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/at_least_spec.rb:125 + # ./spec/rspec/mocks/mutate_const_spec.rb:446 - 1546) at_least when called with negative expectation raises an error + 1546) 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/at_least_spec.rb:147 + # ./spec/rspec/mocks/mutate_const_spec.rb:447 - 1547) #null_object? defaults to false + 1547) 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/null_object_double_spec.rb:120 + # ./spec/rspec/mocks/mutate_const_spec.rb:450 - 1548) RSpec::Mocks::InstanceMethodStasher does not unnecessarily create obfuscated aliased methods + 1548) 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/instance_method_stasher_spec.rb:58 + # ./spec/rspec/mocks/mutate_const_spec.rb:445 - 1549) RSpec::Mocks::InstanceMethodStasher only stashes methods directly defined on the given class, not its ancestors + 1549) 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/instance_method_stasher_spec.rb:45 + # ./spec/rspec/mocks/mutate_const_spec.rb:566 - 1550) RSpec::Mocks::InstanceMethodStasher undefines the original method + 1550) 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/instance_method_stasher_spec.rb:67 + # ./spec/rspec/mocks/mutate_const_spec.rb:563 - 1551) RSpec::Mocks::InstanceMethodStasher stashes private instance methods + 1551) 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/instance_method_stasher_spec.rb:32 + # ./spec/rspec/mocks/mutate_const_spec.rb:565 - 1552) RSpec::Mocks::InstanceMethodStasher stashes the current implementation of an instance method so it can be temporarily replaced + 1552) 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/instance_method_stasher_spec.rb:18 + # ./spec/rspec/mocks/mutate_const_spec.rb:564 - 1553) Reraising eager raises during the verify step does not reraise when a double receives a message that hasn't been allowed/expected + 1553) 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/reraising_eager_raises_spec.rb:4 + # ./spec/rspec/mocks/mutate_const_spec.rb:569 - 1554) Reraising eager raises during the verify step when an expectation is called out of order reraises during verification + 1554) 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/reraising_eager_raises_spec.rb:99 + # ./spec/rspec/mocks/mutate_const_spec.rb:568 - 1555) 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 + 1555) 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/reraising_eager_raises_spec.rb:72 + # ./spec/rspec/mocks/mutate_const_spec.rb:567 - 1556) Reraising eager raises during the verify step when an expectation with a count is exceeded reraises during verification + 1556) 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/reraising_eager_raises_spec.rb:63 + # ./spec/rspec/mocks/mutate_const_spec.rb:523 - 1557) 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 + 1557) 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/reraising_eager_raises_spec.rb:89 + # ./spec/rspec/mocks/mutate_const_spec.rb:526 - 1558) Reraising eager raises during the verify step when an expectation is called with the wrong arguments reraises during verification + 1558) 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/reraising_eager_raises_spec.rb:81 + # ./spec/rspec/mocks/mutate_const_spec.rb:525 - 1559) Reraising eager raises during the verify step when a negative expectation receives a call reraises during verification + 1559) 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/reraising_eager_raises_spec.rb:12 + # ./spec/rspec/mocks/mutate_const_spec.rb:528 - 1560) 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 + 1560) 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/reraising_eager_raises_spec.rb:27 + # ./spec/rspec/mocks/mutate_const_spec.rb:527 - 1561) 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 + 1561) 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/reraising_eager_raises_spec.rb:20 + # ./spec/rspec/mocks/mutate_const_spec.rb:524 - 1562) 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 + 1562) 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/reraising_eager_raises_spec.rb:42 + # ./spec/rspec/mocks/mutate_const_spec.rb:529 - 1563) stub implementation with variable args execs the block when called + 1563) 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/stub_implementation_spec.rb:21 + # ./spec/rspec/mocks/mutate_const_spec.rb:540 - 1564) stub implementation with no args execs the block when called + 1564) 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/stub_implementation_spec.rb:5 + # ./spec/rspec/mocks/mutate_const_spec.rb:537 - 1565) stub implementation with one arg execs the block with that arg when called + 1565) 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/stub_implementation_spec.rb:13 + # ./spec/rspec/mocks/mutate_const_spec.rb:541 - 1566) Verified double naming class_double behaves like a named verifying double when a name is given as a symbol + 1566) 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/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/mutate_const_spec.rb:538 - 1567) Verified double naming class_double behaves like a named verifying double when no name is given + 1567) 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/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/mutate_const_spec.rb:542 - 1568) Verified double naming class_double behaves like a named verifying double when a name is given as a string + 1568) 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/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/mutate_const_spec.rb:539 - 1569) Verified double naming class_spy behaves like a named verifying double when a name is given as a string + 1569) 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/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/mutate_const_spec.rb:536 - 1570) Verified double naming class_spy behaves like a named verifying double when no name is given + 1570) 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/naming_spec.rb:42 + # ./spec/rspec/mocks/mutate_const_spec.rb:578 - 1571) Verified double naming class_spy behaves like a named verifying double when a name is given as a symbol + 1571) 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/naming_spec.rb:37 + # ./spec/rspec/mocks/mutate_const_spec.rb:576 - 1572) Verified double naming object_spy behaves like a named verifying double when a name is given as a string + 1572) 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/naming_spec.rb:32 + # ./spec/rspec/mocks/mutate_const_spec.rb:577 - 1573) Verified double naming object_spy behaves like a named verifying double when no name is given + 1573) 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/naming_spec.rb:42 + # ./spec/rspec/mocks/mutate_const_spec.rb:579 - 1574) Verified double naming object_spy behaves like a named verifying double when a name is given as a symbol + 1574) 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/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/mutate_const_spec.rb:580 - 1575) Verified double naming instance_spy behaves like a named verifying double when no name is given + 1575) 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/naming_spec.rb:42 + # ./spec/rspec/mocks/mutate_const_spec.rb:581 - 1576) Verified double naming instance_spy behaves like a named verifying double when a name is given as a symbol + 1576) 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/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/mutate_const_spec.rb:582 - 1577) Verified double naming instance_spy behaves like a named verifying double when a name is given as a string + 1577) 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/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/mutate_const_spec.rb:501 - 1578) Verified double naming instance_double behaves like a named verifying double when a name is given as a string + 1578) 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/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/mutate_const_spec.rb:499 - 1579) Verified double naming instance_double behaves like a named verifying double when a name is given as a symbol + 1579) 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/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/mutate_const_spec.rb:500 - 1580) Verified double naming instance_double behaves like a named verifying double when no name is given + 1580) 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/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/mutate_const_spec.rb:496 - 1581) Verified double naming object_double behaves like a named verifying double when a name is given as a symbol + 1581) 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/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks/mutate_const_spec.rb:497 - 1582) Verified double naming object_double behaves like a named verifying double when no name is given + 1582) 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/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/mutate_const_spec.rb:498 - 1583) Verified double naming object_double behaves like a named verifying double when a name is given as a string + 1583) 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/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks/mutate_const_spec.rb:495 - 1584) Failure notification uses the rspec-support notifier to support `aggregate_failures` + 1584) #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/failure_notification_spec.rb:8 + # ./spec/rspec/mocks/null_object_double_spec.rb:120 - 1585) 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 + 1585) 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/failure_notification_spec.rb:24 + # ./spec/rspec/mocks/partial_double_spec.rb:268 - 1586) Failure notification includes the line of future expectation in the notification for an unreceived message + 1586) #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/failure_notification_spec.rb:16 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:70 - 1587) Failure notification when using `aggregate_failures` spy failures for messages received with unexpected args are reported correctly + 1587) #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/failure_notification_spec.rb:45 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:85 - 1588) Failure notification when using `aggregate_failures` spy failures for unreceived messages are reported correctly + 1588) 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/failure_notification_spec.rb:34 + # ./spec/rspec/mocks/methods_spec.rb:13 - 1589) Failure notification when using `aggregate_failures` failing negative expectations are only notified once + 1589) #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/failure_notification_spec.rb:58 + # ./spec/rspec/mocks/null_object_double_spec.rb:113 - 1590) a double receiving to_ary double without as_null_object responds when overridden + 1590) 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/to_ary_spec.rb:8 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:4 - 1591) a double receiving to_ary double without as_null_object doesn't respond to to_a + 1591) 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/to_ary_spec.rb:44 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:42 - 1592) a double receiving to_ary double without as_null_object supports Array#flatten + 1592) 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/to_ary_spec.rb:13 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:27 - 1593) a double receiving to_ary double without as_null_object raises + 1593) 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/to_ary_spec.rb:48 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:12 - 1594) a double receiving to_ary double without as_null_object doesn't respond to to_ary + 1594) 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/to_ary_spec.rb:40 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:20 - 1595) a double receiving to_ary double without as_null_object can be overridden with a stub + 1595) 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/to_ary_spec.rb:3 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:81 - 1596) a double receiving to_ary double as_null_object responds when overridden + 1596) 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/to_ary_spec.rb:8 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:89 - 1597) a double receiving to_ary double as_null_object supports Array#flatten + 1597) 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/to_ary_spec.rb:13 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:72 - 1598) a double receiving to_ary double as_null_object does respond to to_a + 1598) 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/to_ary_spec.rb:27 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:63 - 1599) a double receiving to_ary double as_null_object does respond to to_ary + 1599) 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/to_ary_spec.rb:23 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:99 - 1600) a double receiving to_ary double as_null_object can be overridden with a stub + 1600) 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/to_ary_spec.rb:3 + # ./spec/rspec/mocks/and_invoke_spec.rb:15 - 1601) a double receiving to_ary double as_null_object returns nil + 1601) 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/to_ary_spec.rb:31 + # ./spec/rspec/mocks/and_invoke_spec.rb:35 - 1602) Method visibility for verified doubles for an instance double (when the class is loaded) can expect a protected instance method + 1602) 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/verifying_doubles/method_visibility_spec.rb:22 + # ./spec/rspec/mocks/and_invoke_spec.rb:24 - 1603) Method visibility for verified doubles for an instance double (when the class is loaded) can expect a private instance method + 1603) 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/verifying_doubles/method_visibility_spec.rb:22 + # ./spec/rspec/mocks/and_invoke_spec.rb:7 - 1604) Method visibility for verified doubles for an instance double (when the class is loaded) preserves private visibility when expecting a private method + 1604) 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/verifying_doubles/method_visibility_spec.rb:36 + # ./spec/rspec/mocks/standalone_spec.rb:20 - 1605) Method visibility for verified doubles for an instance double (when the class is loaded) can allow a private instance method + 1605) 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/verifying_doubles/method_visibility_spec.rb:16 + # ./spec/rspec/mocks/standalone_spec.rb:7 - 1606) Method visibility for verified doubles for an instance double (when the class is loaded) can allow a protected instance method + 1606) 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/verifying_doubles/method_visibility_spec.rb:16 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:43 - 1607) Method visibility for verified doubles for an instance double (when the class is loaded) preserves protected visibility when allowing a protected method + 1607) 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/verifying_doubles/method_visibility_spec.rb:28 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:100 - 1608) Method visibility for verified doubles for an instance double (when the class is loaded) preserves private visibility on a null object + 1608) 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/verifying_doubles/method_visibility_spec.rb:45 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:146 - 1609) Method visibility for verified doubles for an instance double (when the class is loaded) preserves private visibility when allowing a private method + 1609) 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/verifying_doubles/method_visibility_spec.rb:28 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:25 - 1610) Method visibility for verified doubles for an instance double (when the class is loaded) preserves protected visibility when expecting a protected method + 1610) 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/verifying_doubles/method_visibility_spec.rb:36 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:156 - 1611) Method visibility for verified doubles for an instance double (when the class is loaded) preserves protected visibility on a null object + 1611) 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/verifying_doubles/method_visibility_spec.rb:45 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:62 - 1612) Method visibility for verified doubles for a class double (when the class is loaded) can allow a protected instance method + 1612) 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/verifying_doubles/method_visibility_spec.rb:60 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:54 - 1613) Method visibility for verified doubles for a class double (when the class is loaded) preserves protected visibility when expecting a protected method + 1613) 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/verifying_doubles/method_visibility_spec.rb:80 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:35 - 1614) Method visibility for verified doubles for a class double (when the class is loaded) can expect a protected instance method + 1614) 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/verifying_doubles/method_visibility_spec.rb:66 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:188 - 1615) Method visibility for verified doubles for a class double (when the class is loaded) preserves private visibility when expecting a private method + 1615) 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/verifying_doubles/method_visibility_spec.rb:80 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:124 - 1616) Method visibility for verified doubles for a class double (when the class is loaded) can allow a private instance method + 1616) 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/verifying_doubles/method_visibility_spec.rb:60 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:134 - 1617) Method visibility for verified doubles for a class double (when the class is loaded) preserves private visibility on a null object + 1617) 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/verifying_doubles/method_visibility_spec.rb:89 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:80 - 1618) Method visibility for verified doubles for a class double (when the class is loaded) preserves protected visibility on a null object + 1618) 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/verifying_doubles/method_visibility_spec.rb:89 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:195 - 1619) Method visibility for verified doubles for a class double (when the class is loaded) preserves protected visibility when allowing a protected method + 1619) 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/verifying_doubles/method_visibility_spec.rb:72 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:183 - 1620) Method visibility for verified doubles for a class double (when the class is loaded) can expect a private instance method + 1620) 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/verifying_doubles/method_visibility_spec.rb:66 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:70 - 1621) Method visibility for verified doubles for a class double (when the class is loaded) preserves private visibility when allowing a private method + 1621) 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/verifying_doubles/method_visibility_spec.rb:72 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:90 - 1622) the spy family of methods object_spy takes an instance and a hash of method names and return values + 1622) 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/spy_spec.rb:105 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:30 - 1623) 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 + 1623) 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/spy_spec.rb:39 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:111 - 1624) 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 + 1624) 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/spy_spec.rb:45 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:169 - 1625) the spy family of methods object_spy behaves like a verifying spy with a foo method responds to methods on the verified object + 1625) 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/spy_spec.rb:27 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:174 - 1626) the spy family of methods object_spy behaves like a verifying spy with a foo method records called methods + 1626) 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/spy_spec.rb:35 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:315 - 1627) 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 + 1627) 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/spy_spec.rb:31 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:297 - 1628) 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 + 1628) 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/spy_spec.rb:84 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:301 - 1629) 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 + 1629) 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/spy_spec.rb:31 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:389 - 1630) 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 + 1630) 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/spy_spec.rb:27 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:381 - 1631) 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 + 1631) 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/spy_spec.rb:45 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:398 - 1632) 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 + 1632) 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/spy_spec.rb:39 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:411 - 1633) 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 + 1633) 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/spy_spec.rb:35 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:430 - 1634) the spy family of methods instance_spy when passing a class object takes a class and a hash of method names and return values + 1634) 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/spy_spec.rb:66 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:420 - 1635) the spy family of methods instance_spy when passing a class object behaves like a verifying spy with a foo method records called methods + 1635) 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/spy_spec.rb:35 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:347 - 1636) 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 + 1636) 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/spy_spec.rb:39 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:339 - 1637) 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 + 1637) 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/spy_spec.rb:27 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:343 - 1638) 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 + 1638) 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/spy_spec.rb:31 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:215 - 1639) 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 + 1639) 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/spy_spec.rb:45 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:264 - 1640) the spy family of methods class_spy takes a class and a hash of method names and return values + 1640) 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/spy_spec.rb:123 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:273 - 1641) 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 + 1641) 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/spy_spec.rb:39 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:285 - 1642) 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 + 1642) 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/spy_spec.rb:31 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:247 - 1643) the spy family of methods class_spy behaves like a verifying spy with a foo method responds to methods on the verified object + 1643) 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/spy_spec.rb:27 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:239 - 1644) the spy family of methods class_spy behaves like a verifying spy with a foo method records called methods + 1644) 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/spy_spec.rb:35 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:231 - 1645) 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 + 1645) 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/spy_spec.rb:45 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:221 - 1646) the spy family of methods spy takes a name + 1646) 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/spy_spec.rb:9 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:355 - 1647) the spy family of methods spy takes a name and a hash of method names and return values + 1647) 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/spy_spec.rb:21 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:361 - 1648) the spy family of methods spy responds to arbitrary methods + 1648) 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/spy_spec.rb:5 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:369 - 1649) the spy family of methods spy takes a hash of method names and return values + 1649) 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/spy_spec.rb:17 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:323 - 1650) the spy family of methods spy records called methods + 1650) 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/spy_spec.rb:13 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:327 - 1651) #allow_message_expectations_on_nil doesnt error when marshalled + 1651) 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/nil_expectation_warning_spec.rb:85 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:331 - 1652) #allow_message_expectations_on_nil does not affect subsequent examples + 1652) 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/nil_expectation_warning_spec.rb:70 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:447 - 1653) .expect_message sets up basic message expectation, verifies as called + 1653) 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/syntax_agnostic_message_matchers_spec.rb:73 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:484 - 1654) .expect_message sets up message expectation with params and return value + 1654) 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/syntax_agnostic_message_matchers_spec.rb:79 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:517 - 1655) .expect_message does not get confused when the string and symbol message form are both used + 1655) 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/syntax_agnostic_message_matchers_spec.rb:91 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:455 - 1656) .expect_message fails if never is specified and the message is called + 1656) 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/syntax_agnostic_message_matchers_spec.rb:66 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:538 - 1657) .expect_message accepts a block implementation for the expected message + 1657) 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/syntax_agnostic_message_matchers_spec.rb:85 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:533 - 1658) .expect_message sets up basic message expectation, verifies as uncalled + 1658) 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/syntax_agnostic_message_matchers_spec.rb:56 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:555 - 1659) .expect_message when target cannot be proxied raises ArgumentError with message + 1659) 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/syntax_agnostic_message_matchers_spec.rb:102 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:560 - 1660) when using the :expect syntax still supports null object doubles + 1660) 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/null_object_double_spec.rb:129 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:629 - 1661) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher describes itself properly + 1661) 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/hash_including_matcher_spec.rb:6 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:653 - 1662) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher describes passed matchers + 1662) 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/hash_including_matcher_spec.rb:10 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:637 - 1663) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing matches the same hash + 1663) 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/hash_including_matcher_spec.rb:17 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:645 - 1664) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing matches a hash with extra stuff + 1664) 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/hash_including_matcher_spec.rb:21 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:571 - 1665) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing matches against classes inheriting from Hash + 1665) 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/hash_including_matcher_spec.rb:25 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1666) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when matching against other matchers can match against arbitrary objects that implement #=== + 1666) 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/hash_including_matcher_spec.rb:38 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:584 - 1667) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when matching against other matchers matches an int against anything() + 1667) 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/hash_including_matcher_spec.rb:30 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1668) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when matching against other matchers matches a string against anything() + 1668) 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/hash_including_matcher_spec.rb:34 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:595 - 1669) 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 + 1669) 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/hash_including_matcher_spec.rb:60 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1670) 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 + 1670) 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/hash_including_matcher_spec.rb:56 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1671) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches a string against a given key + 1671) 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/hash_including_matcher_spec.rb:52 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:576 - 1672) 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 + 1672) 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/hash_including_matcher_spec.rb:64 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1673) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches if the key is present + 1673) 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/hash_including_matcher_spec.rb:44 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1674) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches if more keys are present + 1674) 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/hash_including_matcher_spec.rb:48 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:609 - 1675) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with a missing key + 1675) 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/hash_including_matcher_spec.rb:79 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:604 - 1676) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match when values are nil but keys are different + 1676) 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/hash_including_matcher_spec.rb:95 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:60 - 1677) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a non-hash + 1677) 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/hash_including_matcher_spec.rb:71 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:72 - 1678) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with a missing key + 1678) 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/hash_including_matcher_spec.rb:75 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:66 - 1679) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with an incorrect value + 1679) 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/hash_including_matcher_spec.rb:91 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:80 - 1680) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match an empty hash with a given key + 1680) 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/hash_including_matcher_spec.rb:83 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:89 - 1681) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with a missing key when one pair is matching + 1681) 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/hash_including_matcher_spec.rb:87 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:66 - 1682) RSpec::Mocks::Double yields one arg 3 times consecutively to blocks that take a variable number of arguments + 1682) 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/double_spec.rb:455 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:89 - 1683) RSpec::Mocks::Double returns the previously stubbed value if no return value is set + 1683) 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/double_spec.rb:203 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:72 - 1684) RSpec::Mocks::Double is able to raise from method calling yielding double + 1684) 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/double_spec.rb:559 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:60 - 1685) RSpec::Mocks::Double prevents confusing double-negative expressions involving `never` + 1685) 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/double_spec.rb:103 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:80 - 1686) RSpec::Mocks::Double yields 0 args multiple times to blocks that take a variable number of arguments + 1686) 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/double_spec.rb:438 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:45 - 1687) RSpec::Mocks::Double can yield multiple times when told to do so + 1687) 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/double_spec.rb:643 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:22 - 1688) RSpec::Mocks::Double raises an exception of a given type with a message + 1688) 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/double_spec.rb:357 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:45 - 1689) RSpec::Mocks::Double yields one arg to blocks that take a variable number of arguments + 1689) 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/double_spec.rb:447 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:36 - 1690) RSpec::Mocks::Double responds to to_a as a null object + 1690) 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/double_spec.rb:306 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:16 - 1691) RSpec::Mocks::Double returns the stubbed value when no new value specified + 1691) 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/double_spec.rb:621 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:28 - 1692) RSpec::Mocks::Double fails when calling yielding method without block + 1692) 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/double_spec.rb:546 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:28 - 1693) RSpec::Mocks::Double raises an error when a previously stubbed method has a negative expectation + 1693) 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/double_spec.rb:605 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:16 - 1694) RSpec::Mocks::Double raises exception if args don't match when method called even when the method is stubbed + 1694) 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/double_spec.rb:234 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:22 - 1695) RSpec::Mocks::Double allows `class` to be stubbed even when `any_instance` has already been used + 1695) 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/double_spec.rb:60 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:36 - 1696) RSpec::Mocks::Double temporarily replaces a method stub on a double + 1696) 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/double_spec.rb:587 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:112 - 1697) RSpec::Mocks::Double temporarily replaces a method stub on a non-double + 1697) 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/double_spec.rb:611 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 - 1698) RSpec::Mocks::Double passes proc to expectation block without an argument + 1698) 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/double_spec.rb:316 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 - 1699) RSpec::Mocks::Double passes when not receiving message specified as not to be received + 1699) 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/double_spec.rb:98 + # ./spec/rspec/mocks_spec.rb:61 - 1700) RSpec::Mocks::Double returns the stubbed value when stubbed with args and no new value specified + 1700) 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/double_spec.rb:628 + # ./spec/rspec/mocks_spec.rb:54 - 1701) RSpec::Mocks::Double does not get confused when a negative expectation is used with a string and symbol message + 1701) 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/double_spec.rb:178 + # ./spec/rspec/mocks_spec.rb:189 - 1702) RSpec::Mocks::Double fails when receiving message specified as not to be received + 1702) 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/double_spec.rb:130 + # ./spec/rspec/mocks_spec.rb:202 - 1703) RSpec::Mocks::Double raises exception if args don't match when method called + 1703) 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/double_spec.rb:216 + # ./spec/rspec/mocks_spec.rb:212 - 1704) RSpec::Mocks::Double generates the correct error when an unfulfilled expectation uses an unused double as a `with` argument + 1704) 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/double_spec.rb:38 + # ./spec/rspec/mocks_spec.rb:111 - 1705) RSpec::Mocks::Double allows `send` to be stubbed + 1705) 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/double_spec.rb:71 + # ./spec/rspec/mocks_spec.rb:107 - 1706) RSpec::Mocks::Double restores objects to their original state on rspec_reset + 1706) 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/double_spec.rb:580 + # ./spec/rspec/mocks_spec.rb:117 - 1707) RSpec::Mocks::Double fails if unexpected method called + 1707) 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/double_spec.rb:264 + # ./spec/rspec/mocks_spec.rb:142 - 1708) RSpec::Mocks::Double fails when receiving message specified as not to be received with args + 1708) 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/double_spec.rb:140 + # ./spec/rspec/mocks_spec.rb:137 - 1709) RSpec::Mocks::Double returns value from block by default + 1709) 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/double_spec.rb:423 + # ./spec/rspec/mocks_spec.rb:133 - 1710) RSpec::Mocks::Double has method_missing as private + 1710) 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/double_spec.rb:7 + # ./spec/rspec/mocks_spec.rb:158 - 1711) RSpec::Mocks::Double does not get confused when a positive expectation is used with a string and symbol message + 1711) 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/double_spec.rb:187 + # ./spec/rspec/mocks_spec.rb:183 - 1712) RSpec::Mocks::Double is wrappable in an array when a null object + 1712) 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/double_spec.rb:296 + # ./spec/rspec/mocks_spec.rb:173 - 1713) RSpec::Mocks::Double does not respond_to? method_missing (because it's private) + 1713) 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/double_spec.rb:11 + # ./spec/rspec/mocks_spec.rb:177 - 1714) RSpec::Mocks::Double yields 0 args to blocks that take a variable number of arguments + 1714) 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/double_spec.rb:430 + # ./spec/rspec/mocks_spec.rb:229 - 1715) RSpec::Mocks::Double raises RuntimeError with a message by default + 1715) 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/double_spec.rb:347 + # ./spec/rspec/mocks_spec.rb:76 - 1716) RSpec::Mocks::Double is able to double send + 1716) 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/double_spec.rb:553 + # ./spec/rspec/mocks_spec.rb:89 - 1717) RSpec::Mocks::Double warns when `and_return` is called on a negative expectation + 1717) 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/double_spec.rb:109 + # ./spec/rspec/mocks_spec.rb:42 - 1718) RSpec::Mocks::Double raises exception if args don't match when method called even when using null_object + 1718) 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/double_spec.rb:243 + # - 1719) RSpec::Mocks::Double yields two values 3 times consecutively + 1719) 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/double_spec.rb:510 + # - 1720) RSpec::Mocks::Double does not mess with the stub's yielded values when also doubleed + 1720) 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/double_spec.rb:635 + # - 1721) RSpec::Mocks::Double responds to to_ary as a null object + 1721) 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/double_spec.rb:302 + # - 1722) RSpec::Mocks::Double uses 'Double' in failure messages + 1722) 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:15 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:19 - 1723) RSpec::Mocks::Double does not require a different signature to replace a method stub + 1723) 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:596 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:12 - 1724) RSpec::Mocks::Double uses block for expectation if provided + 1724) 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:270 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:25 - 1725) RSpec::Mocks::Double reports line number of expectation of unreceived message after a message expectation after similar stub + 1725) 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:87 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:60 - 1726) RSpec::Mocks::Double fails when calling yielding method with wrong arity + 1726) 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:520 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:65 - 1727) RSpec::Mocks::Double is wrappable in an array + 1727) 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:290 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:46 - 1728) RSpec::Mocks::Double yields single value + 1728) 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/double_spec.rb:483 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:241 - 1729) RSpec::Mocks::Double fails if expectation block fails + 1729) 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/double_spec.rb:280 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:175 - 1730) RSpec::Mocks::Double yields many args to blocks that take a variable number of arguments + 1730) 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/double_spec.rb:465 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:26 - 1731) RSpec::Mocks::Double allows string representation of methods in constructor + 1731) 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/double_spec.rb:47 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:190 - 1732) RSpec::Mocks::Double passes proc to stub block without an argument + 1732) 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/double_spec.rb:326 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:143 - 1733) RSpec::Mocks::Double allows setter methods to be stubbed + 1733) 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/double_spec.rb:52 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:135 - 1734) RSpec::Mocks::Double does not raise when told to if args dont match + 1734) 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/double_spec.rb:386 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:60 - 1735) RSpec::Mocks::Double fails when args are expected but none are received + 1735) 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/double_spec.rb:416 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:151 - 1736) RSpec::Mocks::Double ignores args on any args + 1736) 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/double_spec.rb:400 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:32 - 1737) RSpec::Mocks::Double raises a given instance of an exception + 1737) 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/double_spec.rb:362 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:73 - 1738) RSpec::Mocks::Double raises a given instance of an exception with arguments other than the standard 'message' + 1738) 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/double_spec.rb:375 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:40 - 1739) RSpec::Mocks::Double passes when receiving message specified as not to be received with different args + 1739) receive_message_chain with only the expect syntax enabled passes when with expect_any_instance_of is used and the entire chain is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:123 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:183 - 1740) RSpec::Mocks::Double yields two values + 1740) 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/double_spec.rb:501 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:127 - 1741) RSpec::Mocks::Double clears expectations after verify + 1741) 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/double_spec.rb:571 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:20 - 1742) RSpec::Mocks::Double yields single value 3 times consecutively + 1742) 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/double_spec.rb:491 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:14 - 1743) RSpec::Mocks::Double fails when array arguments do not match + 1743) receive_message_chain with only the expect syntax enabled provides a matcher description (when passing symbols and a hash) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:150 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:232 - 1744) RSpec::Mocks::Double fails when calling yielding method with invalid kw args + 1744) 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/double_spec.rb:528 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:109 - 1745) RSpec::Mocks::Double raises RuntimeError by default + 1745) 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/double_spec.rb:342 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:46 - 1746) RSpec::Mocks::Double does not blow up when resetting standard object methods + 1746) 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/double_spec.rb:25 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:227 - 1747) RSpec::Mocks::Double fails right away when method defined as never is received + 1747) 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/double_spec.rb:336 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:66 - 1748) RSpec::Mocks::Double fails when calling yielding method consecutively with wrong arity + 1748) 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/double_spec.rb:536 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:54 - 1749) RSpec::Mocks::Double throws when told to + 1749) 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/double_spec.rb:393 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:91 - 1750) RSpec::Mocks::Double assigns stub return values + 1750) 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/double_spec.rb:653 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:121 - 1751) RSpec::Mocks::Double hides internals in its inspect representation + 1751) 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/double_spec.rb:20 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:79 - 1752) RSpec::Mocks::Double does not get string vs symbol messages confused + 1752) 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/double_spec.rb:31 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:222 - 1753) RSpec::Mocks::Double fails on no args if any args received + 1753) 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/double_spec.rb:409 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:115 - 1754) RSpec::Mocks::Double raises an exception of a given type without an error message + 1754) 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/double_spec.rb:352 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:214 - 1755) RSpec::Mocks::Double passes proc to stub block with an argument + 1755) 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/double_spec.rb:331 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:206 - 1756) RSpec::Mocks::Double passes proc to expectation block with an argument + 1756) 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/double_spec.rb:321 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:8 - 1757) RSpec::Mocks::Double reports line number of expectation of unreceived message + 1757) 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/double_spec.rb:77 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:103 - 1758) RSpec::Mocks::Double returns nil if no return value is set and there is no previously stubbed value + 1758) 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/double_spec.rb:210 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:198 - 1759) RSpec::Mocks::Double yields many args 3 times consecutively to blocks that take a variable number of arguments + 1759) 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/double_spec.rb:473 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:168 - 1760) RSpec::Mocks::Double allows parameter as return value + 1760) 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/double_spec.rb:197 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:159 - 1761) RSpec::Mocks::Double with with args with non-matching doubles fails + 1761) 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/double_spec.rb:782 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:97 - 1762) RSpec::Mocks::Double with with args with non-matching doubles as_null_object fails + 1762) 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/double_spec.rb:794 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:85 - 1763) RSpec::Mocks::Double with with args with non-matching args fails + 1763) 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:772 + # ./spec/rspec/mocks/should_syntax_spec.rb:574 - 1764) RSpec::Mocks::Double with with args with matching args passes + 1764) .allow_message sets up basic message allowance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:765 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:6 - 1765) RSpec::Mocks::Double with with a block with non-matching args fails + 1765) .allow_message does not get confused when the string and symbol message form are both used # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:815 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:36 - 1766) RSpec::Mocks::Double with with a block with matching args returns the result of the block + 1766) .allow_message sets up message allowance with params and return value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:808 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:16 - 1767) RSpec::Mocks::Double#to_str should not respond to #to_str to avoid being coerced to strings by the runtime + 1767) .allow_message does not set an expectation that the message will be received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:730 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:31 - 1768) 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 + 1768) .allow_message supports block implementations # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:162 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:26 - 1769) 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 + 1769) .allow_message when target cannot be proxied raises ArgumentError with message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:170 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:47 - 1770) RSpec::Mocks::Double a double message receiving a block supports a block passed to `receive` for `expect` + 1770) 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/double_spec.rb:668 + # ./spec/rspec/mocks/and_yield_spec.rb:7 - 1771) RSpec::Mocks::Double a double message receiving a block calls the block after #once + 1771) 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/double_spec.rb:685 + # ./spec/rspec/mocks/and_yield_spec.rb:35 - 1772) RSpec::Mocks::Double a double message receiving a block supports a block passed to `receive` for `expect` after a similar stub + 1772) 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/double_spec.rb:676 + # ./spec/rspec/mocks/and_yield_spec.rb:21 - 1773) RSpec::Mocks::Double a double message receiving a block calls the block after #ordered + 1773) 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/double_spec.rb:710 + # ./spec/rspec/mocks/and_yield_spec.rb:29 - 1774) RSpec::Mocks::Double a double message receiving a block calls the block after #times + 1774) 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/double_spec.rb:702 + # ./spec/rspec/mocks/and_yield_spec.rb:52 - 1775) RSpec::Mocks::Double a double message receiving a block calls the block after #twice + 1775) 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/double_spec.rb:693 + # ./spec/rspec/mocks/and_yield_spec.rb:66 - 1776) 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 + 1776) 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/double_spec.rb:253 + # ./spec/rspec/mocks/and_yield_spec.rb:139 - 1777) RSpec::Mocks::Double == sends '== self' to the comparison object + 1777) 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/double_spec.rb:752 + # ./spec/rspec/mocks/and_yield_spec.rb:128 - 1778) RSpec::Mocks::Double double created with no name does respond to initially stubbed methods + 1778) 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/double_spec.rb:744 + # ./spec/rspec/mocks/and_yield_spec.rb:84 - 1779) RSpec::Mocks::Double double created with no name does not use a name in a failure message + 1779) 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/double_spec.rb:739 + # ./spec/rspec/mocks/and_yield_spec.rb:114 - 1780) 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 + 1780) 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/double_spec.rb:224 + # ./spec/rspec/mocks/and_yield_spec.rb:103 - 1781) RSpec::Mocks::Double string representation generated by #to_s does not contain < because that might lead to invalid HTML in some situations + 1781) 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/double_spec.rb:722 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:9 - 1782) unstubbing with `and_call_original` replaces the stubbed method with the original method + 1782) 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/stub_implementation_spec.rb:30 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:43 - 1783) unstubbing with `and_call_original` removes all stubs with the supplied method name + 1783) 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/stub_implementation_spec.rb:38 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:26 - 1784) unstubbing with `and_call_original` does not remove any expectations with the same method name + 1784) 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/stub_implementation_spec.rb:47 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:2 - 1785) 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 + 1785) 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/stub_implementation_spec.rb:58 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:84 - 1786) 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 + 1786) 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/stub_implementation_spec.rb:71 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:68 - 1787) unstubbing with `and_call_original` when partial doubles are verified restores the correct implementations when stubbed and unstubbed on a grandparent and grandchild class + 1787) 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/stub_implementation_spec.rb:71 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:60 - 1788) unstubbing with `and_call_original` when partial doubles are verified restores the correct implementations when stubbed and unstubbed on a parent and child class + 1788) 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/stub_implementation_spec.rb:58 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:76 - 1789) unstubbing with `and_call_original` when partial doubles are verified handles keyword arguments correctly + 1789) 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/stub_implementation_spec.rb:97 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:95 -Finished in 1.2 seconds (files took 0.62255 seconds to load) +Finished in 1.15 seconds (files took 0.61553 seconds to load) 1789 examples, 0 failures, 1789 pending -Randomized with seed 16220 +Randomized with seed 12881 cd - @@ -8714,27 +8749,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 53541 -...........................fatal: not a git repository (or any of the parent directories): .git -.......*................................*..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... +Randomized with seed 10103 +.........................................*.....................................................................................................................................................................................................................................................................................................................................................................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 1.94 seconds (files took 0.25805 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.94 seconds (files took 0.25432 seconds to load) 569 examples, 0 failures, 2 pending -Randomized with seed 53541 +Randomized with seed 10103 cd - @@ -8767,26 +8802,26 @@ dh_ruby_fixdepends -O--buildsystem=ruby dh_installdeb -O--buildsystem=ruby dh_gencontrol -O--buildsystem=ruby -dpkg-gencontrol: warning: Depends field of package ruby-rspec: 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-support: substitution variable ${shlibs:Depends} used, but is not defined -dpkg-gencontrol: warning: package ruby-rspec-support: substitution variable ${ruby:Versions} used, but is not defined -dpkg-gencontrol: warning: Depends field of package ruby-rspec-expectations: 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-mocks: 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-mocks: substitution variable ${ruby:Depends} unused, but is defined dpkg-gencontrol: warning: Depends field of package ruby-rspec-core: substitution variable ${shlibs:Depends} used, but is not defined dpkg-gencontrol: warning: package ruby-rspec-core: substitution variable ${ruby:Versions} used, but is not defined +dpkg-gencontrol: warning: Depends field of package ruby-rspec-expectations: substitution variable ${shlibs:Depends} used, but is not defined dpkg-gencontrol: warning: package ruby-rspec-core: substitution variable ${ruby:Depends} unused, but is defined +dpkg-gencontrol: warning: Depends field of package ruby-rspec-support: 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-support: substitution variable ${ruby:Versions} used, but is not defined +dpkg-gencontrol: warning: package ruby-rspec-expectations: substitution variable ${ruby:Depends} unused, but is defined +dpkg-gencontrol: warning: Depends field of package ruby-rspec: substitution variable ${shlibs:Depends} used, but is not defined +dpkg-gencontrol: warning: package ruby-rspec: substitution variable ${ruby:Versions} used, but is not defined +dpkg-gencontrol: warning: package ruby-rspec: substitution variable ${ruby:Depends} unused, but is defined dh_md5sums -O--buildsystem=ruby dh_builddeb -O--buildsystem=ruby -dpkg-deb: building package 'ruby-rspec-mocks' in '../ruby-rspec-mocks_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-core' in '../ruby-rspec-core_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-core' in '../ruby-rspec-core_3.13.0c0e0m0s1-2_all.deb'. +dpkg-deb: building package 'ruby-rspec' in '../ruby-rspec_3.13.0c0e0m0s1-2_all.deb'. +dpkg-deb: building package 'ruby-rspec-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_arm64.buildinfo dpkg-genchanges --build=binary -O../ruby-rspec_3.13.0c0e0m0s1-2_arm64.changes @@ -8795,12 +8830,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/418616/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/418616/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/618355 and its subdirectories -I: Current time: Fri Nov 8 14:42:27 -12 2024 -I: pbuilder-time-stamp: 1731120147 +I: removing directory /srv/workspace/pbuilder/418616 and its subdirectories +I: Current time: Fri Dec 12 23:07:00 +14 2025 +I: pbuilder-time-stamp: 1765530420