Diff of the two buildlogs: -- --- b1/build.log 2024-08-26 12:14:50.166813913 +0000 +++ b2/build.log 2024-08-26 12:17:35.955759635 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun Sep 28 06:36:47 -12 2025 -I: pbuilder-time-stamp: 1759084607 +I: Current time: Tue Aug 27 02:14:53 +14 2024 +I: pbuilder-time-stamp: 1724674493 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -45,53 +45,85 @@ 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/12809/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/11403/tmp/hooks/D01_modify_environment starting +debug: Running on infom07-i386. +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 Aug 26 12:15 /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/11403/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/11403/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='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=6 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='i386' + 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]="i686-pc-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=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=5 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='26cacddfd5634998b26f81bb1e7e0734' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - 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='12809' - PS1='# ' - PS2='> ' + INVOCATION_ID=7e07b309d100431ea2b5d55dafdfefb2 + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=11403 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.zGQvjKP8/pbuilderrc_gVyL --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.zGQvjKP8/b1 --logfile b1/build.log ruby-rspec_3.13.0c0e0m0s1-2.dsc' - SUDO_GID='111' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' + 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.zGQvjKP8/pbuilderrc_RlxL --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.zGQvjKP8/b2 --logfile b2/build.log ruby-rspec_3.13.0c0e0m0s1-2.dsc' + SUDO_GID=111 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' I: uname -a - Linux infom08-i386 6.9.7+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.9.7-1~bpo12+1 (2024-07-03) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-23-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.99-1 (2024-07-15) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 4 2024 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/12809/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 4 21:30 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/11403/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -325,7 +357,7 @@ Get: 168 http://deb.debian.org/debian unstable/main i386 ruby-nokogiri i386 1.16.4+dfsg-1 [271 kB] Get: 169 http://deb.debian.org/debian unstable/main i386 ruby-rr all 3.1.0-1 [40.2 kB] Get: 170 http://deb.debian.org/debian unstable/main i386 ruby-thread-order all 1.1.0-1.1 [5336 B] -Fetched 59.0 MB in 1s (83.2 MB/s) +Fetched 59.0 MB in 2s (25.6 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.12-minimal:i386. (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 ... 19757 files and directories currently installed.) @@ -892,8 +924,8 @@ Setting up tzdata (2024a-4) ... Current default time zone: 'Etc/UTC' -Local time is now: Sun Sep 28 18:37:08 UTC 2025. -Universal Time is now: Sun Sep 28 18:37:08 UTC 2025. +Local time is now: Mon Aug 26 12:16:02 UTC 2024. +Universal Time is now: Mon Aug 26 12:16:02 UTC 2024. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up liberror-perl (0.17029-2) ... @@ -1041,7 +1073,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/11403/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/11403/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 @@ -1080,13 +1116,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/d20250928-18755-2x981w/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240827-29591-mzshvd/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/d20250928-18755-2x981w/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/d20240827-29591-mzshvd/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 @@ -1105,7 +1141,7 @@ find lib/ -type d -empty -delete cd - cd - -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20250928-18755-f9u15b/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240827-29591-7xglh5/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: @@ -1115,7 +1151,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/d20250928-18755-f9u15b/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/d20240827-29591-7xglh5/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 @@ -1212,7 +1248,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/d20250928-18755-kwcmah/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240827-29591-jim964/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: @@ -1225,7 +1261,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/d20250928-18755-kwcmah/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/d20240827-29591-jim964/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 @@ -1291,7 +1327,7 @@ find lib/ -type d -empty -delete cd - cd - -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20250928-18755-i6wixq/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240827-29591-zbpi3u/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: @@ -1304,7 +1340,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/d20250928-18755-i6wixq/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/d20240827-29591-zbpi3u/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 @@ -1362,7 +1398,7 @@ find lib/ -type d -empty -delete cd - cd - -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20250928-18755-c17vte/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240827-29591-gox6qf/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: @@ -1372,7 +1408,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/d20250928-18755-c17vte/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/d20240827-29591-gox6qf/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 @@ -1439,7 +1475,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/i386-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/i386-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 ∙∙∙∙∙∙∙∙∙∙∙∙∙∙ @@ -1450,20 +1486,12 @@ /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 34063 -...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*.............................................................................................................................................................................................................................................................................................................................................................*.............................................................................................................................................................................................................................................................................................................................................................................................................................................*.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. +Randomized with seed 60344 +............................................................................................................................................*........................................................................................................................................................................................................................................................................*................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 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 - # lib/mathn.rb is deprecated in Ruby 2.2 - # ./spec/rspec/core/formatters/html_formatter_spec.rb:68 - - 2) RSpec::Core::Formatters::Helpers format duration with mathn loaded returns 'x minutes xx.x seconds' formatted string - # lib/mathn.rb is deprecated in Ruby 2.2 - # ./spec/rspec/core/formatters/helpers_spec.rb:64 - - 3) RSpec::Core::Metadata for an example points :example_group to the same hash object as other examples in the same group + 1) 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") @@ -1472,10 +1500,18 @@ (compared using ==) -Finished in 12.25 seconds (files took 0.70395 seconds to load) + 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 + + 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 18.63 seconds (files took 1.24 seconds to load) 2198 examples, 0 failures, 3 pending -Randomized with seed 34063 +Randomized with seed 60344 cd - @@ -1486,34 +1522,35 @@ 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 55723 -........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................********................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ +Randomized with seed 6506 +.......................................................................................................................................................................********.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................fatal: not a git repository (or any of the parent directories): .git +................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ Pending: (Failures listed here are expected and do not affect your suite's status) - 1) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target passes if target has the expected as a key + 1) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target 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:74 + # ./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 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:95 + # ./spec/rspec/matchers/built_in/include_spec.rb:89 - 3) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target does not support count constraint + 3) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target passes if target has the expected as a key # around hook at ./spec/rspec/matchers/built_in/include_spec.rb:376 did not execute the example - # ./spec/rspec/matchers/built_in/include_spec.rb:157 + # ./spec/rspec/matchers/built_in/include_spec.rb:74 - 4) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target passes if target has the expected as a key fuzzily matched + 4) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target 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:78 + # ./spec/rspec/matchers/built_in/include_spec.rb:82 - 5) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target fails if target doesn't have a key and we expect nil + 5) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target does not support count constraint # around hook at ./spec/rspec/matchers/built_in/include_spec.rb:376 did not execute the example - # ./spec/rspec/matchers/built_in/include_spec.rb:89 + # ./spec/rspec/matchers/built_in/include_spec.rb:157 - 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 + 6) #include matcher expect(...).to include(with_one_arg) for a target that can pass for a hash behaves like a Hash target passes if target has the expected as a key fuzzily matched # around hook at ./spec/rspec/matchers/built_in/include_spec.rb:376 did not execute the example - # ./spec/rspec/matchers/built_in/include_spec.rb:82 + # ./spec/rspec/matchers/built_in/include_spec.rb:78 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 # around hook at ./spec/rspec/matchers/built_in/include_spec.rb:376 did not execute the example @@ -1525,10 +1562,10 @@ 22 deprecation warnings total -Finished in 2.74 seconds (files took 0.4252 seconds to load) +Finished in 4.04 seconds (files took 0.94298 seconds to load) 2400 examples, 0 failures, 8 pending -Randomized with seed 55723 +Randomized with seed 6506 cd - @@ -1540,7171 +1577,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 17024 +Randomized with seed 35350 ************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************* Pending: (Failures listed here are expected and do not affect your suite's status) - 1) Loading rspec/mocks/standalone exposes the RSpec::Mocks API on `main` + 1) 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/standalone_spec.rb:7 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:100 - 2) Loading rspec/mocks/standalone does not infect other objects with the RSpec::Mocks API + 2) 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/standalone_spec.rb:20 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:92 - 3) when the should syntax is enabled on a non-default syntax host continues to warn about the should syntax + 3) 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/should_syntax_spec.rb:574 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:29 - 4) A partial double uses reports nil in the error message + 4) 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/partial_double_spec.rb:132 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:38 - 5) A partial double can accept an inner hash as a message argument + 5) 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/partial_double_spec.rb:86 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:14 - 6) A partial double clears message expectations when `dup`ed + 6) 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/partial_double_spec.rb:168 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:22 - 7) A partial double allows `class` to be stubbed even when `any_instance` has already been used + 7) 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/partial_double_spec.rb:32 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:52 - 8) A partial double can expect a message and set a return value + 8) 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/partial_double_spec.rb:74 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:58 - 9) A partial double can disallow messages from being received + 9) 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/partial_double_spec.rb:64 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:45 - 10) A partial double does not conflict with @options in the object + 10) 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/partial_double_spec.rb:26 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:66 - 11) A partial double can accept the string form of a message for a negative message expectation + 11) 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/partial_double_spec.rb:124 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:38 - 12) 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 + 12) 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/partial_double_spec.rb:145 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:66 - 13) A partial double shares message expectations with clone + 13) 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/partial_double_spec.rb:160 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:29 - 14) A partial double names the class in the failure message when expectation is on class + 14) and_wrap_original on a partial double allow_any_instance_of(...).to receive(...).and_wrap_original behaves like using and_wrap_original ignores previous stubs # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:19 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:52 - 15) A partial double can accept the string form of a message for a positive message expectation + 15) 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/partial_double_spec.rb:119 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:45 - 16) A partial double verifies the method was called when expecting a message + 16) 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/partial_double_spec.rb:112 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:22 - 17) A partial double can create a positive message expectation + 17) 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/partial_double_spec.rb:95 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:14 - 18) A partial double does not create an any_instance recorder when a message is allowed + 18) 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/partial_double_spec.rb:6 + # ./spec/rspec/mocks/and_wrap_original_spec.rb:58 - 19) A partial double allows `respond_to?` to be stubbed + 19) #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/partial_double_spec.rb:46 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:85 - 20) A partial double can accept a hash as a message argument + 20) #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/partial_double_spec.rb:79 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:70 - 21) A partial double names the class in the failure message + 21) 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/partial_double_spec.rb:12 + # ./spec/rspec/mocks/partial_double_spec.rb:318 - 22) A partial double allows a class and a subclass to both be stubbed + 22) 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/partial_double_spec.rb:100 + # ./spec/rspec/mocks/partial_double_spec.rb:324 - 23) A method stub with args does not complain if not called + 23) 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/stub_spec.rb:521 + # ./spec/rspec/mocks/partial_double_spec.rb:330 - 24) A method stub with args complains if called with other arg + 24) 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/stub_spec.rb:534 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:89 - 25) A method stub with args does not complain if also mocked w/ different args + 25) 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/stub_spec.rb:540 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:80 - 26) A method stub with args complains if called with no arg + 26) 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/stub_spec.rb:528 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:66 - 27) A method stub with args does not complain if called with arg + 27) 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/stub_spec.rb:524 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:66 - 28) A method stub with args complains if also mocked w/ different args AND called w/ a 3rd set of args + 28) 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/stub_spec.rb:546 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:80 - 29) A method stub with args uses the correct stubbed response when responding to a mock expectation + 29) 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/stub_spec.rb:555 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:72 - 30) a message expectation with multiple invoke handlers specifying at_least less than the number of values fails when called less than the specified number + 30) 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/multiple_invoke_handler_spec.rb:67 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:72 - 31) a message expectation with multiple invoke handlers specifying at_least less than the number of values uses the last return value for subsequent calls + 31) 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/multiple_invoke_handler_spec.rb:60 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:60 - 32) 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 + 32) 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/multiple_invoke_handler_spec.rb:82 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:60 - 33) 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 + 33) 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/multiple_invoke_handler_spec.rb:75 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:89 - 34) when a class method is aliased on a subclass and the method is mocked restores the original aliased public method + 34) 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/stash_spec.rb:26 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:22 - 35) An instance double with the doubled class not loaded handles classes that are materialized after mocking + 35) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:35 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:36 - 36) An instance double with the doubled class not loaded allows any instance method to be stubbed + 36) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:19 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:36 - 37) An instance double with the doubled class not loaded allows any instance method to be expected + 37) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:25 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:28 - 38) An instance double with the doubled class not loaded includes the doubled module in errors for unexpected messages + 38) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:12 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:45 - 39) An instance double with the doubled class not loaded for null objects reports it responds to any message + 39) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:49 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:45 - 40) An instance double with the doubled class not loaded for null objects returns self from any message + 40) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:45 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:16 - 41) 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)` + 41) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:64 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:28 - 42) 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')` + 42) 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/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:59 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:16 - 43) a message expectation with multiple return values specifying at_least less than the number of values uses the last return value for subsequent calls + 43) 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/multiple_return_value_spec.rb:74 + # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:22 - 44) a message expectation with multiple return values specifying at_least less than the number of values fails when called less than the specified number + 44) 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/multiple_return_value_spec.rb:81 + # ./spec/rspec/mocks/marshal_extension_spec.rb:24 - 45) 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 + 45) 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/multiple_return_value_spec.rb:96 + # ./spec/rspec/mocks/marshal_extension_spec.rb:36 - 46) 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 + 46) 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/multiple_return_value_spec.rb:89 + # ./spec/rspec/mocks/marshal_extension_spec.rb:31 - 47) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been mutated + 47) 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/mutate_const_spec.rb:579 + # ./spec/rspec/mocks/marshal_extension_spec.rb:17 - 48) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been stubbed + 48) 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/mutate_const_spec.rb:580 + # ./spec/rspec/mocks/marshal_extension_spec.rb:58 - 49) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates the name is invalid + 49) 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/mutate_const_spec.rb:577 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:38 - 50) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) returns nil for its original value + 50) 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/mutate_const_spec.rb:582 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:30 - 51) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) exposes the provided string as the name + 51) 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/mutate_const_spec.rb:576 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:44 - 52) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been hidden + 52) 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/mutate_const_spec.rb:581 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:23 - 53) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it was not previously defined + 53) 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/mutate_const_spec.rb:578 + # ./spec/rspec/mocks/null_object_double_spec.rb:129 - 54) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has not been stubbed + 54) 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/mutate_const_spec.rb:553 + # ./spec/rspec/mocks/stash_spec.rb:12 - 55) RSpec::Mocks::Constant.original for a previously defined hidden constant exposes its original value + 55) 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/mutate_const_spec.rb:555 + # ./spec/rspec/mocks/at_least_spec.rb:23 - 56) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it was previously defined + 56) 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/mutate_const_spec.rb:551 + # ./spec/rspec/mocks/at_least_spec.rb:139 - 57) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has been mutated + 57) 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/mutate_const_spec.rb:552 + # ./spec/rspec/mocks/at_least_spec.rb:30 - 58) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has been hidden + 58) at_least passes when at least once method is called once # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:554 + # ./spec/rspec/mocks/at_least_spec.rb:73 - 59) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates the name is valid + 59) 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/mutate_const_spec.rb:550 + # ./spec/rspec/mocks/at_least_spec.rb:45 - 60) RSpec::Mocks::Constant.original for a previously defined hidden constant exposes its name + 60) 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/mutate_const_spec.rb:549 + # ./spec/rspec/mocks/at_least_spec.rb:86 - 61) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it has not been mutated + 61) 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/mutate_const_spec.rb:498 + # ./spec/rspec/mocks/at_least_spec.rb:132 - 62) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it has not been hidden + 62) 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/mutate_const_spec.rb:500 + # ./spec/rspec/mocks/at_least_spec.rb:63 - 63) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it has not been stubbed + 63) 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/mutate_const_spec.rb:499 + # ./spec/rspec/mocks/at_least_spec.rb:54 - 64) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant exposes its name + 64) 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/mutate_const_spec.rb:495 + # ./spec/rspec/mocks/at_least_spec.rb:109 - 65) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant returns nil for the original value + 65) 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/mutate_const_spec.rb:501 + # ./spec/rspec/mocks/at_least_spec.rb:101 - 66) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it was not previously defined + 66) at_least fails if method is never called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:497 + # ./spec/rspec/mocks/at_least_spec.rb:6 - 67) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates the name is valid + 67) 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/mutate_const_spec.rb:496 + # ./spec/rspec/mocks/at_least_spec.rb:118 - 68) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant returns nil for the original value + 68) 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/mutate_const_spec.rb:489 + # ./spec/rspec/mocks/at_least_spec.rb:94 - 69) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has not been hidden + 69) 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/mutate_const_spec.rb:488 + # ./spec/rspec/mocks/at_least_spec.rb:13 - 70) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant exposes its name + 70) 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/mutate_const_spec.rb:483 + # ./spec/rspec/mocks/at_least_spec.rb:79 - 71) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates the name is valid + 71) 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/mutate_const_spec.rb:484 + # ./spec/rspec/mocks/at_least_spec.rb:38 - 72) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has been stubbed + 72) at_least when called with negative expectation raises an error # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:487 + # ./spec/rspec/mocks/at_least_spec.rb:147 - 73) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it was not previously defined + 73) at_least when sent with 0 outputs a removal message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:485 + # ./spec/rspec/mocks/at_least_spec.rb:125 - 74) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has been mutated + 74) 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/mutate_const_spec.rb:486 + # ./spec/rspec/mocks/should_syntax_spec.rb:139 - 75) RSpec::Mocks::Constant.original for a previously defined stubbed constant exposes its original value + 75) 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/mutate_const_spec.rb:463 + # ./spec/support/before_all_shared_example_group.rb:11 - 76) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates the name is valid + 76) 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/mutate_const_spec.rb:458 + # ./spec/rspec/mocks/should_syntax_spec.rb:133 - 77) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has been stubbed + 77) 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/mutate_const_spec.rb:461 + # ./spec/rspec/mocks/should_syntax_spec.rb:146 - 78) RSpec::Mocks::Constant.original for a previously defined stubbed constant exposes its name + 78) 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/mutate_const_spec.rb:457 + # ./spec/rspec/mocks/should_syntax_spec.rb:170 - 79) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has been mutated + 79) 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/mutate_const_spec.rb:460 + # ./spec/rspec/mocks/should_syntax_spec.rb:178 - 80) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it was previously defined + 80) 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/mutate_const_spec.rb:459 + # ./spec/rspec/mocks/should_syntax_spec.rb:159 - 81) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has not been hidden + 81) 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/mutate_const_spec.rb:462 + # ./spec/rspec/mocks/should_syntax_spec.rb:13 - 82) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates the name is valid + 82) 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/mutate_const_spec.rb:471 + # ./spec/rspec/mocks/should_syntax_spec.rb:9 - 83) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has not been hidden + 83) 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/mutate_const_spec.rb:475 + # ./spec/rspec/mocks/should_syntax_spec.rb:18 - 84) RSpec::Mocks::Constant.original for a previously undefined stubbed constant exposes its name + 84) 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/mutate_const_spec.rb:470 + # ./spec/rspec/mocks/should_syntax_spec.rb:23 - 85) RSpec::Mocks::Constant.original for a previously undefined stubbed constant returns nil for the original value + 85) 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/mutate_const_spec.rb:476 + # ./spec/rspec/mocks/should_syntax_spec.rb:194 - 86) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has been mutated + 86) 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/mutate_const_spec.rb:473 + # ./spec/support/before_all_shared_example_group.rb:11 - 87) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it was not previously defined + 87) 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/mutate_const_spec.rb:472 + # ./spec/rspec/mocks/should_syntax_spec.rb:190 - 88) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has been stubbed + 88) 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/mutate_const_spec.rb:474 + # ./spec/rspec/mocks/should_syntax_spec.rb:201 - 89) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice returns nil for the original value + 89) 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/mutate_const_spec.rb:529 + # ./spec/rspec/mocks/should_syntax_spec.rb:248 - 90) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates the name is valid + 90) 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/mutate_const_spec.rb:524 + # ./spec/rspec/mocks/should_syntax_spec.rb:231 - 91) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has been mutated + 91) 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/mutate_const_spec.rb:526 + # ./spec/rspec/mocks/should_syntax_spec.rb:255 - 92) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it was not previously defined + 92) 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/mutate_const_spec.rb:525 + # ./spec/rspec/mocks/should_syntax_spec.rb:263 - 93) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has been stubbed + 93) 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/mutate_const_spec.rb:527 + # ./spec/rspec/mocks/should_syntax_spec.rb:237 - 94) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has not been hidden + 94) 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/mutate_const_spec.rb:528 + # ./spec/rspec/mocks/should_syntax_spec.rb:242 - 95) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice exposes its name + 95) 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/mutate_const_spec.rb:523 + # ./spec/support/before_all_shared_example_group.rb:11 - 96) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it was previously defined + 96) 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/mutate_const_spec.rb:565 + # ./spec/rspec/mocks/should_syntax_spec.rb:303 - 97) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice exposes its name + 97) 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/mutate_const_spec.rb:563 + # ./spec/rspec/mocks/should_syntax_spec.rb:324 - 98) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates the name is valid + 98) 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/mutate_const_spec.rb:564 + # ./spec/rspec/mocks/should_syntax_spec.rb:308 - 99) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice exposes its original value + 99) 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/mutate_const_spec.rb:569 + # ./spec/rspec/mocks/should_syntax_spec.rb:318 - 100) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has been hidden + 100) 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/mutate_const_spec.rb:568 + # ./spec/rspec/mocks/should_syntax_spec.rb:313 - 101) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has been mutated + 101) 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/mutate_const_spec.rb:566 + # ./spec/rspec/mocks/should_syntax_spec.rb:285 - 102) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has not been stubbed + 102) 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/mutate_const_spec.rb:567 + # ./spec/rspec/mocks/should_syntax_spec.rb:281 - 103) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has been mutated + 103) 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/mutate_const_spec.rb:512 + # ./spec/rspec/mocks/should_syntax_spec.rb:273 - 104) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has been stubbed + 104) 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/mutate_const_spec.rb:513 + # ./spec/rspec/mocks/should_syntax_spec.rb:277 - 105) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice exposes its original value + 105) 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/mutate_const_spec.rb:515 + # ./spec/rspec/mocks/should_syntax_spec.rb:293 - 106) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates the name is valid + 106) 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/mutate_const_spec.rb:510 + # ./spec/rspec/mocks/should_syntax_spec.rb:335 - 107) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice exposes its name + 107) 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/mutate_const_spec.rb:509 + # ./spec/rspec/mocks/should_syntax_spec.rb:382 - 108) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it was previously defined + 108) 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/mutate_const_spec.rb:511 + # ./spec/rspec/mocks/should_syntax_spec.rb:353 - 109) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has not been hidden + 109) 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/mutate_const_spec.rb:514 + # ./spec/rspec/mocks/should_syntax_spec.rb:341 - 110) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not not been stubbed + 110) 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/mutate_const_spec.rb:540 + # ./spec/rspec/mocks/should_syntax_spec.rb:349 - 111) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates the name is valid + 111) 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/mutate_const_spec.rb:537 + # ./spec/rspec/mocks/should_syntax_spec.rb:367 - 112) RSpec::Mocks::Constant.original for a previously undefined hidden constant returns nil for the original value + 112) 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/mutate_const_spec.rb:542 + # ./spec/rspec/mocks/should_syntax_spec.rb:359 - 113) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not been hidden + 113) 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/mutate_const_spec.rb:541 + # ./spec/rspec/mocks/should_syntax_spec.rb:374 - 114) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it was previously undefined + 114) 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/mutate_const_spec.rb:538 + # ./spec/rspec/mocks/should_syntax_spec.rb:396 - 115) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not been mutated + 115) 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/mutate_const_spec.rb:539 + # ./spec/rspec/mocks/should_syntax_spec.rb:419 - 116) RSpec::Mocks::Constant.original for a previously undefined hidden constant exposes its name + 116) 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/mutate_const_spec.rb:536 + # ./spec/rspec/mocks/should_syntax_spec.rb:390 - 117) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been mutated + 117) 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/mutate_const_spec.rb:447 + # ./spec/rspec/mocks/should_syntax_spec.rb:403 - 118) RSpec::Mocks::Constant.original for a previously defined unstubbed constant exposes its original value + 118) 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/mutate_const_spec.rb:450 + # ./spec/rspec/mocks/should_syntax_spec.rb:449 - 119) RSpec::Mocks::Constant.original for a previously defined unstubbed constant exposes its name + 119) 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/mutate_const_spec.rb:444 + # ./spec/rspec/mocks/should_syntax_spec.rb:427 - 120) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been stubbed + 120) 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/mutate_const_spec.rb:448 + # ./spec/rspec/mocks/should_syntax_spec.rb:411 - 121) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates the name is valid + 121) 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/mutate_const_spec.rb:445 + # ./spec/rspec/mocks/should_syntax_spec.rb:435 - 122) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it was previously defined + 122) 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/mutate_const_spec.rb:446 + # ./spec/rspec/mocks/should_syntax_spec.rb:443 - 123) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been hidden + 123) 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/mutate_const_spec.rb:449 + # ./spec/rspec/mocks/should_syntax_spec.rb:46 - 124) Partially mocking an object that defines ==, after another mock has been defined does not raise an error when stubbing the object + 124) 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/partial_double_spec.rb:268 + # ./spec/support/before_all_shared_example_group.rb:11 - 125) MockExpectationError is not caught by StandardError rescue blocks + 125) 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/mock_expectation_error_spec.rb:12 + # ./spec/rspec/mocks/should_syntax_spec.rb:40 - 126) 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 + 126) 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/multiple_return_value_spec.rb:116 + # ./spec/rspec/mocks/should_syntax_spec.rb:30 - 127) 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 + 127) 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/multiple_return_value_spec.rb:122 + # ./spec/rspec/mocks/should_syntax_spec.rb:34 - 128) 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 + 128) 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/multiple_return_value_spec.rb:109 + # ./spec/rspec/mocks/should_syntax_spec.rb:61 - 129) Marshal extensions #dump when rspec-mocks has been fully initialized duplicates objects with stubbed or mocked implementations before serialization + 129) 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/marshal_extension_spec.rb:17 + # ./spec/support/before_all_shared_example_group.rb:11 - 130) Marshal extensions #dump when rspec-mocks has been fully initialized does not duplicate other objects before serialization + 130) 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/marshal_extension_spec.rb:24 + # ./spec/rspec/mocks/should_syntax_spec.rb:92 - 131) Marshal extensions #dump when rspec-mocks has been fully initialized applying and unapplying patch is idempotent + 131) 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/marshal_extension_spec.rb:36 + # ./spec/rspec/mocks/should_syntax_spec.rb:101 - 132) Marshal extensions #dump when rspec-mocks has been fully initialized does not duplicate nil before serialization + 132) 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/marshal_extension_spec.rb:31 + # ./spec/rspec/mocks/should_syntax_spec.rb:124 - 133) Marshal extensions #dump outside the per-test lifecycle does not duplicate the object before serialization + 133) 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/marshal_extension_spec.rb:58 + # ./spec/rspec/mocks/should_syntax_spec.rb:111 - 134) at_least passes when at least n times method is called exactly n times + 134) 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/at_least_spec.rb:54 + # ./spec/support/before_all_shared_example_group.rb:11 - 135) at_least passes when at least thrice method is called four times + 135) 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/at_least_spec.rb:109 + # ./spec/rspec/mocks/should_syntax_spec.rb:84 - 136) at_least prefers its own return value over a stub + 136) 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/at_least_spec.rb:139 + # ./spec/rspec/mocks/example_methods_spec.rb:21 - 137) at_least passes when at least once method is called once + 137) 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/at_least_spec.rb:73 + # ./spec/rspec/mocks/example_methods_spec.rb:25 - 138) at_least passes when at least once method is called twice + 138) 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/at_least_spec.rb:79 + # ./spec/rspec/mocks/example_methods_spec.rb:31 - 139) at_least passes when at least n times method is called n plus 1 times + 139) 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/at_least_spec.rb:63 + # ./spec/rspec/mocks/example_methods_spec.rb:4 - 140) at_least fails if method is never called + 140) 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/at_least_spec.rb:6 + # ./spec/rspec/mocks/precise_counts_spec.rb:34 - 141) at_least passes when at least twice method is called three times + 141) 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/at_least_spec.rb:86 + # ./spec/rspec/mocks/precise_counts_spec.rb:42 - 142) at_least uses a stub value if no value set + 142) 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/at_least_spec.rb:132 + # ./spec/rspec/mocks/precise_counts_spec.rb:48 - 143) at_least passes when at least thrice method is called three times + 143) 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/at_least_spec.rb:101 + # ./spec/rspec/mocks/precise_counts_spec.rb:17 - 144) at_least fails when at least twice method is called once + 144) 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/at_least_spec.rb:30 + # ./spec/rspec/mocks/precise_counts_spec.rb:27 - 145) at_least passes when at least twice method is called twice + 145) 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/at_least_spec.rb:94 + # ./spec/rspec/mocks/precise_counts_spec.rb:56 - 146) at_least fails when at least twice method is never called + 146) 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/at_least_spec.rb:38 + # ./spec/rspec/mocks/precise_counts_spec.rb:8 - 147) at_least fails when at least once method is never called + 147) 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/at_least_spec.rb:23 + # ./spec/rspec/mocks/should_syntax_spec.rb:574 - 148) at_least returns the value given by a block when the at least once method is called + 148) 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/at_least_spec.rb:118 + # ./spec/rspec/mocks/and_return_spec.rb:7 - 149) at_least fails when called less than n times + 149) 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/at_least_spec.rb:13 + # ./spec/rspec/mocks/and_return_spec.rb:15 - 150) at_least fails when at least thrice method is called less than three times + 150) 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/at_least_spec.rb:45 + # ./spec/rspec/mocks/serialization_spec.rb:84 - 151) at_least when called with negative expectation raises an error + 151) 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/at_least_spec.rb:147 + # ./spec/rspec/mocks/serialization_spec.rb:77 - 152) at_least when sent with 0 outputs a removal message + 152) 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/at_least_spec.rb:125 + # ./spec/rspec/mocks/serialization_spec.rb:43 - 153) and_call_original on a partial double works for methods added through an extended module + 153) 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/and_call_original_spec.rb:111 + # ./spec/rspec/mocks/serialization_spec.rb:47 - 154) and_call_original on a partial double ignores prior declared stubs + 154) 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/and_call_original_spec.rb:70 + # ./spec/rspec/mocks/methods_spec.rb:13 - 155) and_call_original on a partial double works for class methods defined on the Class class + 155) 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/and_call_original_spec.rb:213 + # ./spec/rspec/mocks/stub_spec.rb:524 - 156) and_call_original on a partial double works for class methods defined on a grandparent class + 156) 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/and_call_original_spec.rb:207 + # ./spec/rspec/mocks/stub_spec.rb:555 - 157) 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 + 157) 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/and_call_original_spec.rb:133 + # ./spec/rspec/mocks/stub_spec.rb:521 - 158) and_call_original on a partial double passes the received message through to the original method + 158) 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/and_call_original_spec.rb:65 + # ./spec/rspec/mocks/stub_spec.rb:528 - 159) 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 + 159) 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/and_call_original_spec.rb:124 + # ./spec/rspec/mocks/stub_spec.rb:540 - 160) and_call_original on a partial double works for aliased methods + 160) 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/and_call_original_spec.rb:225 + # ./spec/rspec/mocks/stub_spec.rb:534 - 161) and_call_original on a partial double warns when you override an existing implementation + 161) 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/and_call_original_spec.rb:90 + # ./spec/rspec/mocks/stub_spec.rb:546 - 162) and_call_original on a partial double works for method added through an extended module onto a class's ancestor + 162) 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/and_call_original_spec.rb:117 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:7 - 163) and_call_original on a partial double errors when you pass through the wrong number of args + 163) 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/and_call_original_spec.rb:82 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:12 - 164) and_call_original on a partial double works for methods that accept keyword arguments + 164) 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/and_call_original_spec.rb:237 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:18 - 165) and_call_original on a partial double works for class methods defined on a superclass + 165) 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/and_call_original_spec.rb:188 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:28 - 166) and_call_original on a partial double passes args and blocks through to the original method + 166) 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/and_call_original_spec.rb:76 + # ./spec/rspec/mocks/any_instance/message_chains_spec.rb:33 - 167) and_call_original on a partial double works for instance methods defined on the object's class's superclass + 167) Constant Mutating #stub_const requires a string argument # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:218 + # ./spec/rspec/mocks/mutate_const_spec.rb:221 - 168) and_call_original on a partial double when a non-existent method has been stubbed previously restores the original NameError behavior + 168) Constant Mutating #stub_const for an unloaded nested constant removes the root constant when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:54 + # ./spec/rspec/mocks/mutate_const_spec.rb:387 - 169) 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 + 169) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:312 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 170) and_call_original on a partial double on an object that defines method_missing works for an any_instance partial mock + 170) 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/and_call_original_spec.rb:300 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 171) and_call_original on a partial double on an object that defines method_missing works when the method_missing definition handles the message + 171) 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/and_call_original_spec.rb:295 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 172) 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 + 172) 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/and_call_original_spec.rb:305 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 173) 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 + 173) Constant Mutating #stub_const for a loaded nested constant behaves like loaded constant stubbing resets it to its original value when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:271 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 174) 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 + 174) Constant Mutating #stub_const for a loaded nested constant behaves like loaded constant stubbing allows it to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:266 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 175) and_call_original on a partial double when a method that exists has been stubbed previously restores the original behavior + 175) Constant Mutating #stub_const for a loaded nested constant behaves like loaded constant stubbing returns the stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:46 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 176) and_call_original on a partial double for singleton methods works for SimpleDelegator subclasses + 176) Constant Mutating #stub_const for an unloaded deeply nested constant removes the root constant when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:103 + # ./spec/rspec/mocks/mutate_const_spec.rb:398 - 177) and_call_original on a partial double for singleton methods works + 177) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:97 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 178) and_call_original on a partial double when using any_instance works for instance methods defined on the class + 178) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing allows it to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:143 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 179) and_call_original on a partial double when using any_instance works for instance methods that use required keyword arguments + 179) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:168 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 180) and_call_original on a partial double when using any_instance works for instance methods defined on the superclass of the class + 180) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing returns the stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:176 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 181) and_call_original on a partial double when using any_instance works for instance methods that use optional keyword arguments with an argument supplied + 181) 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/and_call_original_spec.rb:159 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 182) 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 + 182) 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/and_call_original_spec.rb:182 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 183) and_call_original on a partial double when using any_instance works for instance methods that use double splat + 183) 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/and_call_original_spec.rb:149 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 184) and_call_original on a partial double when using any_instance works for instance methods that use optional keyword arguments + 184) Constant Mutating #stub_const for a loaded unnested constant raises an error if asked to transfer nested constants on a constant that does not support nested constants # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:154 + # ./spec/rspec/mocks/mutate_const_spec.rb:298 - 185) 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 + 185) Constant Mutating #stub_const for a loaded unnested constant removes the transferred constants on reset # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:195 + # ./spec/rspec/mocks/mutate_const_spec.rb:247 - 186) and_call_original on a partial double that overrides #method still works even though #method has been overridden + 186) Constant Mutating #stub_const for a loaded unnested constant raises an error if asked to transfer a nested constant that is not defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:344 + # ./spec/rspec/mocks/mutate_const_spec.rb:313 - 187) and_call_original on a partial double that overrides #method works for a singleton method + 187) Constant Mutating #stub_const for a loaded unnested constant raises an error if asked to transfer nested constants but given an object that does not support them # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/and_call_original_spec.rb:349 + # ./spec/rspec/mocks/mutate_const_spec.rb:282 - 188) and_call_original on a pure test double raises an error even if the double object responds to the message + 188) 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/and_call_original_spec.rb:362 + # ./spec/rspec/mocks/mutate_const_spec.rb:238 - 189) expection set on previously stubbed method indicates the site of expectation in the stacktrace when outputing arguments of similar calls + 189) 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/stubbed_message_expectations_spec.rb:43 + # ./spec/rspec/mocks/mutate_const_spec.rb:274 - 190) expection set on previously stubbed method outputs arguments of similar calls + 190) 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/stubbed_message_expectations_spec.rb:9 + # ./spec/rspec/mocks/mutate_const_spec.rb:228 - 191) expection set on previously stubbed method handles concurrent validation of expectations + 191) 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/stubbed_message_expectations_spec.rb:26 + # ./spec/rspec/mocks/mutate_const_spec.rb:256 - 192) expection set on previously stubbed method fails if message is not received after expectation is set + 192) 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/stubbed_message_expectations_spec.rb:2 + # ./spec/rspec/mocks/mutate_const_spec.rb:264 - 193) expection set on previously stubbed method with argument constraint on stub distinguishes between duplicate individual values and arrays properly + 193) 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/stubbed_message_expectations_spec.rb:95 + # ./spec/rspec/mocks/mutate_const_spec.rb:332 - 194) expection set on previously stubbed method with argument constraint on stub fails if expectation's arg constraint is not met + 194) 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/stubbed_message_expectations_spec.rb:76 + # ./spec/rspec/mocks/mutate_const_spec.rb:342 - 195) expection set on previously stubbed method with argument constraint on stub distinguishes between individual values and arrays properly + 195) 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/stubbed_message_expectations_spec.rb:84 + # ./spec/rspec/mocks/mutate_const_spec.rb:347 - 196) expection set on previously stubbed method with argument constraint on stub matches any args if no arg constraint set on expectation + 196) 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/stubbed_message_expectations_spec.rb:60 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 197) expection set on previously stubbed method with argument constraint on stub matches specific args set on expectation + 197) 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/stubbed_message_expectations_spec.rb:68 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 198) Failure notification uses the rspec-support notifier to support `aggregate_failures` + 198) 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/failure_notification_spec.rb:8 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 199) 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 + 199) 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/failure_notification_spec.rb:24 + # ./spec/rspec/mocks/mutate_const_spec.rb:409 - 200) Failure notification includes the line of future expectation in the notification for an unreceived message + 200) 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/failure_notification_spec.rb:16 + # ./spec/rspec/mocks/mutate_const_spec.rb:418 - 201) Failure notification when using `aggregate_failures` failing negative expectations are only notified once + 201) 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/failure_notification_spec.rb:58 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 202) Failure notification when using `aggregate_failures` spy failures for messages received with unexpected args are reported correctly + 202) 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/failure_notification_spec.rb:45 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 203) Failure notification when using `aggregate_failures` spy failures for unreceived messages are reported correctly + 203) 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/failure_notification_spec.rb:34 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 204) Reraising eager raises during the verify step does not reraise when a double receives a message that hasn't been allowed/expected + 204) 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/reraising_eager_raises_spec.rb:4 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 205) 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 + 205) 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/reraising_eager_raises_spec.rb:27 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 206) 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 + 206) 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/reraising_eager_raises_spec.rb:20 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 207) 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 + 207) 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/reraising_eager_raises_spec.rb:42 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 208) Reraising eager raises during the verify step when a negative expectation receives a call reraises during verification + 208) 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/reraising_eager_raises_spec.rb:12 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 209) Reraising eager raises during the verify step when an expectation with a count is exceeded reraises during verification + 209) 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/reraising_eager_raises_spec.rb:63 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 210) 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 + 210) 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/reraising_eager_raises_spec.rb:72 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 211) 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 + 211) 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/reraising_eager_raises_spec.rb:89 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 212) Reraising eager raises during the verify step when an expectation is called with the wrong arguments reraises during verification + 212) 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/reraising_eager_raises_spec.rb:81 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 213) Reraising eager raises during the verify step when an expectation is called out of order reraises during verification + 213) 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/reraising_eager_raises_spec.rb:99 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 214) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher describes itself properly + 214) 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/array_including_matcher_spec.rb:5 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 215) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher describes passed matchers + 215) 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/array_including_matcher_spec.rb:9 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 216) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing works with duplicates in expected + 216) 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/array_including_matcher_spec.rb:32 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 217) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing works with duplicates in actual + 217) 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/array_including_matcher_spec.rb:36 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 218) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array + 218) 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/array_including_matcher_spec.rb:16 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 219) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, specified without square brackets + 219) 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/array_including_matcher_spec.rb:24 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 220) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, specified without square brackets + 220) 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/array_including_matcher_spec.rb:20 + # ./spec/rspec/mocks/mutate_const_spec.rb:64 - 221) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, which includes nested arrays + 221) 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/array_including_matcher_spec.rb:28 + # ./spec/rspec/mocks/mutate_const_spec.rb:58 - 222) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing is composable when nested + 222) 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/array_including_matcher_spec.rb:48 + # ./spec/rspec/mocks/mutate_const_spec.rb:72 - 223) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing is composable with other matchers + 223) 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/array_including_matcher_spec.rb:40 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 224) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher failing fails when not all the entries in the expected are present + 224) 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/array_including_matcher_spec.rb:56 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 225) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher failing fails when passed a composed matcher is passed and not satisfied + 225) 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/array_including_matcher_spec.rb:60 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 226) a message expectation with multiple invoke handlers and no specified count falls back to a previously stubbed value + 226) 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/multiple_invoke_handler_spec.rb:17 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 227) a message expectation with multiple invoke handlers and no specified count fails when there are too few calls (if there is no stub) + 227) 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/multiple_invoke_handler_spec.rb:25 + # ./spec/rspec/mocks/mutate_const_spec.rb:427 - 228) a message expectation with multiple invoke handlers and no specified count invokes procs in order + 228) 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/multiple_invoke_handler_spec.rb:10 + # ./spec/rspec/mocks/mutate_const_spec.rb:120 - 229) a message expectation with multiple invoke handlers and no specified count fails when there are too many calls (if there is no stub) + 229) 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/multiple_invoke_handler_spec.rb:31 + # ./spec/rspec/mocks/mutate_const_spec.rb:116 - 230) stub implementation with one arg execs the block with that arg when called + 230) 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/stub_implementation_spec.rb:13 + # ./spec/rspec/mocks/mutate_const_spec.rb:110 - 231) stub implementation with no args execs the block when called + 231) 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/stub_implementation_spec.rb:5 + # ./spec/rspec/mocks/mutate_const_spec.rb:105 - 232) stub implementation with variable args execs the block when called + 232) 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/stub_implementation_spec.rb:21 + # ./spec/rspec/mocks/mutate_const_spec.rb:193 - 233) After a test double has been torn down for an instance_double disallows being turned into a null object + 233) 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/expiration_spec.rb:47 + # ./spec/rspec/mocks/mutate_const_spec.rb:202 - 234) After a test double has been torn down for an instance_double disallows stubbing new methods (with receive) + 234) 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/expiration_spec.rb:23 + # ./spec/rspec/mocks/mutate_const_spec.rb:134 - 235) After a test double has been torn down for an instance_double disallows stubbing new methods (with receive_messages) + 235) 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/expiration_spec.rb:29 + # ./spec/rspec/mocks/mutate_const_spec.rb:139 - 236) After a test double has been torn down for an instance_double disallows stubbing new message chains + 236) 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/expiration_spec.rb:35 + # ./spec/rspec/mocks/mutate_const_spec.rb:145 - 237) After a test double has been torn down for an instance_double disallows previously mocked methods + 237) 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/expiration_spec.rb:15 + # ./spec/rspec/mocks/mutate_const_spec.rb:87 - 238) After a test double has been torn down for an instance_double disallows previously stubbed methods + 238) 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/expiration_spec.rb:19 + # ./spec/rspec/mocks/mutate_const_spec.rb:93 - 239) After a test double has been torn down for an instance_double disallows mocking new methods + 239) 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/expiration_spec.rb:41 + # ./spec/rspec/mocks/mutate_const_spec.rb:82 - 240) After a test double has been torn down for an instance_double disallows being checked for nullness + 240) 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/expiration_spec.rb:51 + # ./spec/rspec/mocks/mutate_const_spec.rb:93 - 241) After a test double has been torn down for a class_double disallows stubbing new methods (with receive_messages) + 241) 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/expiration_spec.rb:29 + # ./spec/rspec/mocks/mutate_const_spec.rb:87 - 242) After a test double has been torn down for a class_double disallows stubbing new message chains + 242) 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/expiration_spec.rb:35 + # ./spec/rspec/mocks/mutate_const_spec.rb:82 - 243) After a test double has been torn down for a class_double disallows being turned into a null object + 243) 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/expiration_spec.rb:47 + # ./spec/rspec/mocks/mutate_const_spec.rb:87 - 244) After a test double has been torn down for a class_double disallows stubbing new methods (with receive) + 244) 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/expiration_spec.rb:23 + # ./spec/rspec/mocks/mutate_const_spec.rb:82 - 245) After a test double has been torn down for a class_double disallows mocking new methods + 245) 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/expiration_spec.rb:41 + # ./spec/rspec/mocks/mutate_const_spec.rb:93 - 246) After a test double has been torn down for a class_double disallows previously mocked methods + 246) 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/expiration_spec.rb:15 + # ./spec/rspec/mocks/mutate_const_spec.rb:93 - 247) After a test double has been torn down for a class_double disallows being checked for nullness + 247) 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/expiration_spec.rb:51 + # ./spec/rspec/mocks/mutate_const_spec.rb:87 - 248) After a test double has been torn down for a class_double disallows previously stubbed methods + 248) 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/expiration_spec.rb:19 + # ./spec/rspec/mocks/mutate_const_spec.rb:82 - 249) After a test double has been torn down for an object_double disallows being checked for nullness + 249) 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/expiration_spec.rb:51 + # ./spec/rspec/mocks/mutate_const_spec.rb:166 - 250) After a test double has been torn down for an object_double disallows stubbing new message chains + 250) 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/expiration_spec.rb:35 + # ./spec/rspec/mocks/mutate_const_spec.rb:145 - 251) After a test double has been torn down for an object_double disallows stubbing new methods (with receive_messages) + 251) 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/expiration_spec.rb:29 + # ./spec/rspec/mocks/mutate_const_spec.rb:134 - 252) After a test double has been torn down for an object_double disallows previously stubbed methods + 252) 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/expiration_spec.rb:19 + # ./spec/rspec/mocks/mutate_const_spec.rb:139 - 253) After a test double has been torn down for an object_double disallows previously mocked methods + 253) 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/expiration_spec.rb:15 + # ./spec/rspec/mocks/mutate_const_spec.rb:145 - 254) After a test double has been torn down for an object_double disallows stubbing new methods (with receive) + 254) 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/expiration_spec.rb:23 + # ./spec/rspec/mocks/mutate_const_spec.rb:134 - 255) After a test double has been torn down for an object_double disallows being turned into a null object + 255) 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/expiration_spec.rb:47 + # ./spec/rspec/mocks/mutate_const_spec.rb:139 - 256) After a test double has been torn down for an object_double disallows mocking new methods + 256) 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/expiration_spec.rb:41 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:139 - 257) After a test double has been torn down for a plain double disallows previously stubbed methods + 257) 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/expiration_spec.rb:19 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:146 - 258) After a test double has been torn down for a plain double disallows being checked for nullness + 258) 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/expiration_spec.rb:51 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:132 - 259) After a test double has been torn down for a plain double disallows stubbing new message chains + 259) 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/expiration_spec.rb:35 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:125 - 260) After a test double has been torn down for a plain double disallows stubbing new methods (with receive) + 260) 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/expiration_spec.rb:23 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:49 - 261) After a test double has been torn down for a plain double disallows mocking new methods + 261) 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/expiration_spec.rb:41 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:55 - 262) After a test double has been torn down for a plain double disallows stubbing new methods (with receive_messages) + 262) 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/expiration_spec.rb:29 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 - 263) After a test double has been torn down for a plain double disallows previously mocked methods + 263) 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/expiration_spec.rb:15 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 - 264) After a test double has been torn down for a plain double disallows being turned into a null object + 264) 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/expiration_spec.rb:47 + # ./spec/rspec/mocks/mock_ordering_spec.rb:56 - 265) #thrice fails when call count is lower than expected + 265) 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/thrice_counts_spec.rb:36 + # ./spec/rspec/mocks/mock_ordering_spec.rb:16 - 266) #thrice fails when called with wrong args on the second call + 266) 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/thrice_counts_spec.rb:52 + # ./spec/rspec/mocks/mock_ordering_spec.rb:66 - 267) #thrice passes when called thrice + 267) 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/thrice_counts_spec.rb:8 + # ./spec/rspec/mocks/mock_ordering_spec.rb:27 - 268) #thrice fails when called with wrong args on the first call + 268) ordering supports duplicate messages # 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/mock_ordering_spec.rb:100 - 269) #thrice fails when called with wrong args on the third call + 269) 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/thrice_counts_spec.rb:61 + # ./spec/rspec/mocks/mock_ordering_spec.rb:7 - 270) #thrice passes when called thrice with unspecified args + 270) 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/thrice_counts_spec.rb:20 + # ./spec/rspec/mocks/mock_ordering_spec.rb:38 - 271) #thrice passes when called thrice with specified args + 271) 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/thrice_counts_spec.rb:14 + # ./spec/rspec/mocks/mock_ordering_spec.rb:80 - 272) #thrice fails fast when call count is higher than expected + 272) 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/thrice_counts_spec.rb:28 + # ./spec/rspec/mocks/mock_ordering_spec.rb:46 - 273) #thrice when called with negative expectation raises an error + 273) 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/thrice_counts_spec.rb:72 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:4 - 274) Using the legacy should syntax #received_message? answers true for received_message? when message received with correct args + 274) 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/should_syntax_spec.rb:18 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:60 - 275) Using the legacy should syntax #received_message? answers true for received_message? when message received + 275) 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/should_syntax_spec.rb:13 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:15 - 276) Using the legacy should syntax #received_message? answers false for received_message? when no messages received + 276) 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/should_syntax_spec.rb:9 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:24 - 277) Using the legacy should syntax #received_message? answers false for received_message? when message received with incorrect args + 277) 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/should_syntax_spec.rb:23 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:38 - 278) Using the legacy should syntax #any_instance can mock a method + 278) 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/should_syntax_spec.rb:242 + # ./spec/rspec/mocks/nil_expectation_warning_spec.rb:53 - 279) Using the legacy should syntax #any_instance affects previously stubbed instances when mocking a method + 279) MockExpectationError is not caught by StandardError rescue blocks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/should_syntax_spec.rb:263 + # ./spec/rspec/mocks/mock_expectation_error_spec.rb:12 - 280) Using the legacy should syntax #any_instance raises an error with a useful message + 280) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 281) Using the legacy should syntax #any_instance affects previously stubbed instances when stubbing a method + 281) 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/should_syntax_spec.rb:255 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 282) Using the legacy should syntax #any_instance can get method objects for the fluent interface + 282) 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/should_syntax_spec.rb:248 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 283) Using the legacy should syntax #any_instance adds a class to the current space + 283) 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/should_syntax_spec.rb:231 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 284) Using the legacy should syntax #any_instance can stub a method + 284) 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/should_syntax_spec.rb:237 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 285) Using the legacy should syntax #any_instance invocation order #should_not_receive passes if only a different method is called + 285) 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/should_syntax_spec.rb:353 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 286) Using the legacy should syntax #any_instance invocation order #should_not_receive prevents confusing double-negative expressions involving `never` + 286) 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/should_syntax_spec.rb:382 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 287) Using the legacy should syntax #any_instance invocation order #should_not_receive passes if no method is called + 287) 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/should_syntax_spec.rb:349 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 288) Using the legacy should syntax #any_instance invocation order #should_not_receive fails if the method is called + 288) 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/should_syntax_spec.rb:341 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 289) 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 + 289) 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/should_syntax_spec.rb:374 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 290) Using the legacy should syntax #any_instance invocation order #should_not_receive with constraints passes if the method is called with different parameters + 290) 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/should_syntax_spec.rb:367 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 291) Using the legacy should syntax #any_instance invocation order #should_not_receive with constraints fails if the method is called with the specified parameters + 291) 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/should_syntax_spec.rb:359 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 292) Using the legacy should syntax #any_instance invocation order #stub_chain affects previously stubbed instances + 292) 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/should_syntax_spec.rb:324 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 293) Using the legacy should syntax #any_instance invocation order #stub_chain raises an error if 'stub_chain' follows 'and_return' + 293) 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/should_syntax_spec.rb:303 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 294) 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 + 294) 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/should_syntax_spec.rb:313 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 295) 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 + 295) 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/should_syntax_spec.rb:318 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 - 296) 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 + 296) 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/should_syntax_spec.rb:308 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 - 297) Using the legacy should syntax #any_instance invocation order #should_receive raises an error if 'should_receive' follows 'with' + 297) 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/should_syntax_spec.rb:335 + # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 - 298) Using the legacy should syntax #any_instance invocation order #unstub raises a MockExpectationError if the method has not been stubbed + 298) .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/should_syntax_spec.rb:443 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:16 - 299) Using the legacy should syntax #any_instance invocation order #unstub removes all stubs with the supplied method name + 299) .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/should_syntax_spec.rb:396 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:31 - 300) Using the legacy should syntax #any_instance invocation order #unstub does not remove any expectations with the same method name + 300) .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/should_syntax_spec.rb:435 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:36 - 301) Using the legacy should syntax #any_instance invocation order #unstub does not remove message expectations set directly on an instance + 301) .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/should_syntax_spec.rb:427 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:6 - 302) Using the legacy should syntax #any_instance invocation order #unstub removes stubs from sub class after Invocation when super class was originally stubbed + 302) .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/should_syntax_spec.rb:411 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:26 - 303) Using the legacy should syntax #any_instance invocation order #unstub removes stubs set directly on an instance + 303) .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/should_syntax_spec.rb:419 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:47 - 304) Using the legacy should syntax #any_instance invocation order #unstub replaces the stubbed method with the original method + 304) 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/should_syntax_spec.rb:390 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:241 - 305) Using the legacy should syntax #any_instance invocation order #unstub does not get confused about string vs symbol usage for the message + 305) 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/should_syntax_spec.rb:449 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:14 - 306) Using the legacy should syntax #any_instance invocation order #unstub removes stubs even if they have already been invoked + 306) 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/should_syntax_spec.rb:403 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:175 - 307) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_yield' + 307) 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/should_syntax_spec.rb:285 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:20 - 308) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_return' + 308) 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/should_syntax_spec.rb:277 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:190 - 309) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'with' follows 'and_raise' + 309) 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/should_syntax_spec.rb:281 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:206 - 310) Using the legacy should syntax #any_instance invocation order #stub raises an error if 'stub' follows 'with' + 310) 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/should_syntax_spec.rb:273 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:214 - 311) Using the legacy should syntax #any_instance invocation order #stub behaves as 'every instance' handles `unstub` on subclasses + 311) 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/should_syntax_spec.rb:293 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:143 - 312) Using the legacy should syntax #unstub raises a MockExpectationError if the method has not been stubbed + 312) 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/should_syntax_spec.rb:124 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:135 - 313) Using the legacy should syntax #unstub does not remove any expectations with the same method name + 313) 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/should_syntax_spec.rb:101 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:227 - 314) Using the legacy should syntax #unstub restores the correct implementations when stubbed and unstubbed on a parent and child class + 314) 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/should_syntax_spec.rb:111 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:198 - 315) Using the legacy should syntax #unstub removes all stubs with the supplied method name + 315) 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/should_syntax_spec.rb:92 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:46 - 316) Using the legacy should syntax #unstub raises an error with a useful message + 316) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:115 - 317) Using the legacy should syntax #unstub replaces the stubbed method with the original method + 317) 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/should_syntax_spec.rb:84 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:109 - 318) Using the legacy should syntax #stub can stub multiple messages using a hash + 318) 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/should_syntax_spec.rb:46 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:232 - 319) Using the legacy should syntax #stub supports options + 319) 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/should_syntax_spec.rb:30 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:222 - 320) Using the legacy should syntax #stub returns `nil` from all terminal actions to discourage further configuration + 320) 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/should_syntax_spec.rb:34 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:127 - 321) Using the legacy should syntax #stub sets up a canned response + 321) 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/should_syntax_spec.rb:40 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:60 - 322) Using the legacy should syntax #stub raises an error with a useful message + 322) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:79 - 323) Using the legacy should syntax #should_receive fails on verification if the message is not received + 323) 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/should_syntax_spec.rb:133 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:8 - 324) Using the legacy should syntax #should_receive raises an error with a useful message + 324) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:54 - 325) Using the legacy should syntax #should_receive does not fail on verification if the message is received + 325) 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/should_syntax_spec.rb:139 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:66 - 326) Using the legacy should syntax #should_receive can set a canned response + 326) 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/should_syntax_spec.rb:146 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:26 - 327) Using the legacy should syntax #should_receive with an options hash reports the file and line submitted with :expected_from + 327) 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/should_syntax_spec.rb:159 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:32 - 328) Using the legacy should syntax #should_receive with an options hash uses the message supplied with :message + 328) 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/should_syntax_spec.rb:170 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:91 - 329) Using the legacy should syntax #should_receive with an options hash uses the message supplied with :message after a similar stub + 329) 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/should_syntax_spec.rb:178 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:121 - 330) Using the legacy should syntax #should_not_receive returns a negative message expectation + 330) 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/should_syntax_spec.rb:190 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:97 - 331) Using the legacy should syntax #should_not_receive raises an error with a useful message + 331) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:103 - 332) Using the legacy should syntax #should_not_receive does not fail on verification if the message is not received + 332) 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/should_syntax_spec.rb:201 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:85 - 333) Using the legacy should syntax #should_not_receive fails when the message is received + 333) 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/should_syntax_spec.rb:194 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:73 - 334) Using the legacy should syntax #stub_chain can stub a sequence of messages + 334) 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/should_syntax_spec.rb:61 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:159 - 335) Using the legacy should syntax #stub_chain raises an error with a useful message + 335) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:40 - 336) 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 + 336) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:151 - 337) 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 + 337) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:183 - 338) 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 + 338) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:168 - 339) 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 + 339) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/stub_implementation_spec.rb:13 - 340) 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 + 340) stub implementation with variable args execs the block when called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/stub_implementation_spec.rb:21 - 341) 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 + 341) stub implementation with no args execs the block when called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/stub_implementation_spec.rb:5 - 342) 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 + 342) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/failure_notification_spec.rb:16 - 343) 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 + 343) 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/modifying_invoked_expectations_spec.rb:5 + # ./spec/rspec/mocks/failure_notification_spec.rb:24 - 344) RSpec::Mocks::Space only adds an instance once + 344) 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/space_spec.rb:120 + # ./spec/rspec/mocks/failure_notification_spec.rb:8 - 345) RSpec::Mocks::Space can be diffed in a failure when it has references to an error generator via a proxy + 345) 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/space_spec.rb:229 + # ./spec/rspec/mocks/failure_notification_spec.rb:34 - 346) RSpec::Mocks::Space tracks proxies in parent and child space separately + 346) 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/space_spec.rb:108 + # ./spec/rspec/mocks/failure_notification_spec.rb:45 - 347) RSpec::Mocks::Space raises ArgumentError with message if object is symbol + 347) 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/space_spec.rb:241 + # ./spec/rspec/mocks/failure_notification_spec.rb:58 - 348) RSpec::Mocks::Space#verify_all verifies all any_instance recorders within + 348) 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/space_spec.rb:25 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:12 - 349) RSpec::Mocks::Space#verify_all does not reset the proxies (as that should be delayed until reset_all) + 349) 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/space_spec.rb:39 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:43 - 350) RSpec::Mocks::Space#verify_all verifies all mocks within + 350) 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/space_spec.rb:9 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:133 - 351) RSpec::Mocks::Space#reset_all resets all mocks within + 351) 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/space_spec.rb:50 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:57 - 352) RSpec::Mocks::Space#reset_all allows Array#reverse to be stubbed + 352) 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/space_spec.rb:61 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:33 - 353) RSpec::Mocks::Space#registered? returns false if not registered in this or a parent space + 353) 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/space_spec.rb:176 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:87 - 354) RSpec::Mocks::Space#registered? returns true if registered in a parent space + 354) 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/space_spec.rb:171 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:20 - 355) RSpec::Mocks::Space#registered? returns true if registered in this space + 355) 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/space_spec.rb:166 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:38 - 356) RSpec::Mocks::Space#any_instance_recorder_for can still return a recorder from a parent context + 356) 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/space_spec.rb:212 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:142 - 357) RSpec::Mocks::Space#any_instance_recorder_for does not store a parent's proxy in the child space + 357) 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/space_spec.rb:219 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:49 - 358) RSpec::Mocks::Space#any_instance_recorder_for returns the recorder for the given class + 358) 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/space_spec.rb:206 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:79 - 359) RSpec::Mocks::Space#proxy_for can still return a proxy from a parent context + 359) 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/space_spec.rb:147 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:149 - 360) RSpec::Mocks::Space#proxy_for returns the proxy for the given object + 360) 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/space_spec.rb:138 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:70 - 361) RSpec::Mocks::Space#proxy_for does not store a parent's proxy in the child space + 361) 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/space_spec.rb:154 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:157 - 362) RSpec::Mocks::Space#ensure_registered can still return a proxy from a parent context + 362) 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/space_spec.rb:147 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:163 - 363) RSpec::Mocks::Space#ensure_registered returns the proxy for the given object + 363) 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/space_spec.rb:138 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:100 - 364) RSpec::Mocks::Space#ensure_registered does not store a parent's proxy in the child space + 364) 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/space_spec.rb:154 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:115 - 365) RSpec::Mocks::Space#proxies_of(klass) looks in the parent space for matching proxies + 365) 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/space_spec.rb:97 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:93 - 366) RSpec::Mocks::Space#proxies_of(klass) returns proxies + 366) 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/space_spec.rb:69 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:106 - 367) RSpec::Mocks::Space#proxies_of(klass) returns only the proxies whose object is an instance of the given class + 367) 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/space_spec.rb:86 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:200 - 368) RSpec::Mocks::Space#constant_mutator_for can still return a mutator from a parent context + 368) 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/space_spec.rb:192 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:188 - 369) RSpec::Mocks::Space#constant_mutator_for returns the mutator for the given const name + 369) 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/space_spec.rb:182 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:223 - 370) #twice passes when called twice with specified args + 370) 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/twice_counts_spec.rb:15 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:210 - 371) #twice fails when called with wrong args on the first call + 371) 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/twice_counts_spec.rb:46 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:194 - 372) #twice fails when called with wrong args on the second call + 372) 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/twice_counts_spec.rb:54 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:181 - 373) #twice passes when called twice + 373) 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/twice_counts_spec.rb:8 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:171 - 374) #twice passes when called twice with unspecified args + 374) 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/twice_counts_spec.rb:22 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:126 - 375) #twice fails fast when call count is higher than expected + 375) 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/twice_counts_spec.rb:29 + # ./spec/rspec/mocks/partial_double_spec.rb:566 - 376) #twice fails when call count is lower than expected + 376) 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/twice_counts_spec.rb:38 + # ./spec/rspec/mocks/partial_double_spec.rb:375 - 377) #twice when called with negative expectation raises an error + 377) 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/twice_counts_spec.rb:89 + # ./spec/rspec/mocks/partial_double_spec.rb:380 - 378) #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 + 378) 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/twice_counts_spec.rb:64 + # ./spec/rspec/mocks/partial_double_spec.rb:529 - 379) RSpec::Mocks::MessageExpectation has a nice string representation for a raw message expectation on a test double + 379) 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/message_expectation_string_representation_spec.rb:6 + # ./spec/rspec/mocks/partial_double_spec.rb:487 - 380) RSpec::Mocks::MessageExpectation has a nice string representation for a message expectation constrained by `with` + 380) 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/message_expectation_string_representation_spec.rb:18 + # ./spec/rspec/mocks/partial_double_spec.rb:507 - 381) RSpec::Mocks::MessageExpectation has a nice string representation for a raw message expectation on a partial double + 381) 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/message_expectation_string_representation_spec.rb:12 + # ./spec/rspec/mocks/partial_double_spec.rb:497 - 382) PartialDoubleUsingMocksDirectly restores the original method if it existed + 382) 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/partial_double_using_mocks_directly_spec.rb:55 + # ./spec/rspec/mocks/partial_double_spec.rb:398 - 383) PartialDoubleUsingMocksDirectly fails when expected message is not received + 383) 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/partial_double_using_mocks_directly_spec.rb:28 + # ./spec/rspec/mocks/partial_double_spec.rb:491 - 384) PartialDoubleUsingMocksDirectly passes when expected message is received + 384) when verify_partial_doubles configuration option is set temporarily supressing partial doubles does not affect normal verifying doubles # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:43 + # ./spec/rspec/mocks/partial_double_spec.rb:413 - 385) PartialDoubleUsingMocksDirectly passes when message is received with correct args + 385) 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/partial_double_using_mocks_directly_spec.rb:49 + # ./spec/rspec/mocks/partial_double_spec.rb:432 - 386) PartialDoubleUsingMocksDirectly fails when message is received with incorrect args + 386) 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/partial_double_using_mocks_directly_spec.rb:35 + # ./spec/rspec/mocks/partial_double_spec.rb:517 - 387) PartialDoubleUsingMocksDirectly with an instance method handled by method_missing restores the original behavior + 387) 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/partial_double_using_mocks_directly_spec.rb:64 + # ./spec/rspec/mocks/partial_double_spec.rb:421 - 388) PartialDoubleUsingMocksDirectly with a class method handled by method_missing restores the original behavior + 388) 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/partial_double_using_mocks_directly_spec.rb:74 + # ./spec/rspec/mocks/partial_double_spec.rb:556 - 389) negative expectation failure allow_any_instance_of(...).to_not receive_messages(:a => 1, :b => 2) + 389) when verify_partial_doubles configuration option is set allows private methods to be expected on any_instance expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:132 + # ./spec/rspec/mocks/partial_double_spec.rb:512 - 390) negative expectation failure expect_any_instance_of(...).to_not receive_messages(:a => 1, :b => 2) + 390) when verify_partial_doubles configuration option is set avoids deadlocks when a proxy is accessed from within a `before_verifying_doubles` callback # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:146 + # ./spec/rspec/mocks/partial_double_spec.rb:443 - 391) negative expectation failure expect(...).to_not receive_messages(:a => 1, :b => 2) + 391) when verify_partial_doubles configuration option is set does not allow a non-existing method to be called on any_instance # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:139 + # ./spec/rspec/mocks/partial_double_spec.rb:541 - 392) negative expectation failure allow(...).to_not receive_messages(:a => 1, :b => 2) + 392) when verify_partial_doubles configuration option is set can be temporarily supressed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:125 + # ./spec/rspec/mocks/partial_double_spec.rb:385 - 393) Supporting Rails monkey patches works when Rails has monkey patched #with + 393) 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/integration/rails_support_spec.rb:10 + # ./spec/rspec/mocks/partial_double_spec.rb:547 - 394) Supporting Rails monkey patches works mocking any instance when Rails has monkey patched #with + 394) 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/integration/rails_support_spec.rb:37 + # ./spec/rspec/mocks/partial_double_spec.rb:572 - 395) #null_object? defaults to false + 395) 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/null_object_double_spec.rb:120 + # ./spec/rspec/mocks/partial_double_spec.rb:502 - 396) a double declaration with a block handed to: allow(...).to receive forwards all given args to the block, even when it receives a block + 396) 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/block_return_value_spec.rb:27 + # ./spec/rspec/mocks/partial_double_spec.rb:582 - 397) a double declaration with a block handed to: allow(...).to receive returns the value of executing the block + 397) 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/block_return_value_spec.rb:19 + # ./spec/rspec/mocks/partial_double_spec.rb:626 - 398) a double declaration with a block handed to: once returns the value of executing the block + 398) 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/block_return_value_spec.rb:53 + # ./spec/rspec/mocks/partial_double_spec.rb:611 - 399) a double declaration with a block handed to: with returns the value of executing the block + 399) 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/block_return_value_spec.rb:38 + # ./spec/rspec/mocks/partial_double_spec.rb:599 - 400) a double declaration with a block handed to: with returns the value of executing the block with given argument + 400) 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/block_return_value_spec.rb:44 + # ./spec/rspec/mocks/partial_double_spec.rb:588 - 401) a double declaration with a block handed to: ordered returns the value of executing the block + 401) 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/block_return_value_spec.rb:62 + # ./spec/rspec/mocks/partial_double_spec.rb:640 - 402) a double declaration with a block handed to: times returns the value of executing the block + 402) 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/block_return_value_spec.rb:71 + # ./spec/rspec/mocks/partial_double_spec.rb:462 - 403) a double declaration with a block handed to: expect(...).to receive returns the value of executing the block + 403) 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/block_return_value_spec.rb:3 + # ./spec/rspec/mocks/partial_double_spec.rb:474 - 404) a double declaration with a block handed to: expect(...).to receive works when a multi-return stub has already been set + 404) RSpec::Mocks::Double#and_yield when the method double has been constrained by `with` uses the default stub if the provided args do not match # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/block_return_value_spec.rb:9 + # ./spec/rspec/mocks/and_yield_spec.rb:7 - 405) a double declaration with a block handed to: twice returns the value of executing the block + 405) RSpec::Mocks::Double#and_yield with eval context as block argument evaluates the supplied block as it is read # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/block_return_value_spec.rb:53 + # ./spec/rspec/mocks/and_yield_spec.rb:21 - 406) RSpec::Mocks::InstanceMethodStasher stashes the current implementation of an instance method so it can be temporarily replaced + 406) 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/instance_method_stasher_spec.rb:18 + # ./spec/rspec/mocks/and_yield_spec.rb:29 - 407) RSpec::Mocks::InstanceMethodStasher undefines the original method + 407) 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/instance_method_stasher_spec.rb:67 + # ./spec/rspec/mocks/and_yield_spec.rb:35 - 408) RSpec::Mocks::InstanceMethodStasher does not unnecessarily create obfuscated aliased methods + 408) 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/instance_method_stasher_spec.rb:58 + # ./spec/rspec/mocks/and_yield_spec.rb:52 - 409) RSpec::Mocks::InstanceMethodStasher stashes private instance methods + 409) 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/instance_method_stasher_spec.rb:32 + # ./spec/rspec/mocks/and_yield_spec.rb:66 - 410) RSpec::Mocks::InstanceMethodStasher only stashes methods directly defined on the given class, not its ancestors + 410) 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/instance_method_stasher_spec.rb:45 + # ./spec/rspec/mocks/and_yield_spec.rb:139 - 411) #any_instance invocation order when stubbing allows chaining 'and_yield' + 411) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments can yield to a block that uses `super` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:71 + # ./spec/rspec/mocks/and_yield_spec.rb:128 - 412) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_throw' + 412) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments passes when expectations set on the eval context and yielded arguments are met # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:67 + # ./spec/rspec/mocks/and_yield_spec.rb:84 - 413) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_raise' + 413) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments that are optional yields given argument when the argument is given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:59 + # ./spec/rspec/mocks/and_yield_spec.rb:114 - 414) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_yield' + 414) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments that are optional yields the default argument when the argument is not given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:63 + # ./spec/rspec/mocks/and_yield_spec.rb:103 - 415) #any_instance invocation order when stubbing raises an error if 'with' follows 'and_return' + 415) 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:55 + # ./spec/rspec/mocks/configuration_spec.rb:12 - 416) #any_instance invocation order when setting a message expectation raises an error if 'with' follows 'and_return' + 416) 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:78 + # ./spec/rspec/mocks/configuration_spec.rb:36 - 417) #any_instance invocation order when setting a message expectation raises an error if 'with' follows 'and_raise' + 417) 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:83 + # ./spec/rspec/mocks/configuration_spec.rb:58 - 418) #any_instance setting a message expectation works with a BasicObject subclass that mixes in Kernel + 418) 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:782 + # ./spec/rspec/mocks/configuration_spec.rb:66 - 419) #any_instance setting a message expectation handles inspect accessing expected methods + 419) 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:523 + # ./spec/rspec/mocks/configuration_spec.rb:50 - 420) #any_instance setting a message expectation does not set the expectation on every instance + 420) 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:547 + # ./spec/rspec/mocks/configuration_spec.rb:62 - 421) #any_instance setting a message expectation affects previously stubbed instances + 421) 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:538 + # ./spec/rspec/mocks/configuration_spec.rb:54 - 422) #any_instance setting a message expectation does not modify the return value of stubs set on an instance of a subclass + 422) 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:563 + # ./spec/rspec/mocks/configuration_spec.rb:76 - 423) #any_instance setting a message expectation properly notifies any instance recorders at multiple levels of hierarchy when a directly stubbed object receives a message + 423) 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:572 + # ./spec/rspec/mocks/configuration_spec.rb:92 - 424) #any_instance setting a message expectation does not modify the return value of stubs set on an instance + 424) 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:555 + # ./spec/rspec/mocks/configuration_spec.rb:80 - 425) #any_instance setting a message expectation properly notifies any instance recorders when they are created after the object's mock proxy + 425) 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:585 + # ./spec/rspec/mocks/configuration_spec.rb:84 - 426) #any_instance setting a message expectation works with a SimpleDelegator subclass + 426) 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:792 + # ./spec/rspec/mocks/configuration_spec.rb:97 - 427) #any_instance setting a message expectation when the class has an included module allows mocking a method that is defined on the module + 427) 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:612 + # ./spec/rspec/mocks/configuration_spec.rb:88 - 428) #any_instance setting a message expectation message count the 'at_least(n)' constraint passes for n invocations where n > 3 + 428) 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:973 + # ./spec/rspec/mocks/configuration_spec.rb:119 - 429) #any_instance setting a message expectation message count the 'at_least(n)' constraint fails for n invocations where n < 3 + 429) 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:964 + # ./spec/rspec/mocks/configuration_spec.rb:111 - 430) #any_instance setting a message expectation message count the 'at_least(n)' constraint passes for n invocations where n = 3 + 430) 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:958 + # ./spec/rspec/mocks/configuration_spec.rb:107 - 431) #any_instance setting a message expectation message count the 'never' constraint fails on the first invocation + 431) 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:1008 + # ./spec/rspec/mocks/configuration_spec.rb:115 - 432) #any_instance setting a message expectation message count the 'never' constraint passes for 0 invocations + 432) 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:1003 + # ./spec/rspec/mocks/configuration_spec.rb:123 - 433) #any_instance setting a message expectation message count the 'never' constraint when combined with other expectations passes when the other expectations are met + 433) 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:1016 + # ./spec/rspec/mocks/configuration_spec.rb:36 - 434) #any_instance setting a message expectation message count the 'never' constraint when combined with other expectations fails when the other expectations are not met + 434) 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:1022 + # ./spec/rspec/mocks/configuration_spec.rb:115 - 435) #any_instance setting a message expectation message count the 'at_most(n)' constraint fails for n invocations where n > 3 + 435) 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:993 + # ./spec/rspec/mocks/configuration_spec.rb:119 - 436) #any_instance setting a message expectation message count the 'at_most(n)' constraint passes for n invocations where n < 3 + 436) 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:987 + # ./spec/rspec/mocks/configuration_spec.rb:107 - 437) #any_instance setting a message expectation message count the 'at_most(n)' constraint passes for n invocations where n = 3 + 437) 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:981 + # ./spec/rspec/mocks/configuration_spec.rb:111 - 438) #any_instance setting a message expectation message count the 'thrice' constraint fails for less than three invocations + 438) 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:906 + # ./spec/rspec/mocks/configuration_spec.rb:123 - 439) #any_instance setting a message expectation message count the 'thrice' constraint passes for three invocations + 439) 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:892 + # ./spec/rspec/mocks/configuration_spec.rb:50 - 440) #any_instance setting a message expectation message count the 'thrice' constraint fails for more than three invocations + 440) 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:898 + # ./spec/rspec/mocks/configuration_spec.rb:58 - 441) #any_instance setting a message expectation message count the 'exactly(n)' constraint passes for n invocations where n = 3 + 441) 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:933 + # ./spec/rspec/mocks/configuration_spec.rb:66 - 442) #any_instance setting a message expectation message count the 'exactly(n)' constraint fails for n invocations where n < 3 + 442) 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:939 + # ./spec/rspec/mocks/configuration_spec.rb:62 - 443) #any_instance setting a message expectation message count the 'exactly(n)' constraint fails for n invocations where n > 3 + 443) 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:948 + # ./spec/rspec/mocks/configuration_spec.rb:54 - 444) #any_instance setting a message expectation message count the 'exactly(n)' constraint time alias fails for 2 invocations + 444) 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:924 + # ./spec/rspec/mocks/configuration_spec.rb:88 - 445) #any_instance setting a message expectation message count the 'exactly(n)' constraint time alias passes for 1 invocation + 445) 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:918 + # ./spec/rspec/mocks/configuration_spec.rb:97 - 446) #any_instance setting a message expectation message count the 'once' constraint fails for more than one invocation + 446) 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:864 + # ./spec/rspec/mocks/configuration_spec.rb:76 - 447) #any_instance setting a message expectation message count the 'once' constraint fails when an instance is declared but there are no invocations + 447) 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:856 + # ./spec/rspec/mocks/configuration_spec.rb:84 - 448) #any_instance setting a message expectation message count the 'once' constraint passes for one invocation + 448) 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:844 + # ./spec/rspec/mocks/configuration_spec.rb:80 - 449) #any_instance setting a message expectation message count the 'once' constraint fails when no instances are declared + 449) 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:849 + # ./spec/rspec/mocks/configuration_spec.rb:92 - 450) #any_instance setting a message expectation message count the 'twice' constraint passes for two invocations + 450) 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:875 + # ./spec/rspec/mocks/configuration_spec.rb:177 - 451) #any_instance setting a message expectation message count the 'twice' constraint fails for more than two invocations + 451) 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/any_instance_spec.rb:881 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:74 - 452) #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 + 452) 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/any_instance_spec.rb:684 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:81 - 453) #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 + 453) 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/any_instance_spec.rb:676 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:89 - 454) #any_instance setting a message expectation with an expectation is set on a method which does not exist returns the expected value + 454) 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/any_instance_spec.rb:656 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:96 - 455) #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 + 455) 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/any_instance_spec.rb:661 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:112 - 456) #any_instance setting a message expectation with an expectation is set on a method which does not exist fails if no instance is created + 456) 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/any_instance_spec.rb:669 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 - 457) #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 + 457) 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/any_instance_spec.rb:713 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 - 458) #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 + 458) #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/any_instance_spec.rb:724 + # ./spec/rspec/mocks/twice_counts_spec.rb:22 - 459) #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 + 459) #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/any_instance_spec.rb:694 + # ./spec/rspec/mocks/twice_counts_spec.rb:15 - 460) #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 + 460) #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/any_instance_spec.rb:700 + # ./spec/rspec/mocks/twice_counts_spec.rb:8 - 461) #any_instance setting a message expectation with an expectation is set on a method that exists fails if no instance is created + 461) #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/any_instance_spec.rb:747 + # ./spec/rspec/mocks/twice_counts_spec.rb:46 - 462) #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 + 462) #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/any_instance_spec.rb:739 + # ./spec/rspec/mocks/twice_counts_spec.rb:38 - 463) #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 + 463) #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/any_instance_spec.rb:754 + # ./spec/rspec/mocks/twice_counts_spec.rb:54 - 464) #any_instance setting a message expectation with an expectation is set on a method that exists returns the expected value + 464) #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/any_instance_spec.rb:734 + # ./spec/rspec/mocks/twice_counts_spec.rb:29 - 465) #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 + 465) #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/any_instance_spec.rb:763 + # ./spec/rspec/mocks/twice_counts_spec.rb:64 - 466) #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 + 466) #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/any_instance_spec.rb:769 + # ./spec/rspec/mocks/twice_counts_spec.rb:89 - 467) #any_instance setting a message expectation when an instance has been directly stubbed fails when a second instance to receive the message + 467) 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/any_instance_spec.rb:622 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:637 - 468) #any_instance setting a message expectation when the class has a prepended module prevents mocking a method that is defined on the prepended module + 468) 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/any_instance_spec.rb:602 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:70 - 469) #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 + 469) 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/any_instance_spec.rb:595 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:100 - 470) #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 + 470) 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/any_instance_spec.rb:645 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:188 - 471) #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 + 471) 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/any_instance_spec.rb:636 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:43 - 472) #any_instance setting a message expectation with argument matching returns the expected value when arguments match + 472) 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/any_instance_spec.rb:807 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:90 - 473) #any_instance setting a message expectation with argument matching is not affected by the invocation of existing methods on other instances + 473) 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/any_instance_spec.rb:824 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:156 - 474) #any_instance setting a message expectation with argument matching fails when arguments do not match + 474) 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/any_instance_spec.rb:831 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:183 - 475) #any_instance setting a message expectation with argument matching fails when the arguments match but different instances are used + 475) 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/any_instance_spec.rb:813 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:80 - 476) #any_instance unstubbing using `and_call_original` removes any stubs set directly on an instance + 476) 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/any_instance_spec.rb:436 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:146 - 477) #any_instance unstubbing using `and_call_original` removes stubs even if they have already been invoked + 477) 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/any_instance_spec.rb:418 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:62 - 478) #any_instance unstubbing using `and_call_original` replaces the stubbed method with the original method + 478) 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/any_instance_spec.rb:405 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:111 - 479) #any_instance unstubbing using `and_call_original` removes all stubs with the supplied method name + 479) 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/any_instance_spec.rb:411 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:35 - 480) #any_instance unstubbing using `and_call_original` does not get confused about string vs symbol usage for the message + 480) 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/any_instance_spec.rb:452 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:134 - 481) #any_instance unstubbing using `and_call_original` removes stubs from sub class after Invocation when super class was originally stubbed + 481) 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/any_instance_spec.rb:427 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:195 - 482) #any_instance unstubbing using `and_call_original` does not remove any expectations with the same method name + 482) 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/any_instance_spec.rb:444 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:30 - 483) #any_instance when stubbing does not suppress an exception when a method that doesn't exist is invoked + 483) 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/any_instance_spec.rb:91 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:54 - 484) #any_instance when stubbing with #and_raise can stub a method that exists + 484) 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/any_instance_spec.rb:316 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:25 - 485) #any_instance when stubbing with #and_raise can stub a method that doesn't exist + 485) 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/any_instance_spec.rb:311 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:124 - 486) #any_instance when stubbing behaves as 'every instance' stubs every instance in the spec + 486) 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/any_instance_spec.rb:138 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:398 - 487) #any_instance when stubbing behaves as 'every instance' handles method restoration on subclasses + 487) 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/any_instance_spec.rb:172 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:389 - 488) #any_instance when stubbing behaves as 'every instance' handles stubbing on super and subclasses + 488) 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/any_instance_spec.rb:157 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:381 - 489) #any_instance when stubbing behaves as 'every instance' handles freeze and duplication correctly + 489) 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/any_instance_spec.rb:150 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:430 - 490) #any_instance when stubbing behaves as 'every instance' stubs instance created before any_instance was called + 490) 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/any_instance_spec.rb:144 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:420 - 491) #any_instance when stubbing behaves as 'every instance' handles stubbing on a sub class when a super class is stubbed differently + 491) 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/any_instance_spec.rb:163 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:411 - 492) #any_instance when stubbing with multiple stubs returns the same value for calls on different instances + 492) 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/any_instance_spec.rb:254 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:343 - 493) #any_instance when stubbing with multiple stubs stubs a method + 493) 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/any_instance_spec.rb:248 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:347 - 494) #any_instance when stubbing with #and_yield yields the value specified + 494) 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/any_instance_spec.rb:291 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:339 - 495) #any_instance when stubbing with a block returns the same computed value for calls on different instances + 495) 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/any_instance_spec.rb:340 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:369 - 496) #any_instance when stubbing with a block stubs a method + 496) 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/any_instance_spec.rb:335 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:361 - 497) #any_instance when stubbing with #and_call_original and competing #with can combine and_call_original, with, and_return + 497) 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/any_instance_spec.rb:301 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:355 - 498) #any_instance when stubbing with #and_throw can stub a method that exists + 498) 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/any_instance_spec.rb:328 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:215 - 499) #any_instance when stubbing with #and_throw can stub a method that doesn't exist + 499) 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/any_instance_spec.rb:323 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:231 - 500) #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 + 500) 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/any_instance_spec.rb:203 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:221 - 501) #any_instance when stubbing when the class has a prepended module prevents stubbing a method that is defined on the prepended module + 501) 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/any_instance_spec.rb:188 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:239 - 502) #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 + 502) 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/any_instance_spec.rb:196 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:273 - 503) #any_instance when stubbing when the class has a prepended module allows stubbing a method that is not defined on the prepended module + 503) 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/any_instance_spec.rb:181 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:264 - 504) #any_instance when stubbing when partially mocking objects resets partially mocked objects correctly + 504) 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/any_instance_spec.rb:349 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:247 - 505) #any_instance when stubbing with #and_return returns the same object for calls on different instances + 505) 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/any_instance_spec.rb:271 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:285 - 506) #any_instance when stubbing with #and_return can change how instances responds in the middle of an example + 506) 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/any_instance_spec.rb:278 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:331 - 507) #any_instance when stubbing with #and_return can stub a method that doesn't exist + 507) 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/any_instance_spec.rb:261 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:327 - 508) #any_instance when stubbing with #and_return can stub a method that exists + 508) 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/any_instance_spec.rb:266 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:323 - 509) #any_instance when stubbing core ruby objects works with the non-standard constructor {} + 509) 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/any_instance_spec.rb:375 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:301 - 510) #any_instance when stubbing core ruby objects works with the non-standard constructor [] + 510) 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/any_instance_spec.rb:370 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:315 - 511) #any_instance when stubbing core ruby objects works with the non-standard constructor '' + 511) 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/any_instance_spec.rb:385 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:297 - 512) #any_instance when stubbing core ruby objects works with the non-standard constructor class + 512) 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/any_instance_spec.rb:396 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:447 - 513) #any_instance when stubbing core ruby objects works uniformly across *everything* + 513) 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/any_instance_spec.rb:365 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:517 - 514) #any_instance when stubbing core ruby objects works with the non-standard constructor module + 514) 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/any_instance_spec.rb:390 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:455 - 515) #any_instance when stubbing core ruby objects works with the non-standard constructor "" + 515) 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/any_instance_spec.rb:380 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:484 - 516) #any_instance when stubbing aliased methods tracks aliased method calls + 516) 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/any_instance_spec.rb:213 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:533 - 517) #any_instance when stubbing multiple methods allows multiple methods to be stubbed in a single invocation + 517) 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/any_instance_spec.rb:97 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:538 - 518) #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 + 518) 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/any_instance_spec.rb:120 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:555 - 519) #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 + 519) 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/any_instance_spec.rb:127 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:560 - 520) #any_instance when stubbing multiple methods allows a chain of methods to be stubbed using #receive_message_chain given symbols representing the methods + 520) 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/any_instance_spec.rb:105 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:174 - 521) #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 + 521) 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/any_instance_spec.rb:110 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:169 - 522) #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 + 522) 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/any_instance_spec.rb:115 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 523) #any_instance when stubbing with argument matching returns the stubbed value when arguments match + 523) 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/any_instance_spec.rb:229 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 524) #any_instance when stubbing with argument matching fails the spec with an expectation error when the arguments do not match + 524) 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/any_instance_spec.rb:235 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 525) #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 + 525) 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/any_instance_spec.rb:1240 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:576 - 526) #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 + 526) 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/any_instance_spec.rb:1231 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:571 - 527) #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 + 527) 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/any_instance_spec.rb:1213 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 528) #any_instance passing the receiver to the implementation block when configured to pass the instance an any instance expectation doesn't effect with + 528) 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/any_instance_spec.rb:1207 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 529) #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 + 529) 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/any_instance_spec.rb:1185 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:595 - 530) #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 + 530) 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/any_instance_spec.rb:1194 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:584 - 531) #any_instance when a class overrides Object#method mocks the method correctly + 531) 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/any_instance_spec.rb:1305 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 532) #any_instance when a class overrides Object#method stubs the method correctly + 532) 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/any_instance_spec.rb:1300 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:609 - 533) #any_instance when resetting post-verification adds an instance to the current space when stubbed method is invoked + 533) 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/any_instance_spec.rb:1169 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:604 - 534) #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 + 534) 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/any_instance_spec.rb:1049 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:653 - 535) #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 + 535) 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/any_instance_spec.rb:1056 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:629 - 536) #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 + 536) 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/any_instance_spec.rb:1065 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:645 - 537) #any_instance when resetting post-verification existing method with stubbing private methods restores a stubbed private method after the spec is run + 537) 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/any_instance_spec.rb:1087 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:43 - 538) #any_instance when resetting post-verification existing method with stubbing private methods ensures that the restored method behaves as it originally did + 538) 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/any_instance_spec.rb:1091 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:76 - 539) #any_instance when resetting post-verification existing method with stubbing private methods cleans up the backed up method + 539) 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/any_instance_spec.rb:1083 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:123 - 540) #any_instance when resetting post-verification existing method with expectations ensures that the next spec does not see that expectation + 540) 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/any_instance_spec.rb:1147 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:108 - 541) #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 + 541) 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/any_instance_spec.rb:1136 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:33 - 542) #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 + 542) 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/any_instance_spec.rb:1141 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:38 - 543) #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 + 543) 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/any_instance_spec.rb:1121 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:64 - 544) #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 + 544) 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/any_instance_spec.rb:1126 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:50 - 545) #any_instance when resetting post-verification existing method with expectations private methods restores a stubbed private method after the spec is run + 545) 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/any_instance_spec.rb:1110 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:99 - 546) #any_instance when resetting post-verification existing method with expectations private methods cleans up the backed up method + 546) 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/any_instance_spec.rb:1106 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:115 - 547) #any_instance when resetting post-verification existing method with expectations private methods ensures that the restored method behaves as it originally did + 547) 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/any_instance_spec.rb:1114 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:57 - 548) #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 + 548) 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/any_instance_spec.rb:1159 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:81 - 549) #any_instance when used after the test has finished restores the original behavior of a stubbed method + 549) 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/any_instance_spec.rb:1312 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:71 - 550) #any_instance when used after the test has finished does not restore a stubbed method not originally implemented in the class + 550) 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/any_instance_spec.rb:1323 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:92 - 551) #any_instance when used after the test has finished restores the original behaviour, even if the expectation fails + 551) 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/any_instance_spec.rb:1331 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:12 - 552) #any_instance chain yields the value specified + 552) 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/any_instance_spec.rb:47 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:20 - 553) #any_instance expect_any_instance_of(...).not_to receive fails if the method is called + 553) 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/any_instance_spec.rb:460 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:135 - 554) #any_instance expect_any_instance_of(...).not_to receive affects previously stubbed instances + 554) 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/any_instance_spec.rb:477 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:154 - 555) #any_instance expect_any_instance_of(...).not_to receive passes if no method is called + 555) 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/any_instance_spec.rb:468 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:142 - 556) #any_instance expect_any_instance_of(...).not_to receive passes if only a different method is called + 556) 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/any_instance_spec.rb:472 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:167 - 557) #any_instance expect_any_instance_of(...).not_to receive prevents confusing double-negative expressions involving `never` + 557) 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/any_instance_spec.rb:512 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:217 - 558) #any_instance expect_any_instance_of(...).not_to receive when used in combination with should_receive passes if only the expected message is received + 558) 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/any_instance_spec.rb:504 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:211 - 559) #any_instance expect_any_instance_of(...).not_to receive with constraints fails if the method is called with the specified parameters + 559) 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_spec.rb:490 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:197 - 560) #any_instance expect_any_instance_of(...).not_to receive with constraints passes if the method is called with different parameters + 560) 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_spec.rb:497 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:193 - 561) #any_instance when directed at a method defined on a superclass mocks the method correctly + 561) 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/any_instance_spec.rb:1286 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:184 - 562) #any_instance when directed at a method defined on a superclass stubs the method correctly + 562) 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/any_instance_spec.rb:1281 + # ./spec/rspec/mocks/and_call_original_spec.rb:344 - 563) #any_instance when used in conjunction with a `dup` doesn't bomb if the object doesn't support `dup` + 563) 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/any_instance_spec.rb:1259 + # ./spec/rspec/mocks/and_call_original_spec.rb:349 - 564) #any_instance when used in conjunction with a `dup` doesn't cause an infinite loop + 564) and_call_original on a pure test double raises an error even if the double object responds to the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/any_instance_spec.rb:1250 + # ./spec/rspec/mocks/and_call_original_spec.rb:362 - 565) #any_instance when used in conjunction with a `dup` doesn't fail when dup accepts parameters + 565) 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/any_instance_spec.rb:1266 + # ./spec/rspec/mocks/and_call_original_spec.rb:225 - 566) 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) + 566) 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/error_generator_spec.rb:15 + # ./spec/rspec/mocks/and_call_original_spec.rb:207 - 567) RSpec::Mocks::ErrorGenerator formatting arguments formats time objects with increased precision + 567) 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/error_generator_spec.rb:31 + # ./spec/rspec/mocks/and_call_original_spec.rb:65 - 568) RSpec::Mocks::ErrorGenerator formatting arguments on matcher objects on default method stub error message display starts in new line + 568) 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/error_generator_spec.rb:79 + # ./spec/rspec/mocks/and_call_original_spec.rb:237 - 569) RSpec::Mocks::ErrorGenerator formatting arguments on matcher objects that define description uses the object's description + 569) 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/error_generator_spec.rb:52 + # ./spec/rspec/mocks/and_call_original_spec.rb:111 - 570) RSpec::Mocks::ErrorGenerator formatting arguments on matcher objects that do not define description does not use the object's description + 570) 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/error_generator_spec.rb:62 + # ./spec/rspec/mocks/and_call_original_spec.rb:117 - 571) RSpec::Mocks::ErrorGenerator formatting arguments on non-matcher objects that define #description does not use the object's description + 571) 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/error_generator_spec.rb:42 + # ./spec/rspec/mocks/and_call_original_spec.rb:124 - 572) A method stub instructs a class object to respond_to the message + 572) 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/stub_spec.rb:44 + # ./spec/rspec/mocks/and_call_original_spec.rb:218 - 573) A method stub yields multiple times with multiple calls to and_yield + 573) 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/stub_spec.rb:470 + # ./spec/rspec/mocks/and_call_original_spec.rb:213 - 574) A method stub ignores when message is received with args + 574) 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/stub_spec.rb:57 + # ./spec/rspec/mocks/and_call_original_spec.rb:133 - 575) A method stub handles multiple stubbed methods + 575) 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/stub_spec.rb:72 + # ./spec/rspec/mocks/and_call_original_spec.rb:70 - 576) A method stub ignores when expected message is received with no args + 576) 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/stub_spec.rb:49 + # ./spec/rspec/mocks/and_call_original_spec.rb:188 - 577) A method stub is retained when stubbed object is `clone`d + 577) 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/stub_spec.rb:78 + # ./spec/rspec/mocks/and_call_original_spec.rb:76 - 578) A method stub overrides a pre-existing method + 578) 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/stub_spec.rb:496 + # ./spec/rspec/mocks/and_call_original_spec.rb:82 - 579) A method stub yields a specified object + 579) 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/stub_spec.rb:462 + # ./spec/rspec/mocks/and_call_original_spec.rb:90 - 580) A method stub ignores when expected message is not received + 580) 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/stub_spec.rb:65 + # ./spec/rspec/mocks/and_call_original_spec.rb:271 - 581) A method stub throws with argument when told to + 581) 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/stub_spec.rb:491 + # ./spec/rspec/mocks/and_call_original_spec.rb:266 - 582) A method stub yields a specified object and return another specified object + 582) 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/stub_spec.rb:479 + # ./spec/rspec/mocks/and_call_original_spec.rb:312 - 583) A method stub is cleared when stubbed object when `dup`ed + 583) 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/stub_spec.rb:83 + # ./spec/rspec/mocks/and_call_original_spec.rb:295 - 584) A method stub keeps returning last value in consecutive calls + 584) 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/stub_spec.rb:453 + # ./spec/rspec/mocks/and_call_original_spec.rb:305 - 585) A method stub overrides a pre-existing stub + 585) 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/stub_spec.rb:501 + # ./spec/rspec/mocks/and_call_original_spec.rb:300 - 586) A method stub remains private when it stubs a private class method + 586) 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/stub_spec.rb:93 + # ./spec/rspec/mocks/and_call_original_spec.rb:103 - 587) A method stub allows a stub and an expectation + 587) 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/stub_spec.rb:507 + # ./spec/rspec/mocks/and_call_original_spec.rb:97 - 588) A method stub returns values in order to consecutive calls + 588) 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/stub_spec.rb:446 + # ./spec/rspec/mocks/and_call_original_spec.rb:54 - 589) A method stub remains private when it stubs a private instance method + 589) 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/stub_spec.rb:88 + # ./spec/rspec/mocks/and_call_original_spec.rb:149 - 590) A method stub instructs an instance to respond_to the message + 590) 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/stub_spec.rb:39 + # ./spec/rspec/mocks/and_call_original_spec.rb:168 - 591) A method stub throws when told to + 591) 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/stub_spec.rb:486 + # ./spec/rspec/mocks/and_call_original_spec.rb:159 - 592) A method stub stubbing with prepend handles stubbing prepended methods + 592) 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/stub_spec.rb:143 + # ./spec/rspec/mocks/and_call_original_spec.rb:143 - 593) A method stub stubbing with prepend handles stubbing prepended methods on a class's singleton class + 593) 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/stub_spec.rb:151 + # ./spec/rspec/mocks/and_call_original_spec.rb:176 - 594) A method stub stubbing with prepend handles stubbing prepended methods on an object's singleton class + 594) 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/stub_spec.rb:158 + # ./spec/rspec/mocks/and_call_original_spec.rb:182 - 595) A method stub stubbing with prepend reuses our prepend module so as not to keep mutating the ancestors + 595) 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/stub_spec.rb:199 + # ./spec/rspec/mocks/and_call_original_spec.rb:154 - 596) A method stub stubbing with prepend does not unnecessarily prepend a module when stubbing a method on a module extended onto itself + 596) 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/stub_spec.rb:178 + # ./spec/rspec/mocks/and_call_original_spec.rb:195 - 597) A method stub stubbing with prepend does not unnecessarily prepend a module when the prepended module does not override the stubbed method + 597) 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/stub_spec.rb:168 + # ./spec/rspec/mocks/and_call_original_spec.rb:46 - 598) A method stub stubbing with prepend does not unnecessarily prepend a module when the module was included + 598) 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/stub_spec.rb:189 + # ./spec/support/before_all_shared_example_group.rb:11 - 599) A method stub stubbing with prepend when a module with a method override is prepended after reset can still be stubbed again + 599) 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/stub_spec.rb:231 + # ./spec/support/before_all_shared_example_group.rb:11 - 600) 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 + 600) 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/stub_spec.rb:214 + # ./spec/support/before_all_shared_example_group.rb:11 - 601) A method stub using `and_return` returns declared value when message is received + 601) 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/stub_spec.rb:32 + # ./spec/support/before_all_shared_example_group.rb:11 - 602) A method stub using `with` determines which value is returned + 602) 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/stub_spec.rb:99 + # ./spec/rspec/mocks/before_all_spec.rb:30 - 603) A method stub using `with` allows differing arities + 603) 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/stub_spec.rb:107 + # ./spec/support/before_all_shared_example_group.rb:11 - 604) A method stub #rspec_reset restores existing singleton methods with the appropriate context + 604) 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/stub_spec.rb:266 + # ./spec/support/before_all_shared_example_group.rb:11 - 605) A method stub #rspec_reset restores existing private class methods + 605) 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/stub_spec.rb:318 + # ./spec/rspec/mocks/before_all_spec.rb:10 - 606) A method stub #rspec_reset restores existing private instance methods + 606) 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/stub_spec.rb:285 + # ./spec/support/before_all_shared_example_group.rb:11 - 607) A method stub #rspec_reset correctly restores the visibility of methods whose visibility has been tweaked on the singleton class + 607) 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/stub_spec.rb:334 + # ./spec/support/before_all_shared_example_group.rb:11 - 608) A method stub #rspec_reset restores existing aliased module_function methods + 608) 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/stub_spec.rb:299 + # ./spec/rspec/mocks/formatting_spec.rb:94 - 609) A method stub #rspec_reset correctly handles stubbing inherited mixed in class methods + 609) 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/stub_spec.rb:353 + # ./spec/rspec/mocks/formatting_spec.rb:59 - 610) A method stub #rspec_reset restores existing class methods + 610) 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/stub_spec.rb:292 + # ./spec/rspec/mocks/formatting_spec.rb:48 - 611) A method stub #rspec_reset does not remove existing methods that have been stubbed twice + 611) 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/stub_spec.rb:325 + # ./spec/rspec/mocks/formatting_spec.rb:54 - 612) A method stub #rspec_reset removes stubbed methods that didn't exist + 612) 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/stub_spec.rb:253 + # ./spec/rspec/mocks/formatting_spec.rb:39 - 613) A method stub #rspec_reset restores existing instance methods + 613) 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/stub_spec.rb:259 + # ./spec/rspec/mocks/formatting_spec.rb:24 - 614) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores prepended instance methods + 614) 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/stub_spec.rb:400 + # ./spec/rspec/mocks/formatting_spec.rb:28 - 615) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores prepended class methods + 615) 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/stub_spec.rb:416 + # ./spec/rspec/mocks/formatting_spec.rb:34 - 616) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores prepended object singleton methods + 616) 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/stub_spec.rb:431 + # ./spec/rspec/mocks/formatting_spec.rb:82 - 617) A method stub #rspec_reset with a prepended module (ruby 2.0.0+) restores non-prepended instance methods + 617) 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/stub_spec.rb:408 + # ./spec/rspec/mocks/formatting_spec.rb:88 - 618) A method stub when the stubbed method is called does not call any methods on the passed args, since that could mutate them + 618) 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/stub_spec.rb:117 + # ./spec/rspec/mocks/formatting_spec.rb:74 - 619) Using a reopened file object as a partial mock allows `write` to be stubbed and reset + 619) 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/partial_double_spec.rb:199 + # ./spec/rspec/mocks/formatting_spec.rb:68 - 620) #allow_message_expectations_on_nil doesnt error when marshalled + 620) 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/nil_expectation_warning_spec.rb:85 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:2 - 621) #allow_message_expectations_on_nil does not affect subsequent examples + 621) 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/nil_expectation_warning_spec.rb:70 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:43 - 622) PreciseCounts passes multiple calls with different args and counts + 622) 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/precise_counts_spec.rb:56 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:9 - 623) PreciseCounts fails fast when exactly n times method is called more than n times + 623) 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/precise_counts_spec.rb:17 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:26 - 624) PreciseCounts fails when exactly n times method is never called + 624) 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/precise_counts_spec.rb:27 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:68 - 625) PreciseCounts fails when exactly n times method is called less than n times + 625) 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/precise_counts_spec.rb:8 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:84 - 626) PreciseCounts returns the value given by a block when the exactly once method is called + 626) 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/precise_counts_spec.rb:42 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:76 - 627) PreciseCounts passes if exactly n times method is called exactly n times + 627) 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/precise_counts_spec.rb:34 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:60 - 628) PreciseCounts passes multiple calls with different args + 628) 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/precise_counts_spec.rb:48 + # ./spec/rspec/mocks/stubbed_message_expectations_spec.rb:95 - 629) A partial class mock that has been subclassed cleans up stubs during #reset to prevent leakage onto subclasses between examples + 629) 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/partial_double_spec.rb:278 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:5 - 630) A partial class mock that has been subclassed stubbing a base class class method returns the value for the stub on the base class + 630) 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/partial_double_spec.rb:292 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:9 - 631) A partial class mock that has been subclassed stubbing a base class class method returns the value for the descendent class + 631) 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/partial_double_spec.rb:296 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:40 - 632) argument matchers matching anything handles non matching instances nicely + 632) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, which includes nested arrays # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:106 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:28 - 633) argument matchers matching anything doesn't accept no arguments + 633) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, specified without square brackets # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:101 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:20 - 634) argument matchers matching anything accepts string as anything + 634) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing is composable when nested # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:96 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:48 - 635) argument matchers matching instance_of does NOT accept integer as instance_of(Numeric) + 635) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing works with duplicates in actual # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:72 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:36 - 636) argument matchers matching instance_of rejects non string + 636) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:82 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:16 - 637) argument matchers matching instance_of does NOT accept float as instance_of(Numeric) + 637) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing works with duplicates in expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:67 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:32 - 638) argument matchers matching instance_of rejects non numeric + 638) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher passing matches the same array, specified without square brackets # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:77 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:24 - 639) argument matchers matching instance_of accepts float as instance_of(Float) + 639) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher failing fails when passed a composed matcher is passed and not satisfied # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:62 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:60 - 640) argument matchers matching instance_of handles non matching instances nicely + 640) RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher failing fails when not all the entries in the expected are present # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:87 + # ./spec/rspec/mocks/array_including_matcher_spec.rb:56 - 641) argument matchers matching boolean accepts false as boolean + 641) expect(...).to receive_messages(:a => 1, :b => 2) fails with the correct location # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:16 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:93 - 642) argument matchers matching boolean rejects non boolean + 642) expect(...).to receive_messages(:a => 1, :b => 2) sets up multiple expectations # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:21 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:81 - 643) argument matchers matching boolean accepts true as boolean + 643) expect(...).to receive_messages(:a => 1, :b => 2) fails with a sensible message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:11 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:87 - 644) argument matchers matching array_excluding matches array with array_excluding different array + 644) expect(...).to receive_messages(:a => 1, :b => 2) provides a matcher description # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:304 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:101 - 645) argument matchers matching array_excluding fails array_excluding when is the same array + 645) expect(...).to receive_messages(:a => 1, :b => 2) behaves like handles partially mocked objects correctly resets partially mocked objects correctly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:309 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:22 - 646) argument matchers matching array_excluding fails array_excluding when using the fuzzy matcher + 646) expect(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a do; end; block is given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:328 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 - 647) argument matchers matching array_excluding fails array_excluding when arg contains some elements + 647) expect(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/argument_matchers_spec.rb:316 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 - 648) argument matchers matching array_excluding matches array_excluding when using the fuzzy matcher + 648) #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/argument_matchers_spec.rb:323 + # ./spec/rspec/mocks/once_counts_spec.rb:26 - 649) argument matchers matching handling non-matcher arguments fails if regexp does not match submitted string + 649) #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/argument_matchers_spec.rb:407 + # ./spec/rspec/mocks/once_counts_spec.rb:8 - 650) argument matchers matching handling non-matcher arguments fails for a hash w/ wrong keys + 650) #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/argument_matchers_spec.rb:451 + # ./spec/rspec/mocks/once_counts_spec.rb:14 - 651) argument matchers matching handling non-matcher arguments fails a class against an object of a different type + 651) #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/argument_matchers_spec.rb:473 + # ./spec/rspec/mocks/once_counts_spec.rb:34 - 652) argument matchers matching handling non-matcher arguments fails if regexp does not match submitted regexp + 652) #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/argument_matchers_spec.rb:412 + # ./spec/rspec/mocks/once_counts_spec.rb:20 - 653) argument matchers matching handling non-matcher arguments matches a class against itself + 653) #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/argument_matchers_spec.rb:458 + # ./spec/rspec/mocks/once_counts_spec.rb:42 - 654) argument matchers matching handling non-matcher arguments matches string against regexp + 654) #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/argument_matchers_spec.rb:397 + # ./spec/rspec/mocks/once_counts_spec.rb:73 - 655) argument matchers matching handling non-matcher arguments fails with sensible message when args respond to #description + 655) #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/argument_matchers_spec.rb:484 + # ./spec/rspec/mocks/once_counts_spec.rb:50 - 656) 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) + 656) 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/argument_matchers_spec.rb:422 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:25 - 657) 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 + 657) 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/argument_matchers_spec.rb:429 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:19 - 658) argument matchers matching handling non-matcher arguments fails for a hash w/ wrong values + 658) 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/argument_matchers_spec.rb:444 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:12 - 659) argument matchers matching handling non-matcher arguments fails a class against an unrelated class + 659) 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/argument_matchers_spec.rb:463 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:65 - 660) argument matchers matching handling non-matcher arguments fails with sensible message when arg#description is blank + 660) 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/argument_matchers_spec.rb:498 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:60 - 661) argument matchers matching handling non-matcher arguments fails with zero arguments + 661) 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/argument_matchers_spec.rb:478 + # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:46 - 662) argument matchers matching handling non-matcher arguments matches against a hash submitted and received by value + 662) .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/argument_matchers_spec.rb:417 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:66 - 663) argument matchers matching handling non-matcher arguments matches regexp against regexp + 663) .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/argument_matchers_spec.rb:402 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:91 - 664) argument matchers matching handling non-matcher arguments fails with sensible message when arg#description is nil + 664) .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/argument_matchers_spec.rb:491 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:79 - 665) argument matchers matching handling non-matcher arguments matches a class against an instance of itself + 665) .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/argument_matchers_spec.rb:468 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:56 - 666) argument matchers matching kind_of accepts float as kind_of(Numeric) + 666) .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/argument_matchers_spec.rb:35 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:85 - 667) argument matchers matching kind_of handles a class thats overridden === + 667) .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/argument_matchers_spec.rb:53 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:73 - 668) argument matchers matching kind_of accepts fixnum as kind_of(Numeric) + 668) .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/argument_matchers_spec.rb:30 + # ./spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb:102 - 669) argument matchers matching kind_of handles non matching kinds nicely + 669) 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/argument_matchers_spec.rb:40 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:67 - 670) argument matchers matching kind_of matches arguments that have defined `kind_of?` to return true + 670) 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/argument_matchers_spec.rb:47 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:60 - 671) argument matchers matching duck_type matches duck type with two methods + 671) 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/argument_matchers_spec.rb:118 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:82 - 672) argument matchers matching duck_type rejects goose when expecting a duck + 672) 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/argument_matchers_spec.rb:123 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:75 - 673) argument matchers matching duck_type matches duck type with one method + 673) 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/argument_matchers_spec.rb:113 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:11 - 674) argument matchers matching hash_including fails hash_including with missing key + 674) 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/argument_matchers_spec.rb:255 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:97 - 675) argument matchers matching hash_including matches hash with hash_including same hash + 675) 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/argument_matchers_spec.rb:250 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:111 - 676) argument matchers matching array_including fails array_including when args aren't array + 676) 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/argument_matchers_spec.rb:288 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:105 - 677) argument matchers matching array_including fails array_including when arg doesn't contain all elements + 677) 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/argument_matchers_spec.rb:295 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:29 - 678) argument matchers matching array_including matches array with array_including same array + 678) 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/argument_matchers_spec.rb:278 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:45 - 679) argument matchers matching array_including matches array with array_including using fuzzymatcher + 679) 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/argument_matchers_spec.rb:283 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:37 - 680) 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 + 680) 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/argument_matchers_spec.rb:151 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:134 - 681) argument matchers matching any_args as the last of three args does not match a call of no args + 681) 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/argument_matchers_spec.rb:167 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:128 - 682) 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 + 682) 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/argument_matchers_spec.rb:159 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:150 - 683) argument matchers matching any_args as the last of three args does not match a call where the first two args do not match + 683) 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/argument_matchers_spec.rb:163 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:119 - 684) 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 + 684) 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/argument_matchers_spec.rb:155 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:66 - 685) argument matchers matching any_args as the middle of three args does not match a call of no args + 685) 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/argument_matchers_spec.rb:215 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:58 - 686) 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 + 686) 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/argument_matchers_spec.rb:199 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:72 - 687) 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 + 687) 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/argument_matchers_spec.rb:203 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:86 - 688) 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 + 688) 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/argument_matchers_spec.rb:207 + # ./spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb:80 - 689) 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 + 689) 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/argument_matchers_spec.rb:211 + # ./spec/rspec/mocks/block_return_value_spec.rb:53 - 690) argument matchers matching any_args as the first of three args does not match a call where the last two args do not match + 690) 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/argument_matchers_spec.rb:187 + # ./spec/rspec/mocks/block_return_value_spec.rb:27 - 691) argument matchers matching any_args as the first of three args does not match a call of no args + 691) 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/argument_matchers_spec.rb:191 + # ./spec/rspec/mocks/block_return_value_spec.rb:19 - 692) 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 + 692) 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/argument_matchers_spec.rb:179 + # ./spec/rspec/mocks/block_return_value_spec.rb:71 - 693) 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 + 693) 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/argument_matchers_spec.rb:183 + # ./spec/rspec/mocks/block_return_value_spec.rb:3 - 694) 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 + 694) 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/argument_matchers_spec.rb:175 + # ./spec/rspec/mocks/block_return_value_spec.rb:9 - 695) argument matchers matching any_args as the only arg passed to `with` matches no args + 695) 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/argument_matchers_spec.rb:135 + # ./spec/rspec/mocks/block_return_value_spec.rb:53 - 696) argument matchers matching any_args as the only arg passed to `with` matches many args + 696) 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/argument_matchers_spec.rb:143 + # ./spec/rspec/mocks/block_return_value_spec.rb:38 - 697) argument matchers matching any_args as the only arg passed to `with` matches one arg + 697) 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/argument_matchers_spec.rb:139 + # ./spec/rspec/mocks/block_return_value_spec.rb:44 - 698) argument matchers matching any_args when passed twice immediately signals that this is invalid + 698) 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/argument_matchers_spec.rb:221 + # ./spec/rspec/mocks/block_return_value_spec.rb:62 - 699) argument matchers matching no_args matches no args against no_args + 699) 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/argument_matchers_spec.rb:230 + # ./spec/rspec/mocks/stub_implementation_spec.rb:38 - 700) argument matchers matching no_args fails no_args with one arg + 700) 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/argument_matchers_spec.rb:235 + # ./spec/rspec/mocks/stub_implementation_spec.rb:47 - 701) argument matchers matching no_args when passed with other arguments immediately signals that this is invalid + 701) 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/argument_matchers_spec.rb:241 + # ./spec/rspec/mocks/stub_implementation_spec.rb:30 - 702) 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 + 702) 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/argument_matchers_spec.rb:373 + # ./spec/rspec/mocks/stub_implementation_spec.rb:58 - 703) 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 + 703) 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/argument_matchers_spec.rb:378 + # ./spec/rspec/mocks/stub_implementation_spec.rb:71 - 704) 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 + 704) 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/argument_matchers_spec.rb:383 + # ./spec/rspec/mocks/stub_implementation_spec.rb:97 - 705) argument matchers matching handling arbitrary matchers fails when given an arbitrary object that returns false from #=== + 705) 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/argument_matchers_spec.rb:352 + # ./spec/rspec/mocks/stub_implementation_spec.rb:58 - 706) argument matchers matching handling arbitrary matchers matches any arbitrary object using #=== + 706) 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/argument_matchers_spec.rb:337 + # ./spec/rspec/mocks/stub_implementation_spec.rb:71 - 707) argument matchers matching handling arbitrary matchers matches against a Matcher + 707) 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/argument_matchers_spec.rb:345 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:47 - 708) argument matchers matching hash_excluding handles non matching instances nicely + 708) 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/argument_matchers_spec.rb:269 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:4 - 709) argument matchers matching hash_excluding matches hash with hash_excluding same hash + 709) 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/argument_matchers_spec.rb:264 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:81 - 710) A chained method stub returns expected value from chaining four method calls + 710) 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/stub_chain_spec.rb:96 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:89 - 711) A chained method stub does not get confused by symbol vs string usage for the messages + 711) 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/stub_chain_spec.rb:6 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:72 - 712) A chained method stub handles private instance methods (like Object#select) in the middle of a chain + 712) 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/stub_chain_spec.rb:160 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:63 - 713) A chained method stub returns expected value when chain is a dot separated string, like stub_chain('msg1.msg2.msg3') + 713) 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/stub_chain_spec.rb:147 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:20 - 714) A chained method stub returns expected value from two chains with shared messages at the beginning + 714) 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/stub_chain_spec.rb:152 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:42 - 715) A chained method stub with two methods in chain accepts any number of arguments to the stubbed messages in the chain + 715) 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/stub_chain_spec.rb:38 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:27 - 716) A chained method stub with two methods in chain using and_return returns expected value from chaining two method calls + 716) 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/stub_chain_spec.rb:45 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:12 - 717) A chained method stub with two methods in chain using a block returns the correct value + 717) 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/stub_chain_spec.rb:52 + # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:99 - 718) A chained method stub with two methods in chain using a hash returns the value of the key/value pair + 718) 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/stub_chain_spec.rb:59 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:43 - 719) A chained method stub with one method in chain using a hash returns the value of the key/value pair + 719) 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/stub_chain_spec.rb:30 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:28 - 720) A chained method stub with one method in chain using and_return returns expected value from chaining only one method call + 720) 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/stub_chain_spec.rb:16 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:35 - 721) A chained method stub with one method in chain using a block returns the correct value + 721) 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/stub_chain_spec.rb:23 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:55 - 722) A chained method stub with four methods in chain using a hash returns the value of the key/value pair + 722) 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/stub_chain_spec.rb:82 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:49 - 723) A chained method stub with four methods in chain using a hash with a string key returns the value of the key/value pair + 723) 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/stub_chain_spec.rb:89 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:64 - 724) A chained method stub with four methods in chain using a block returns the correct value + 724) 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/stub_chain_spec.rb:75 + # ./spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb:74 - 725) A chained method stub with four methods in chain using and_return returns expected value from chaining two method calls + 725) 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/stub_chain_spec.rb:68 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:6 - 726) A chained method stub with messages shared across multiple chains using and_return starting with the same message returns expected value + 726) 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/stub_chain_spec.rb:104 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:37 - 727) A chained method stub with messages shared across multiple chains using and_return starting with the different messages returns expected value + 727) 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/stub_chain_spec.rb:114 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:53 - 728) A chained method stub with messages shared across multiple chains using => value starting with the same message returns expected value + 728) 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/stub_chain_spec.rb:126 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:57 - 729) A chained method stub with messages shared across multiple chains using => value starting with different messages returns expected value + 729) 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/stub_chain_spec.rb:136 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:41 - 730) .allow_message does not get confused when the string and symbol message form are both used + 730) 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/syntax_agnostic_message_matchers_spec.rb:36 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:61 - 731) .allow_message supports block implementations + 731) 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/syntax_agnostic_message_matchers_spec.rb:26 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:49 - 732) .allow_message does not set an expectation that the message will be received + 732) 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/syntax_agnostic_message_matchers_spec.rb:31 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:45 - 733) .allow_message sets up basic message allowance + 733) 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/syntax_agnostic_message_matchers_spec.rb:6 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:19 - 734) .allow_message sets up message allowance with params and return value + 734) 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/syntax_agnostic_message_matchers_spec.rb:16 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:15 - 735) .allow_message when target cannot be proxied raises ArgumentError with message + 735) 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/syntax_agnostic_message_matchers_spec.rb:47 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:31 - 736) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher describes passed matchers + 736) 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/hash_including_matcher_spec.rb:10 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:23 - 737) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher describes itself properly + 737) 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/hash_including_matcher_spec.rb:6 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:27 - 738) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing matches a hash with extra stuff + 738) 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/hash_including_matcher_spec.rb:21 + # ./spec/rspec/mocks/hash_excluding_matcher_spec.rb:11 - 739) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing matches against classes inheriting from Hash + 739) 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/hash_including_matcher_spec.rb:25 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:25 - 740) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing matches the same hash + 740) 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/hash_including_matcher_spec.rb:17 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:31 - 741) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches a string against a given key + 741) 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/hash_including_matcher_spec.rb:52 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:17 - 742) 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 + 742) 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/hash_including_matcher_spec.rb:60 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:10 - 743) 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 + 743) 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/hash_including_matcher_spec.rb:56 + # ./spec/rspec/mocks/to_ary_spec.rb:8 - 744) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches if more keys are present + 744) 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/hash_including_matcher_spec.rb:48 + # ./spec/rspec/mocks/to_ary_spec.rb:48 - 745) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when passed only keys or keys mixed with key/value pairs matches if the key is present + 745) 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/hash_including_matcher_spec.rb:44 + # ./spec/rspec/mocks/to_ary_spec.rb:44 - 746) 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 + 746) 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/hash_including_matcher_spec.rb:64 + # ./spec/rspec/mocks/to_ary_spec.rb:13 - 747) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when matching against other matchers matches an int against anything() + 747) 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/hash_including_matcher_spec.rb:30 + # ./spec/rspec/mocks/to_ary_spec.rb:3 - 748) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when matching against other matchers matches a string against anything() + 748) 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/hash_including_matcher_spec.rb:34 + # ./spec/rspec/mocks/to_ary_spec.rb:40 - 749) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher passing when matching against other matchers can match against arbitrary objects that implement #=== + 749) a double receiving to_ary double as_null_object responds when overridden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:38 + # ./spec/rspec/mocks/to_ary_spec.rb:8 - 750) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with an incorrect value + 750) 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/hash_including_matcher_spec.rb:91 + # ./spec/rspec/mocks/to_ary_spec.rb:27 - 751) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a non-hash + 751) a double receiving to_ary double as_null_object returns nil # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:71 + # ./spec/rspec/mocks/to_ary_spec.rb:31 - 752) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match when values are nil but keys are different + 752) a double receiving to_ary double as_null_object supports Array#flatten # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:95 + # ./spec/rspec/mocks/to_ary_spec.rb:13 - 753) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match an empty hash with a given key + 753) a double receiving to_ary double as_null_object can be overridden with a stub # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:83 + # ./spec/rspec/mocks/to_ary_spec.rb:3 - 754) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with a missing key when one pair is matching + 754) a double receiving to_ary double as_null_object does respond to to_ary # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/hash_including_matcher_spec.rb:87 + # ./spec/rspec/mocks/to_ary_spec.rb:23 - 755) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with a missing key + 755) 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/hash_including_matcher_spec.rb:79 + # ./spec/rspec/mocks/test_double_spec.rb:34 - 756) RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher failing does not match a hash with a missing key + 756) 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/hash_including_matcher_spec.rb:75 + # ./spec/rspec/mocks/test_double_spec.rb:34 - 757) a double receiving to_ary double without as_null_object supports Array#flatten + 757) 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/to_ary_spec.rb:13 + # ./spec/rspec/mocks/test_double_spec.rb:48 - 758) a double receiving to_ary double without as_null_object responds when overridden + 758) 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/to_ary_spec.rb:8 + # ./spec/rspec/mocks/test_double_spec.rb:48 - 759) a double receiving to_ary double without as_null_object doesn't respond to to_a + 759) 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/to_ary_spec.rb:44 + # ./spec/rspec/mocks/test_double_spec.rb:7 - 760) a double receiving to_ary double without as_null_object raises + 760) 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/to_ary_spec.rb:48 + # ./spec/rspec/mocks/test_double_spec.rb:17 - 761) a double receiving to_ary double without as_null_object can be overridden with a stub + 761) 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/to_ary_spec.rb:3 + # ./spec/rspec/mocks/test_double_spec.rb:27 - 762) a double receiving to_ary double without as_null_object doesn't respond to to_ary + 762) 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/to_ary_spec.rb:40 + # ./spec/rspec/mocks/test_double_spec.rb:12 - 763) a double receiving to_ary double as_null_object responds when overridden + 763) 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/to_ary_spec.rb:8 + # ./spec/rspec/mocks/test_double_spec.rb:48 - 764) a double receiving to_ary double as_null_object does respond to to_a + 764) 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/to_ary_spec.rb:27 + # ./spec/rspec/mocks/diffing_spec.rb:270 - 765) a double receiving to_ary double as_null_object returns nil + 765) 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/to_ary_spec.rb:31 + # ./spec/rspec/mocks/diffing_spec.rb:287 - 766) a double receiving to_ary double as_null_object does respond to to_ary + 766) 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/to_ary_spec.rb:23 + # ./spec/rspec/mocks/diffing_spec.rb:90 - 767) a double receiving to_ary double as_null_object supports Array#flatten + 767) 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/to_ary_spec.rb:13 + # ./spec/rspec/mocks/diffing_spec.rb:12 - 768) a double receiving to_ary double as_null_object can be overridden with a stub + 768) 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/to_ary_spec.rb:3 + # ./spec/rspec/mocks/diffing_spec.rb:68 - 769) Method visibility when using partial mocks keeps protected methods protected + 769) Diffs printed when arguments don't match with a non matcher object prints a diff with array args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:330 + # ./spec/rspec/mocks/diffing_spec.rb:241 - 770) Method visibility when using partial mocks keeps public methods public + 770) Diffs printed when arguments don't match with a non matcher object prints a diff with hash args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:318 + # ./spec/rspec/mocks/diffing_spec.rb:81 - 771) Method visibility when using partial mocks keeps private methods private + 771) Diffs printed when arguments don't match with a non matcher object does not print a diff when differ returns a string of only whitespace when colour is enabled # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:324 + # ./spec/rspec/mocks/diffing_spec.rb:33 - 772) ordering passes when messages are received in order + 772) Diffs printed when arguments don't match with a non matcher object prints a diff of the args lists for multiple mismatched string arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mock_ordering_spec.rb:16 + # ./spec/rspec/mocks/diffing_spec.rb:57 - 773) ordering supports duplicate messages + 773) Diffs printed when arguments don't match with a non matcher object does not print a diff when differ returns a string of only whitespace # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mock_ordering_spec.rb:100 + # ./spec/rspec/mocks/diffing_spec.rb:21 - 774) ordering passes when messages are received in order + 774) 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/mock_ordering_spec.rb:7 + # ./spec/rspec/mocks/diffing_spec.rb:46 - 775) ordering fails when messages are received out of order (3rd message 2nd) + 775) Diffs printed when arguments don't match with a non matcher object with keyword arguments on normal doubles prints a diff when keyword argument were expected but got an option hash (literal) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mock_ordering_spec.rb:56 + # ./spec/rspec/mocks/diffing_spec.rb:117 - 776) ordering ignores order of non ordered messages + 776) 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/mock_ordering_spec.rb:80 + # ./spec/rspec/mocks/diffing_spec.rb:133 - 777) ordering fails when messages are out of order across objects + 777) Diffs printed when arguments don't match with a non matcher object with keyword arguments on normal doubles prints a diff when keyword argument were expected but got an option hash (using splat) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mock_ordering_spec.rb:66 + # ./spec/rspec/mocks/diffing_spec.rb:102 - 778) ordering fails when messages are received out of order (3rd message 1st) + 778) 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/mock_ordering_spec.rb:46 + # ./spec/rspec/mocks/diffing_spec.rb:187 - 779) ordering passes when messages are received in order across objects + 779) 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/mock_ordering_spec.rb:27 + # ./spec/rspec/mocks/diffing_spec.rb:174 - 780) ordering fails when messages are received out of order (2nd message 1st) + 780) 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/mock_ordering_spec.rb:38 + # ./spec/rspec/mocks/diffing_spec.rb:201 - 781) Verified double naming instance_spy behaves like a named verifying double when no name is given + 781) 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/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks/diffing_spec.rb:251 - 782) Verified double naming instance_spy behaves like a named verifying double when a name is given as a string + 782) 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/verifying_doubles/naming_spec.rb:32 + # - 783) Verified double naming instance_spy behaves like a named verifying double when a name is given as a symbol + 783) 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/verifying_doubles/naming_spec.rb:37 + # - 784) Verified double naming object_double behaves like a named verifying double when a name is given as a symbol + 784) 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/verifying_doubles/naming_spec.rb:37 + # - 785) Verified double naming object_double behaves like a named verifying double when a name is given as a string + 785) 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/verifying_doubles/naming_spec.rb:32 + # - 786) Verified double naming object_double behaves like a named verifying double when no name is given + 786) 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/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks_spec.rb:54 - 787) Verified double naming class_spy behaves like a named verifying double when no name is given + 787) 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/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks_spec.rb:61 - 788) Verified double naming class_spy behaves like a named verifying double when a name is given as a symbol + 788) 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/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks_spec.rb:89 - 789) Verified double naming class_spy behaves like a named verifying double when a name is given as a string + 789) 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/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks_spec.rb:76 - 790) Verified double naming class_double behaves like a named verifying double when a name is given as a string + 790) 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/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks_spec.rb:42 - 791) Verified double naming class_double behaves like a named verifying double when a name is given as a symbol + 791) RSpec::Mocks when there is a `let` declaration that overrides an argument matcher allows the `let` definition to win # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks_spec.rb:229 - 792) Verified double naming class_double behaves like a named verifying double when no name is given + 792) RSpec::Mocks.with_temporary_scope tears down even if an error occurs # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks_spec.rb:189 - 793) Verified double naming instance_double behaves like a named verifying double when a name is given as a symbol + 793) RSpec::Mocks.with_temporary_scope does not verify if an error occurs before the block completes # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks_spec.rb:202 - 794) Verified double naming instance_double behaves like a named verifying double when no name is given + 794) 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/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks_spec.rb:212 - 795) Verified double naming instance_double behaves like a named verifying double when a name is given as a string + 795) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed const does not allow the stubbed constants to be used in the examples # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks_spec.rb:137 - 796) Verified double naming object_spy behaves like a named verifying double when a name is given as a symbol + 796) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed const does not allow the stubbed constants to be used after the scope in before(:all) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:37 + # ./spec/rspec/mocks_spec.rb:142 - 797) Verified double naming object_spy behaves like a named verifying double when no name is given + 797) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed const allows the stubbed constants to be used # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:42 + # ./spec/rspec/mocks_spec.rb:133 - 798) Verified double naming object_spy behaves like a named verifying double when a name is given as a string + 798) RSpec::Mocks.with_temporary_scope in a before(:all) with an any_instance stub does not allow the double to be used in the examples # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/naming_spec.rb:32 + # ./spec/rspec/mocks_spec.rb:177 - 799) when using the :expect syntax still supports null object doubles + 799) 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/null_object_double_spec.rb:129 + # ./spec/rspec/mocks_spec.rb:183 - 800) a double acting as a null object fails verification when explicit exception not met + 800) 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/null_object_double_spec.rb:62 + # ./spec/rspec/mocks_spec.rb:173 - 801) a double acting as a null object allows unexpected message sends using `__send__` + 801) 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/null_object_double_spec.rb:79 + # ./spec/rspec/mocks_spec.rb:107 - 802) a double acting as a null object continues to return self from an explicit expectation + 802) 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/null_object_double_spec.rb:51 + # ./spec/rspec/mocks_spec.rb:111 - 803) a double acting as a null object allows explicit stubs + 803) 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/null_object_double_spec.rb:37 + # ./spec/rspec/mocks_spec.rb:117 - 804) a double acting as a null object allows explicit expectation + 804) 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/null_object_double_spec.rb:42 + # ./spec/rspec/mocks_spec.rb:158 - 805) a double acting as a null object ignores unexpected methods + 805) 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/null_object_double_spec.rb:69 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:181 - 806) a double acting as a null object allows expected message with different args first + 806) 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/null_object_double_spec.rb:84 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:115 - 807) a double acting as a null object returns an explicitly stubbed value from an expectation with no implementation + 807) 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/null_object_double_spec.rb:56 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:173 - 808) a double acting as a null object returns a string from `to_str` + 808) 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/null_object_double_spec.rb:47 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:94 - 809) a double acting as a null object does not allow null objects to be used outside of examples + 809) 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/null_object_double_spec.rb:104 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:160 - 810) a double acting as a null object allows expected message with different args second + 810) 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/null_object_double_spec.rb:90 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:165 - 811) a double acting as a null object can be interpolated in a string as an integer + 811) 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/null_object_double_spec.rb:96 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:85 - 812) a double acting as a null object allows unexpected message sends using `send` + 812) 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/null_object_double_spec.rb:74 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:106 - 813) a double acting as a null object says it responds to everything + 813) 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/null_object_double_spec.rb:33 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:4 - 814) and_wrap_original on a pure test double raises an error + 814) 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/and_wrap_original_spec.rb:92 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:152 - 815) and_wrap_original on a pure test double raises an error even if the double object responds to the message + 815) 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/and_wrap_original_spec.rb:100 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:132 - 816) 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 + 816) 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/and_wrap_original_spec.rb:38 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:137 - 817) 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 + 817) 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/and_wrap_original_spec.rb:66 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:142 - 818) 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 + 818) 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/and_wrap_original_spec.rb:52 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:55 - 819) 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 + 819) 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/and_wrap_original_spec.rb:22 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:43 - 820) 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 + 820) 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/and_wrap_original_spec.rb:45 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:37 - 821) 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 + 821) 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/and_wrap_original_spec.rb:58 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:49 - 822) 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 + 822) 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/and_wrap_original_spec.rb:29 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:67 - 823) 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 + 823) 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/and_wrap_original_spec.rb:14 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:78 - 824) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along any supplied block + 824) 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/and_wrap_original_spec.rb:45 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:61 - 825) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along the message arguments + 825) 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/and_wrap_original_spec.rb:38 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:25 - 826) 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 + 826) 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/and_wrap_original_spec.rb:66 + # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:31 - 827) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original passes along the original method + 827) #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/and_wrap_original_spec.rb:29 + # ./spec/rspec/mocks/thrice_counts_spec.rb:36 - 828) and_wrap_original on a partial double allow(...).to receive(...).and_wrap_original behaves like using and_wrap_original ignores previous stubs + 828) #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/and_wrap_original_spec.rb:52 + # ./spec/rspec/mocks/thrice_counts_spec.rb:14 - 829) 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 + 829) #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/and_wrap_original_spec.rb:14 + # ./spec/rspec/mocks/thrice_counts_spec.rb:44 - 830) 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 + 830) #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/and_wrap_original_spec.rb:58 + # ./spec/rspec/mocks/thrice_counts_spec.rb:28 - 831) 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 + 831) #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/and_wrap_original_spec.rb:22 + # ./spec/rspec/mocks/thrice_counts_spec.rb:8 - 832) Combining implementation instructions can combine and_yield, a block implementation and and_raise + 832) #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:94 + # ./spec/rspec/mocks/thrice_counts_spec.rb:52 - 833) Combining implementation instructions can combine and_yield and and_return + 833) #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:4 + # ./spec/rspec/mocks/thrice_counts_spec.rb:20 - 834) Combining implementation instructions can combine and_yield and and_throw + 834) #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:106 + # ./spec/rspec/mocks/thrice_counts_spec.rb:61 - 835) Combining implementation instructions can combine and_call_original, with, and_return + 835) #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:173 + # ./spec/rspec/mocks/thrice_counts_spec.rb:72 - 836) Combining implementation instructions does not warn about overriding the stub when `:with` is chained off the block + 836) 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/combining_implementation_instructions_spec.rb:165 + # ./spec/rspec/mocks/message_expectation_string_representation_spec.rb:18 - 837) Combining implementation instructions raises an error if `and_call_original` is followed by any other instructions + 837) 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/combining_implementation_instructions_spec.rb:181 + # ./spec/rspec/mocks/message_expectation_string_representation_spec.rb:6 - 838) Combining implementation instructions warns when the inner implementation block is overridden + 838) 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/combining_implementation_instructions_spec.rb:160 + # ./spec/rspec/mocks/message_expectation_string_representation_spec.rb:12 - 839) Combining implementation instructions can combine and_yield and and_raise + 839) 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/combining_implementation_instructions_spec.rb:85 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:162 - 840) Combining implementation instructions can combine and_yield, a block implementation and and_throw + 840) 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/combining_implementation_instructions_spec.rb:115 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:104 - 841) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `stub` + 841) 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/combining_implementation_instructions_spec.rb:25 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:119 - 842) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `once` + 842) 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/combining_implementation_instructions_spec.rb:61 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:110 - 843) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `ordered` + 843) 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/combining_implementation_instructions_spec.rb:78 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:155 - 844) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `at_least` + 844) Constructing a verifying double when verify_doubled_constant_names config option is set prevents creation of instance doubles for unloaded constants # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:43 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:149 - 845) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `exactly` + 845) 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/combining_implementation_instructions_spec.rb:37 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:29 - 846) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `with` + 846) 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/combining_implementation_instructions_spec.rb:31 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:40 - 847) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `at_most` + 847) 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/combining_implementation_instructions_spec.rb:49 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:24 - 848) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `twice` + 848) 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/combining_implementation_instructions_spec.rb:67 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:18 - 849) Combining implementation instructions combining and_yield, a block implementation and and_return works when passing a block to `times` + 849) 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/combining_implementation_instructions_spec.rb:55 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:52 - 850) 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)` + 850) 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/combining_implementation_instructions_spec.rb:132 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:93 - 851) 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)` + 851) 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/combining_implementation_instructions_spec.rb:137 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:77 - 852) 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)` + 852) 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/combining_implementation_instructions_spec.rb:142 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:85 - 853) Combining implementation instructions a double that already has a terminal block action allows the block action to be overridden + 853) Constructing a verifying double object doubles declares the class to verifying double callbacks # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/combining_implementation_instructions_spec.rb:152 + # ./spec/rspec/mocks/verifying_doubles/construction_spec.rb:131 - 854) An object double can create a double that matches the interface of any arbitrary object + 854) An instance double with the doubled class not loaded allows any instance method to be expected # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:32 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:25 - 855) An object double is not a module + 855) An instance double with the doubled class not loaded handles classes that are materialized after mocking # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:58 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:35 - 856) An object double does not allow transferring constants to an object + 856) An instance double with the doubled class not loaded includes the doubled module in errors for unexpected messages # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:45 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:12 - 857) An object double does not allow as_stubbed_constant for real objects + 857) An instance double with the doubled class not loaded allows any instance method to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:52 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:19 - 858) An object double can replace a constant by name and verify instance methods + 858) An instance double with the doubled class not loaded when the class const has been previously stubbed treats the class as unloaded for `instance_double('NonLoadedClass')` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:17 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:59 - 859) An object double validates `with` args against the method signature when stubbing a method + 859) An instance double with the doubled class not loaded when the class const has been previously stubbed treats the class as unloaded for `instance_double(NonLoadedClass)` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:62 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:64 - 860) An object double can replace an unloaded constant + 860) An instance double with the doubled class not loaded for null objects returns self from any message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:8 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:45 - 861) 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')` + 861) An instance double with the doubled class not loaded for null objects reports it responds to any message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:90 + # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_not_loaded_spec.rb:49 - 862) 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)` + 862) 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/verifying_doubles/object_double_spec.rb:96 + # ./spec/rspec/mocks/error_generator_spec.rb:31 - 863) An object double when an unloaded object constant has previously been stubbed with an object treats it as being unloaded for `object_double('ConstName')` + 863) 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/verifying_doubles/object_double_spec.rb:106 + # ./spec/rspec/mocks/error_generator_spec.rb:42 - 864) 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 + 864) 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/verifying_doubles/object_double_spec.rb:111 + # ./spec/rspec/mocks/error_generator_spec.rb:79 - 865) 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')` + 865) 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/verifying_doubles/object_double_spec.rb:72 + # ./spec/rspec/mocks/error_generator_spec.rb:62 - 866) 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 + 866) 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/verifying_doubles/object_double_spec.rb:78 + # ./spec/rspec/mocks/error_generator_spec.rb:52 - 867) An object double when an unloaded object constant has previously been stubbed with a class treats it as being unloaded for `object_double('ConstName')` + 867) 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/verifying_doubles/object_double_spec.rb:124 + # ./spec/rspec/mocks/error_generator_spec.rb:15 - 868) An object double when an unloaded object constant has previously been stubbed with a class treats it as being unloaded for `object_double(ConstName)` + 868) 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/object_double_spec.rb:129 + # ./spec/rspec/mocks/matchers/receive_spec.rb:636 - 869) Test doubles format well in failure messages formats the doubles when they appear in data structures and diffs + 869) 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/formatting_spec.rb:94 + # ./spec/rspec/mocks/matchers/receive_spec.rb:14 - 870) Test doubles format well in failure messages `instance_double(SomeClass)` avoids sending `instance_variable_get` to the double as it may be stubbed + 870) 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/formatting_spec.rb:59 + # ./spec/rspec/mocks/matchers/receive_spec.rb:19 - 871) Test doubles format well in failure messages `instance_double(SomeClass)` without a name # + 871) 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/formatting_spec.rb:54 + # ./spec/rspec/mocks/matchers/receive_spec.rb:26 - 872) Test doubles format well in failure messages `instance_double(SomeClass)` with a name # + 872) 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/formatting_spec.rb:48 + # ./spec/rspec/mocks/matchers/receive_spec.rb:9 - 873) Test doubles format well in failure messages `object_double([])` with a name # + 873) 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/formatting_spec.rb:82 + # ./spec/rspec/mocks/matchers/receive_spec.rb:611 - 874) Test doubles format well in failure messages `object_double([])` without a name # + 874) 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/formatting_spec.rb:88 + # ./spec/rspec/mocks/matchers/receive_spec.rb:268 - 875) Test doubles format well in failure messages `class_double(SomeClass)` with a name # + 875) 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/formatting_spec.rb:68 + # ./spec/rspec/mocks/matchers/receive_spec.rb:254 - 876) Test doubles format well in failure messages `class_double(SomeClass)` without a name # + 876) 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/formatting_spec.rb:74 + # ./spec/rspec/mocks/matchers/receive_spec.rb:278 - 877) Test doubles format well in failure messages `double` avoids sending `instance_variable_get` to the double as it may be stubbed + 877) 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/formatting_spec.rb:39 + # ./spec/rspec/mocks/matchers/receive_spec.rb:260 - 878) Test doubles format well in failure messages `double` with a name # + 878) 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/formatting_spec.rb:24 + # ./spec/rspec/mocks/matchers/receive_spec.rb:169 - 879) Test doubles format well in failure messages `double` with a name formats the name as a symbol if that was how it was provided + 879) 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/formatting_spec.rb:28 + # ./spec/rspec/mocks/matchers/receive_spec.rb:197 - 880) Test doubles format well in failure messages `double` without a name # + 880) 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/formatting_spec.rb:34 + # ./spec/rspec/mocks/matchers/receive_spec.rb:182 - 881) expect_any_instance_of(...).to receive_messages(:a => 1, :b => 2) sets up multiple expectations + 881) 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_messages_spec.rb:112 + # ./spec/rspec/mocks/matchers/receive_spec.rb:49 - 882) expect_any_instance_of(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given + 882) 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_messages_spec.rb:4 + # ./spec/rspec/mocks/matchers/receive_spec.rb:177 - 883) 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 + 883) 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_messages_spec.rb:10 + # ./spec/rspec/mocks/matchers/receive_spec.rb:54 - 884) 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 + 884) 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/and_yield_spec.rb:7 + # ./spec/rspec/mocks/matchers/receive_spec.rb:63 - 885) RSpec::Mocks::Double#and_yield with eval context as block argument passes an eval context object to the supplied block + 885) 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/and_yield_spec.rb:29 + # ./spec/rspec/mocks/matchers/receive_spec.rb:211 - 886) RSpec::Mocks::Double#and_yield with eval context as block argument evaluates the supplied block as it is read + 886) 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/and_yield_spec.rb:21 + # ./spec/rspec/mocks/matchers/receive_spec.rb:221 - 887) 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 + 887) 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/and_yield_spec.rb:35 + # ./spec/rspec/mocks/matchers/receive_spec.rb:191 - 888) 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 + 888) 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/and_yield_spec.rb:66 + # ./spec/rspec/mocks/matchers/receive_spec.rb:203 - 889) 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 + 889) 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/and_yield_spec.rb:52 + # ./spec/rspec/mocks/matchers/receive_spec.rb:90 - 890) RSpec::Mocks::Double#and_yield with eval context as block argument and yielded arguments can yield to a block that uses `super` + 890) 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/and_yield_spec.rb:128 + # ./spec/rspec/mocks/matchers/receive_spec.rb:159 - 891) 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 + 891) 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/and_yield_spec.rb:139 + # ./spec/rspec/mocks/matchers/receive_spec.rb:126 - 892) 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 + 892) 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/and_yield_spec.rb:84 + # ./spec/rspec/mocks/matchers/receive_spec.rb:81 - 893) 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 + 893) 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/and_yield_spec.rb:103 + # ./spec/rspec/mocks/matchers/receive_spec.rb:98 - 894) 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 + 894) 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/and_yield_spec.rb:114 + # ./spec/rspec/mocks/matchers/receive_spec.rb:106 - 895) RSpec::Mocks when there is a `let` declaration that overrides an argument matcher allows the `let` definition to win + 895) 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_spec.rb:229 + # ./spec/rspec/mocks/matchers/receive_spec.rb:118 - 896) RSpec::Mocks.setup starts a new space scope that is later removed by .teardown + 896) 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_spec.rb:76 + # ./spec/rspec/mocks/matchers/receive_spec.rb:133 - 897) RSpec::Mocks.with_temporary_scope does not verify if an error occurs before the block completes + 897) 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_spec.rb:202 + # ./spec/rspec/mocks/matchers/receive_spec.rb:153 - 898) RSpec::Mocks.with_temporary_scope tears down even if an error occurs + 898) 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_spec.rb:189 + # ./spec/rspec/mocks/matchers/receive_spec.rb:347 - 899) RSpec::Mocks.with_temporary_scope returns the result of the passed block + 899) 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_spec.rb:212 + # ./spec/rspec/mocks/matchers/receive_spec.rb:322 - 900) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed const allows the stubbed constants to be used + 900) 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_spec.rb:133 + # ./spec/rspec/mocks/matchers/receive_spec.rb:301 - 901) 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) + 901) 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_spec.rb:142 + # ./spec/rspec/mocks/matchers/receive_spec.rb:293 - 902) 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 + 902) 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_spec.rb:137 + # ./spec/rspec/mocks/matchers/receive_spec.rb:309 - 903) 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) + 903) 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_spec.rb:117 + # ./spec/rspec/mocks/matchers/receive_spec.rb:288 - 904) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed double allows the stubbed double to be used + 904) 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_spec.rb:107 + # ./spec/rspec/mocks/matchers/receive_spec.rb:240 - 905) RSpec::Mocks.with_temporary_scope in a before(:all) with a stubbed double does not allow the double to be used in the examples + 905) 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_spec.rb:111 + # ./spec/rspec/mocks/matchers/receive_spec.rb:337 - 906) RSpec::Mocks.with_temporary_scope in a before(:all) with an unmet mock expectation fails with a mock expectation error + 906) 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_spec.rb:158 + # ./spec/rspec/mocks/matchers/receive_spec.rb:233 - 907) RSpec::Mocks.with_temporary_scope in a before(:all) with an any_instance stub allows the stub to be used + 907) 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_spec.rb:173 + # ./spec/rspec/mocks/matchers/receive_spec.rb:221 - 908) 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) + 908) 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_spec.rb:183 + # ./spec/rspec/mocks/matchers/receive_spec.rb:182 - 909) 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 + 909) 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_spec.rb:177 + # ./spec/rspec/mocks/matchers/receive_spec.rb:203 - 910) RSpec::Mocks.teardown resets method stubs + 910) 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_spec.rb:54 + # ./spec/rspec/mocks/matchers/receive_spec.rb:54 - 911) RSpec::Mocks.teardown does not put rspec-mocks into an inconsistent state when called extra times + 911) 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_spec.rb:61 + # ./spec/rspec/mocks/matchers/receive_spec.rb:63 - 912) RSpec::Mocks.verify delegates to the space + 912) 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_spec.rb:42 + # ./spec/rspec/mocks/matchers/receive_spec.rb:211 - 913) RSpec::Mocks.configuration returns a memoized configuration instance + 913) 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_spec.rb:89 + # ./spec/rspec/mocks/matchers/receive_spec.rb:197 - 914) 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 + 914) 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/receive_spec.rb:49 - 915) RSpec::Mocks behaves like library wide checks issues no warnings when the spec files are loaded + 915) 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/receive_spec.rb:191 - 916) RSpec::Mocks behaves like library wide checks has no malformed whitespace + 916) 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/receive_spec.rb:177 - 917) RSpec::Mocks behaves like library wide checks issues no warnings when loaded + 917) 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/receive_spec.rb:169 - 918) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher describes itself properly + 918) 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/hash_excluding_matcher_spec.rb:6 + # ./spec/rspec/mocks/matchers/receive_spec.rb:126 - 919) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with some of the specified keys + 919) 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/hash_excluding_matcher_spec.rb:57 + # ./spec/rspec/mocks/matchers/receive_spec.rb:81 - 920) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with a specified key + 920) 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/hash_excluding_matcher_spec.rb:41 + # ./spec/rspec/mocks/matchers/receive_spec.rb:159 - 921) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with one key/value pair included + 921) 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/hash_excluding_matcher_spec.rb:61 + # ./spec/rspec/mocks/matchers/receive_spec.rb:90 - 922) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with one of the specified keys + 922) 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/hash_excluding_matcher_spec.rb:53 + # ./spec/rspec/mocks/matchers/receive_spec.rb:153 - 923) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with the specified key/value pair + 923) 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/hash_excluding_matcher_spec.rb:45 + # ./spec/rspec/mocks/matchers/receive_spec.rb:118 - 924) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a hash with the specified key + 924) 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/hash_excluding_matcher_spec.rb:49 + # ./spec/rspec/mocks/matchers/receive_spec.rb:133 - 925) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher failing does not match a non-hash + 925) 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/hash_excluding_matcher_spec.rb:37 + # ./spec/rspec/mocks/matchers/receive_spec.rb:106 - 926) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches an empty hash + 926) 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/hash_excluding_matcher_spec.rb:23 + # ./spec/rspec/mocks/matchers/receive_spec.rb:98 - 927) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash with the specified key, but different value + 927) 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/hash_excluding_matcher_spec.rb:15 + # ./spec/rspec/mocks/matchers/receive_spec.rb:382 - 928) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches against classes inheriting from Hash + 928) 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/hash_excluding_matcher_spec.rb:31 + # ./spec/rspec/mocks/matchers/receive_spec.rb:375 - 929) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash without any of the specified keys + 929) 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/hash_excluding_matcher_spec.rb:27 + # ./spec/rspec/mocks/matchers/receive_spec.rb:395 - 930) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash without the specified key + 930) 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/hash_excluding_matcher_spec.rb:11 + # ./spec/rspec/mocks/matchers/receive_spec.rb:360 - 931) RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher passing matches a hash without the specified key, given as anything() + 931) 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/hash_excluding_matcher_spec.rb:19 + # ./spec/rspec/mocks/matchers/receive_spec.rb:446 - 932) A class double with the doubled class not loaded trying to raise a class_double raises a TypeError + 932) RSpec::Mocks::Matchers::Receive allow(...).to receive on a class method, from a class with subclasses can stub the same method simultaneously in the superclass and subclasses # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:25 + # ./spec/rspec/mocks/matchers/receive_spec.rb:451 - 933) A class double with the doubled class not loaded allows any method to be stubbed + 933) RSpec::Mocks::Matchers::Receive allow(...).to receive on a class method, from a class with subclasses if the method is redefined in the subclass does not stub the method in the subclass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:19 + # ./spec/rspec/mocks/matchers/receive_spec.rb:431 - 934) A class double with the doubled class not loaded includes the double name in errors for unexpected messages + 934) RSpec::Mocks::Matchers::Receive allow(...).to receive on a class method, from a class with subclasses if the method is not redefined in the subclass stubs the method in the subclass # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_not_loaded_spec.rb:12 + # ./spec/rspec/mocks/matchers/receive_spec.rb:439 - 935) A class double with the doubled class not loaded when stubbing a private module method can mock private module methods + 935) 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/verifying_doubles/class_double_with_class_not_loaded_spec.rb:46 + # ./spec/rspec/mocks/matchers/receive_spec.rb:417 - 936) 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')` + 936) 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/verifying_doubles/class_double_with_class_not_loaded_spec.rb:60 + # ./spec/rspec/mocks/matchers/receive_spec.rb:730 - 937) 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)` + 937) 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/verifying_doubles/class_double_with_class_not_loaded_spec.rb:65 + # ./spec/rspec/mocks/matchers/receive_spec.rb:736 - 938) expect(...).to receive_messages(:a => 1, :b => 2) fails with the correct location + 938) 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/receive_messages_spec.rb:93 + # ./spec/rspec/mocks/matchers/receive_spec.rb:652 - 939) expect(...).to receive_messages(:a => 1, :b => 2) provides a matcher description + 939) 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/receive_messages_spec.rb:101 + # ./spec/rspec/mocks/matchers/receive_spec.rb:662 - 940) expect(...).to receive_messages(:a => 1, :b => 2) sets up multiple expectations + 940) 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/receive_messages_spec.rb:81 + # ./spec/rspec/mocks/matchers/receive_spec.rb:642 - 941) expect(...).to receive_messages(:a => 1, :b => 2) fails with a sensible message + 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` # 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/matchers/receive_spec.rb:672 - 942) expect(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a do; end; block is given + 942) 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_messages_spec.rb:10 + # ./spec/rspec/mocks/matchers/receive_spec.rb:240 - 943) expect(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given + 943) 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/matchers/receive_messages_spec.rb:4 + # ./spec/rspec/mocks/matchers/receive_spec.rb:546 - 944) expect(...).to receive_messages(:a => 1, :b => 2) behaves like handles partially mocked objects correctly resets partially mocked objects correctly + 944) 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/matchers/receive_messages_spec.rb:22 + # ./spec/rspec/mocks/matchers/receive_spec.rb:590 - 945) a message expectation with multiple return values with a specified count equal to the number of values returns values in order to consecutive calls + 945) 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/multiple_return_value_spec.rb:60 + # ./spec/rspec/mocks/matchers/receive_spec.rb:568 - 946) Expected argument verification (when `#with` is called) when doubling a loaded class does not cover required args when `any_args` is not used + 946) 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/expected_arg_verification_spec.rb:97 + # ./spec/rspec/mocks/matchers/receive_spec.rb:533 - 947) 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 + 947) 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/expected_arg_verification_spec.rb:134 + # ./spec/rspec/mocks/matchers/receive_spec.rb:524 - 948) 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) + 948) 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/verifying_doubles/expected_arg_verification_spec.rb:128 + # ./spec/rspec/mocks/matchers/receive_spec.rb:360 - 949) 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 + 949) 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/verifying_doubles/expected_arg_verification_spec.rb:150 + # ./spec/rspec/mocks/matchers/receive_spec.rb:375 - 950) 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 + 950) 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/verifying_doubles/expected_arg_verification_spec.rb:29 + # ./spec/rspec/mocks/matchers/receive_spec.rb:382 - 951) 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 + 951) 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/verifying_doubles/expected_arg_verification_spec.rb:45 + # ./spec/rspec/mocks/matchers/receive_spec.rb:395 - 952) 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 + 952) 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/expected_arg_verification_spec.rb:37 + # ./spec/rspec/mocks/matchers/receive_spec.rb:254 - 953) 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 + 953) 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/expected_arg_verification_spec.rb:58 + # ./spec/rspec/mocks/matchers/receive_spec.rb:260 - 954) 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 + 954) 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/expected_arg_verification_spec.rb:66 + # ./spec/rspec/mocks/matchers/receive_spec.rb:278 - 955) 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 + 955) 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/expected_arg_verification_spec.rb:72 + # ./spec/rspec/mocks/matchers/receive_spec.rb:268 - 956) 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 + 956) 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/verifying_doubles/expected_arg_verification_spec.rb:80 + # ./spec/rspec/mocks/matchers/receive_spec.rb:493 - 957) 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` + 957) 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/expected_arg_verification_spec.rb:86 + # ./spec/rspec/mocks/matchers/receive_spec.rb:49 - 958) 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 + 958) 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/verifying_doubles/expected_arg_verification_spec.rb:119 + # ./spec/rspec/mocks/matchers/receive_spec.rb:221 - 959) 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 + 959) 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/verifying_doubles/expected_arg_verification_spec.rb:111 + # ./spec/rspec/mocks/matchers/receive_spec.rb:211 - 960) 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 + 960) 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/verifying_doubles/expected_arg_verification_spec.rb:105 + # ./spec/rspec/mocks/matchers/receive_spec.rb:177 - 961) Expected argument verification (when `#with` is called) when doubling an unloaded class allows any arguments + 961) 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/verifying_doubles/expected_arg_verification_spec.rb:11 + # ./spec/rspec/mocks/matchers/receive_spec.rb:63 - 962) A class double with the doubled class loaded allows dynamically defined class method mocks with arguments + 962) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:64 + # ./spec/rspec/mocks/matchers/receive_spec.rb:169 - 963) A class double with the doubled class loaded correctly verifies expectations when constant is removed + 963) 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/class_double_with_class_loaded_spec.rb:99 + # ./spec/rspec/mocks/matchers/receive_spec.rb:182 - 964) A class double with the doubled class loaded suggests using `instance_double` when an instance method is stubbed + 964) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:33 + # ./spec/rspec/mocks/matchers/receive_spec.rb:203 - 965) A class double with the doubled class loaded allows class to be specified by constant + 965) 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/class_double_with_class_loaded_spec.rb:76 + # ./spec/rspec/mocks/matchers/receive_spec.rb:54 - 966) A class double with the doubled class loaded gives a descriptive error message for NoMethodError + 966) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:43 + # ./spec/rspec/mocks/matchers/receive_spec.rb:118 - 967) A class double with the doubled class loaded allows dynamically defined class method stubs with arguments + 967) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:57 + # ./spec/rspec/mocks/matchers/receive_spec.rb:98 - 968) A class double with the doubled class loaded verifies arguments for null objects + 968) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:115 + # ./spec/rspec/mocks/matchers/receive_spec.rb:126 - 969) A class double with the doubled class loaded allows dynamically defined class methods to be expected + 969) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:71 + # ./spec/rspec/mocks/matchers/receive_spec.rb:153 - 970) A class double with the doubled class loaded only allows class methods that exist to be stubbed + 970) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:12 + # ./spec/rspec/mocks/matchers/receive_spec.rb:159 - 971) A class double with the doubled class loaded can replace existing constants for the duration of the test + 971) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:81 + # ./spec/rspec/mocks/matchers/receive_spec.rb:133 - 972) A class double with the doubled class loaded validates `with` args against the method signature when stubbing a method + 972) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:123 + # ./spec/rspec/mocks/matchers/receive_spec.rb:81 - 973) A class double with the doubled class loaded can transfer nested constants to the double + 973) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:92 + # ./spec/rspec/mocks/matchers/receive_spec.rb:106 - 974) A class double with the doubled class loaded only allows class methods that exist to be expected + 974) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:20 + # ./spec/rspec/mocks/matchers/receive_spec.rb:90 - 975) A class double with the doubled class loaded checks that stubbed methods are invoked with the correct arity + 975) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:50 + # ./spec/rspec/mocks/matchers/receive_spec.rb:502 - 976) A class double with the doubled class loaded doesn't suggest `instance_double` when a non-instance method is stubbed' + 976) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:38 + # ./spec/rspec/mocks/matchers/receive_spec.rb:337 - 977) A class double with the doubled class loaded only allows defined methods for null objects + 977) 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/verifying_doubles/class_double_with_class_loaded_spec.rb:108 + # ./spec/rspec/mocks/matchers/receive_spec.rb:347 - 978) A class double with the doubled class loaded when given a class that has an overridden `#name` method can still stub the const + 978) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance does not expect the message to be received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:197 + # ./spec/rspec/mocks/matchers/receive_spec.rb:233 - 979) A class double with the doubled class loaded when given a class that has an overridden `#name` method properly verifies + 979) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does not get confused by messages being passed as strings and symbols # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:193 + # ./spec/rspec/mocks/matchers/receive_spec.rb:203 - 980) 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')` + 980) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows chaining off a `do...end` block implementation to be provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:211 + # ./spec/rspec/mocks/matchers/receive_spec.rb:169 - 981) 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)` + 981) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows the caller to constrain the received arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:217 + # ./spec/rspec/mocks/matchers/receive_spec.rb:54 - 982) A class double with the doubled class loaded when given an anonymous class properly verifies + 982) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows the caller to constrain the received arguments by matcher # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:184 + # ./spec/rspec/mocks/matchers/receive_spec.rb:63 - 983) A class double with the doubled class loaded when `.new` is stubbed uses the method signature from `#initialize` for arg verification + 983) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does support inherited matchers # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:135 + # ./spec/rspec/mocks/matchers/receive_spec.rb:197 - 984) 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 + 984) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows the caller to configure how the subject responds # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:142 + # ./spec/rspec/mocks/matchers/receive_spec.rb:49 - 985) 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 + 985) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does not support other matchers # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:167 + # ./spec/rspec/mocks/matchers/receive_spec.rb:191 - 986) A class double with the doubled class loaded when `.new` is stubbed on a class that has undefined `new` prevents it from being stubbed + 986) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows do...end blocks to be passed to the fluent interface methods without getting a warning # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb:154 + # ./spec/rspec/mocks/matchers/receive_spec.rb:211 - 987) Using a partial mock on a proxy object works properly + 987) 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/partial_double_spec.rb:236 + # ./spec/rspec/mocks/matchers/receive_spec.rb:221 - 988) Using a partial mock on a proxy object does not confuse the proxy and the proxied object + 988) 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/partial_double_spec.rb:241 + # ./spec/rspec/mocks/matchers/receive_spec.rb:177 - 989) An instance double with the doubled class loaded allows `send` to be stubbed if it is defined on the class + 989) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher gives precedence to a `{ ... }` block when both forms are provided since that form actually binds to `receive` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:43 + # ./spec/rspec/mocks/matchers/receive_spec.rb:182 - 990) An instance double with the doubled class loaded only allows instance methods that exist to be stubbed + 990) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:12 + # ./spec/rspec/mocks/matchers/receive_spec.rb:90 - 991) An instance double with the doubled class loaded doesn't suggest `class_double` when a non-class method is stubbed + 991) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver fails to expect to receive hash with keyword args # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:38 + # ./spec/rspec/mocks/matchers/receive_spec.rb:133 - 992) An instance double with the doubled class loaded checks the arity of stubbed methods + 992) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:70 + # ./spec/rspec/mocks/matchers/receive_spec.rb:106 - 993) An instance double with the doubled class loaded checks that stubbed methods with required keyword args are invoked with the required arguments + 993) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance behaves like a receive matcher without yielding receiver expects to receive hash with a hash # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:133 + # ./spec/rspec/mocks/matchers/receive_spec.rb:153 - 994) An instance double with the doubled class loaded validates `with` args against the method signature when stubbing a method + 994) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:142 + # ./spec/rspec/mocks/matchers/receive_spec.rb:98 - 995) An instance double with the doubled class loaded only allows instance methods that exist to be expected + 995) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:20 + # ./spec/rspec/mocks/matchers/receive_spec.rb:118 - 996) An instance double with the doubled class loaded suggests using `class_double` when a class method is stubbed + 996) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:33 + # ./spec/rspec/mocks/matchers/receive_spec.rb:159 - 997) An instance double with the doubled class loaded allows keyword arguments + 997) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:87 + # ./spec/rspec/mocks/matchers/receive_spec.rb:126 - 998) An instance double with the doubled class loaded checks that stubbed methods are invoked with the correct arity + 998) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:79 + # ./spec/rspec/mocks/matchers/receive_spec.rb:81 - 999) An instance double with the doubled class loaded does not allow dynamic methods to be expected + 999) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:57 + # ./spec/rspec/mocks/matchers/receive_spec.rb:696 - 1000) An instance double with the doubled class loaded allows class to be specified by constant + 1000) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:149 + # ./spec/rspec/mocks/matchers/receive_spec.rb:704 - 1001) An instance double with the doubled class loaded gives a descriptive error message for NoMethodError + 1001) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:49 + # ./spec/rspec/mocks/matchers/receive_spec.rb:662 - 1002) An instance double with the doubled class loaded for null objects verifies arguments + 1002) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:188 + # ./spec/rspec/mocks/matchers/receive_spec.rb:672 - 1003) An instance double with the doubled class loaded for null objects reports what public messages it responds to accurately + 1003) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:200 + # ./spec/rspec/mocks/matchers/receive_spec.rb:652 - 1004) 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 + 1004) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:210 + # ./spec/rspec/mocks/matchers/receive_spec.rb:642 - 1005) An instance double with the doubled class loaded for null objects includes the double's name in a private method error + 1005) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).not_to receive behaves like an expect syntax negative expectation sets up a negative message expectation that passes if the message is not received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:194 + # ./spec/rspec/mocks/matchers/receive_spec.rb:288 - 1006) An instance double with the doubled class loaded for null objects reports that it responds to protected methods when the appropriate arg is passed + 1006) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).not_to receive behaves like an expect syntax negative expectation allows the caller to constrain the received arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:223 + # ./spec/rspec/mocks/matchers/receive_spec.rb:309 - 1007) An instance double with the doubled class loaded for null objects only allows defined methods + 1007) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).not_to receive behaves like an expect syntax negative expectation sets up a negative message expectation that fails if the message is received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:181 + # ./spec/rspec/mocks/matchers/receive_spec.rb:293 - 1008) An instance double with the doubled class loaded when given a class that has an overridden `#name` method properly verifies + 1008) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).not_to receive behaves like an expect syntax negative expectation supports `to_not` as an alias for `not_to` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:171 + # ./spec/rspec/mocks/matchers/receive_spec.rb:301 - 1009) 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')` + 1009) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).not_to receive behaves like an expect syntax negative expectation prevents confusing double-negative expressions involving `never` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:157 + # ./spec/rspec/mocks/matchers/receive_spec.rb:322 - 1010) 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)` + 1010) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:163 + # ./spec/rspec/mocks/matchers/receive_spec.rb:758 - 1011) 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 + 1011) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework last behaves like using rspec-mocks in another test framework supports `expect(...).not_to receive` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:115 + # ./spec/rspec/mocks/matchers/receive_spec.rb:662 - 1012) 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 + 1012) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:106 + # ./spec/rspec/mocks/matchers/receive_spec.rb:652 - 1013) 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 + 1013) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework last behaves like using rspec-mocks in another test framework can use the `expect` syntax # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb:93 + # ./spec/rspec/mocks/matchers/receive_spec.rb:642 - 1014) 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 + 1014) 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/verifying_doubles/instance_double_with_class_loaded_spec.rb:100 + # ./spec/rspec/mocks/matchers/receive_spec.rb:672 - 1015) An instance double with the doubled class loaded for a method that accepts a mix of optional keyword and positional args allows hash matchers like `hash_including` to be used in place of the keywords arg hash + 1015) #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/verifying_doubles/instance_double_with_class_loaded_spec.rb:126 + # ./spec/rspec/mocks/null_object_double_spec.rb:113 - 1016) only stashing the original method keeps the original method intact after multiple expectations are added on the same method + 1016) 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/stash_spec.rb:12 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:10 - 1017) and_return when no argument is passed raises ArgumentError + 1017) 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/and_return_spec.rb:15 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:6 - 1018) and_return when a block is passed raises ArgumentError + 1018) 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/and_return_spec.rb:7 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:95 - 1019) unstubbing with `and_call_original` replaces the stubbed method with the original method + 1019) 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/stub_implementation_spec.rb:30 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:75 - 1020) unstubbing with `and_call_original` does not remove any expectations with the same method name + 1020) 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/stub_implementation_spec.rb:47 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:83 - 1021) unstubbing with `and_call_original` removes all stubs with the supplied method name + 1021) 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/stub_implementation_spec.rb:38 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:79 - 1022) 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 + 1022) 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/stub_implementation_spec.rb:58 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:91 - 1023) 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 + 1023) 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/stub_implementation_spec.rb:71 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:87 - 1024) unstubbing with `and_call_original` when partial doubles are verified restores the correct implementations when stubbed and unstubbed on a grandparent and grandchild class + 1024) 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/stub_implementation_spec.rb:71 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:71 - 1025) unstubbing with `and_call_original` when partial doubles are verified handles keyword arguments correctly + 1025) 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/stub_implementation_spec.rb:97 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:21 - 1026) unstubbing with `and_call_original` when partial doubles are verified restores the correct implementations when stubbed and unstubbed on a parent and child class + 1026) 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/stub_implementation_spec.rb:58 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:25 - 1027) Method visibility for verified doubles for an instance double (when the class is loaded) preserves private visibility when expecting a private method + 1027) 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/verifying_doubles/method_visibility_spec.rb:36 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:17 - 1028) Method visibility for verified doubles for an instance double (when the class is loaded) can expect a protected instance method + 1028) 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/verifying_doubles/method_visibility_spec.rb:22 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:34 - 1029) Method visibility for verified doubles for an instance double (when the class is loaded) can allow a private instance method + 1029) 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/verifying_doubles/method_visibility_spec.rb:16 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:30 - 1030) Method visibility for verified doubles for an instance double (when the class is loaded) preserves private visibility on a null object + 1030) 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/verifying_doubles/method_visibility_spec.rb:45 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:38 - 1031) Method visibility for verified doubles for an instance double (when the class is loaded) preserves protected visibility when allowing a protected method + 1031) 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/verifying_doubles/method_visibility_spec.rb:28 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:52 - 1032) Method visibility for verified doubles for an instance double (when the class is loaded) preserves protected visibility on a null object + 1032) 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/verifying_doubles/method_visibility_spec.rb:45 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:48 - 1033) Method visibility for verified doubles for an instance double (when the class is loaded) preserves protected visibility when expecting a protected method + 1033) 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/verifying_doubles/method_visibility_spec.rb:36 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:64 - 1034) Method visibility for verified doubles for an instance double (when the class is loaded) preserves private visibility when allowing a private method + 1034) 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/verifying_doubles/method_visibility_spec.rb:28 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:60 - 1035) Method visibility for verified doubles for an instance double (when the class is loaded) can expect a private instance method + 1035) 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/verifying_doubles/method_visibility_spec.rb:22 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:44 - 1036) Method visibility for verified doubles for an instance double (when the class is loaded) can allow a protected instance method + 1036) 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/verifying_doubles/method_visibility_spec.rb:16 + # ./spec/rspec/mocks/hash_including_matcher_spec.rb:56 - 1037) Method visibility for verified doubles for a class double (when the class is loaded) preserves protected visibility when expecting a protected method + 1037) 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/verifying_doubles/method_visibility_spec.rb:80 + # ./spec/rspec/mocks/stub_chain_spec.rb:152 - 1038) Method visibility for verified doubles for a class double (when the class is loaded) preserves protected visibility on a null object + 1038) 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/verifying_doubles/method_visibility_spec.rb:89 + # ./spec/rspec/mocks/stub_chain_spec.rb:160 - 1039) Method visibility for verified doubles for a class double (when the class is loaded) can allow a protected instance method + 1039) 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/verifying_doubles/method_visibility_spec.rb:60 + # ./spec/rspec/mocks/stub_chain_spec.rb:96 - 1040) Method visibility for verified doubles for a class double (when the class is loaded) preserves private visibility when allowing a private method + 1040) 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/verifying_doubles/method_visibility_spec.rb:72 + # ./spec/rspec/mocks/stub_chain_spec.rb:147 - 1041) Method visibility for verified doubles for a class double (when the class is loaded) can expect a protected instance method + 1041) 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/verifying_doubles/method_visibility_spec.rb:66 + # ./spec/rspec/mocks/stub_chain_spec.rb:6 - 1042) Method visibility for verified doubles for a class double (when the class is loaded) can expect a private instance method + 1042) 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/verifying_doubles/method_visibility_spec.rb:66 + # ./spec/rspec/mocks/stub_chain_spec.rb:75 - 1043) Method visibility for verified doubles for a class double (when the class is loaded) preserves private visibility on a null object + 1043) 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/verifying_doubles/method_visibility_spec.rb:89 + # ./spec/rspec/mocks/stub_chain_spec.rb:82 - 1044) Method visibility for verified doubles for a class double (when the class is loaded) preserves protected visibility when allowing a protected method + 1044) 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/verifying_doubles/method_visibility_spec.rb:72 + # ./spec/rspec/mocks/stub_chain_spec.rb:68 - 1045) Method visibility for verified doubles for a class double (when the class is loaded) can allow a private instance method + 1045) 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/verifying_doubles/method_visibility_spec.rb:60 + # ./spec/rspec/mocks/stub_chain_spec.rb:89 - 1046) Method visibility for verified doubles for a class double (when the class is loaded) preserves private visibility when expecting a private method + 1046) A chained method stub with two methods in chain accepts any number of arguments to the stubbed messages in the chain # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb:80 + # ./spec/rspec/mocks/stub_chain_spec.rb:38 - 1047) RSpec::Mocks::AnyInstance::MessageChains knows if a method does not have an expectation set on it + 1047) 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/message_chains_spec.rb:7 + # ./spec/rspec/mocks/stub_chain_spec.rb:59 - 1048) RSpec::Mocks::AnyInstance::MessageChains knows if a method has an expectation set on it + 1048) 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/message_chains_spec.rb:12 + # ./spec/rspec/mocks/stub_chain_spec.rb:45 - 1049) RSpec::Mocks::AnyInstance::MessageChains can remove all stub chains + 1049) 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/message_chains_spec.rb:18 + # ./spec/rspec/mocks/stub_chain_spec.rb:52 - 1050) RSpec::Mocks::AnyInstance::MessageChains creating stub chains understands how to add a stub chain for a method + 1050) 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/message_chains_spec.rb:28 + # ./spec/rspec/mocks/stub_chain_spec.rb:104 - 1051) RSpec::Mocks::AnyInstance::MessageChains creating stub chains allows multiple stub chains for a method + 1051) 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/message_chains_spec.rb:33 + # ./spec/rspec/mocks/stub_chain_spec.rb:114 - 1052) Methods added to every object limits the number of methods that get added to all objects + 1052) 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/methods_spec.rb:13 + # ./spec/rspec/mocks/stub_chain_spec.rb:136 - 1053) the spy family of methods spy takes a name and a hash of method names and return values + 1053) 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/spy_spec.rb:21 + # ./spec/rspec/mocks/stub_chain_spec.rb:126 - 1054) the spy family of methods spy responds to arbitrary methods + 1054) 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/spy_spec.rb:5 + # ./spec/rspec/mocks/stub_chain_spec.rb:23 - 1055) the spy family of methods spy records called methods + 1055) 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/spy_spec.rb:13 + # ./spec/rspec/mocks/stub_chain_spec.rb:16 - 1056) the spy family of methods spy takes a name + 1056) 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/spy_spec.rb:9 + # ./spec/rspec/mocks/stub_chain_spec.rb:30 - 1057) the spy family of methods spy takes a hash of method names and return values + 1057) 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/spy_spec.rb:17 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:45 - 1058) the spy family of methods object_spy takes an instance and a hash of method names and return values + 1058) An object double validates `with` args against the method signature when stubbing a method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:105 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:62 - 1059) 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 + 1059) An object double does not allow as_stubbed_constant for real objects # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:45 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:52 - 1060) 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 + 1060) An object double is not a module # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:39 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:58 - 1061) 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 + 1061) An object double can replace an unloaded constant # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:31 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:8 - 1062) the spy family of methods object_spy behaves like a verifying spy with a foo method records called methods + 1062) 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/spy_spec.rb:35 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:32 - 1063) the spy family of methods object_spy behaves like a verifying spy with a foo method responds to methods on the verified object + 1063) An object double can replace a constant by name and verify instance methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/spy_spec.rb:27 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:17 - 1064) the spy family of methods class_spy takes a class and a hash of method names and return values + 1064) 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/spy_spec.rb:123 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:72 - 1065) the spy family of methods class_spy behaves like a verifying spy with a foo method records called methods + 1065) 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/spy_spec.rb:35 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:78 - 1066) 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 + 1066) 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/spy_spec.rb:39 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:129 - 1067) 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 + 1067) 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/spy_spec.rb:31 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:124 - 1068) 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 + 1068) 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/spy_spec.rb:45 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:90 - 1069) the spy family of methods class_spy behaves like a verifying spy with a foo method responds to methods on the verified object + 1069) 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/spy_spec.rb:27 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:96 - 1070) 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 + 1070) 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/spy_spec.rb:84 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:106 - 1071) 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 + 1071) 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/spy_spec.rb:35 + # ./spec/rspec/mocks/verifying_doubles/object_double_spec.rb:111 - 1072) 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 + 1072) #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/spy_spec.rb:31 + # ./spec/rspec/mocks/null_object_double_spec.rb:120 - 1073) 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 + 1073) 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/spy_spec.rb:39 + # ./spec/rspec/mocks/spy_spec.rb:105 - 1074) 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 + 1074) 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/spy_spec.rb:27 + # ./spec/rspec/mocks/spy_spec.rb:31 - 1075) 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 + 1075) 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/spy_spec.rb:45 + # ./spec/rspec/mocks/spy_spec.rb:27 - 1076) the spy family of methods instance_spy when passing a class object takes a class and a hash of method names and return values + 1076) 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/spy_spec.rb:66 + # ./spec/rspec/mocks/spy_spec.rb:39 - 1077) 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 + 1077) 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/spy_spec.rb:45 - 1078) 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/spy_spec.rb:27 - - 1079) the spy family of methods instance_spy when passing a class object behaves like a verifying spy with a foo method records called methods + 1078) 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/spy_spec.rb:35 - 1080) 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 + 1079) 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/spy_spec.rb:31 + # ./spec/rspec/mocks/spy_spec.rb:123 - 1081) 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 + 1080) 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/spy_spec.rb:39 - 1082) Constructing a verifying double can only be named with a string or a module + 1081) 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/verifying_doubles/construction_spec.rb:162 + # ./spec/rspec/mocks/spy_spec.rb:27 - 1083) Constructing a verifying double class doubles declares anonymous modules to verifying double callbacks + 1082) 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/verifying_doubles/construction_spec.rb:119 + # ./spec/rspec/mocks/spy_spec.rb:35 - 1084) Constructing a verifying double class doubles cannot be constructed with a non-module object + 1083) 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/verifying_doubles/construction_spec.rb:104 + # ./spec/rspec/mocks/spy_spec.rb:31 - 1085) Constructing a verifying double class doubles declares named modules to verifying double callbacks + 1084) 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/verifying_doubles/construction_spec.rb:110 + # ./spec/rspec/mocks/spy_spec.rb:45 - 1086) Constructing a verifying double object doubles declares the class to verifying double callbacks + 1085) 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/verifying_doubles/construction_spec.rb:131 + # ./spec/rspec/mocks/spy_spec.rb:66 - 1087) Constructing a verifying double when verify_doubled_constant_names config option is set prevents creation of instance doubles for unloaded constants + 1086) 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/verifying_doubles/construction_spec.rb:149 + # ./spec/rspec/mocks/spy_spec.rb:39 - 1088) Constructing a verifying double when verify_doubled_constant_names config option is set prevents creation of class doubles for unloaded constants + 1087) 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/verifying_doubles/construction_spec.rb:155 + # ./spec/rspec/mocks/spy_spec.rb:31 - 1089) Constructing a verifying double instance doubles allows named constants to be looked up and declared to verifying double callbacks + 1088) 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/verifying_doubles/construction_spec.rb:29 + # ./spec/rspec/mocks/spy_spec.rb:35 - 1090) Constructing a verifying double instance doubles allows classes to be customised + 1089) 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/verifying_doubles/construction_spec.rb:52 + # ./spec/rspec/mocks/spy_spec.rb:27 - 1091) Constructing a verifying double instance doubles allows anonymous constants to be looked up and declared to verifying double callbacks + 1090) 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/verifying_doubles/construction_spec.rb:40 + # ./spec/rspec/mocks/spy_spec.rb:45 - 1092) Constructing a verifying double instance doubles can be constructed with a struct + 1091) 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/verifying_doubles/construction_spec.rb:24 + # ./spec/rspec/mocks/spy_spec.rb:84 - 1093) Constructing a verifying double instance doubles cannot be constructed with a non-module object + 1092) 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/verifying_doubles/construction_spec.rb:18 + # ./spec/rspec/mocks/spy_spec.rb:31 - 1094) Constructing a verifying double instance doubles any_instance calls the callback for allow_any_instance_of + 1093) 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/verifying_doubles/construction_spec.rb:85 + # ./spec/rspec/mocks/spy_spec.rb:35 - 1095) Constructing a verifying double instance doubles any_instance calls the callback for expect_any_instance_of + 1094) 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/verifying_doubles/construction_spec.rb:77 + # ./spec/rspec/mocks/spy_spec.rb:45 - 1096) Constructing a verifying double instance doubles any_instance should not call the callback if verify_partial_doubles is off + 1095) 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/verifying_doubles/construction_spec.rb:93 + # ./spec/rspec/mocks/spy_spec.rb:39 - 1097) OrderGroup #consume keeps returning ordered? expectation until all are returned + 1096) 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/order_group_spec.rb:21 + # ./spec/rspec/mocks/spy_spec.rb:27 - 1098) OrderGroup #consume returns the first ordered? expectation + 1097) 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/order_group_spec.rb:18 + # ./spec/rspec/mocks/spy_spec.rb:21 - 1099) RSpec::Mocks::Matchers::Receive has a description before being matched + 1098) 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/matchers/receive_spec.rb:636 + # ./spec/rspec/mocks/spy_spec.rb:17 - 1100) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework last can use `expect` with any matcher + 1099) 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/matchers/receive_spec.rb:758 + # ./spec/rspec/mocks/spy_spec.rb:13 - 1101) 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 + 1100) 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/matchers/receive_spec.rb:642 + # ./spec/rspec/mocks/spy_spec.rb:9 - 1102) 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` + 1101) 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/matchers/receive_spec.rb:672 + # ./spec/rspec/mocks/spy_spec.rb:5 - 1103) 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` + 1102) Supporting Rails monkey patches works when Rails has monkey patched #with # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:662 + # ./spec/integration/rails_support_spec.rb:10 - 1104) 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 + 1103) 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/matchers/receive_spec.rb:652 + # ./spec/integration/rails_support_spec.rb:37 - 1105) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation provides a useful matcher description + 1104) 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/matchers/receive_spec.rb:278 + # ./spec/rspec/mocks/stub_spec.rb:88 - 1106) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation reports the line number of expectation of unreceived message + 1105) 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/matchers/receive_spec.rb:268 + # ./spec/rspec/mocks/stub_spec.rb:78 - 1107) 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 + 1106) A method stub instructs a class object to respond_to the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:254 + # ./spec/rspec/mocks/stub_spec.rb:44 - 1108) 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 + 1107) 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/matchers/receive_spec.rb:260 + # ./spec/rspec/mocks/stub_spec.rb:453 - 1109) 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 + 1108) A method stub remains private when it stubs a private class method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:493 + # ./spec/rspec/mocks/stub_spec.rb:93 - 1110) 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 + 1109) A method stub returns values in order to consecutive calls # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:177 + # ./spec/rspec/mocks/stub_spec.rb:446 - 1111) 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 + 1110) A method stub throws when told to # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:203 + # ./spec/rspec/mocks/stub_spec.rb:486 - 1112) 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` + 1111) 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/matchers/receive_spec.rb:182 + # ./spec/rspec/mocks/stub_spec.rb:462 - 1113) 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 + 1112) 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/matchers/receive_spec.rb:169 + # ./spec/rspec/mocks/stub_spec.rb:479 - 1114) 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 + 1113) 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/matchers/receive_spec.rb:49 + # ./spec/rspec/mocks/stub_spec.rb:57 - 1115) 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 + 1114) A method stub yields multiple times with multiple calls to and_yield # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:221 + # ./spec/rspec/mocks/stub_spec.rb:470 - 1116) 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 + 1115) 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/matchers/receive_spec.rb:63 + # ./spec/rspec/mocks/stub_spec.rb:39 - 1117) 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 + 1116) A method stub overrides a pre-existing method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:54 + # ./spec/rspec/mocks/stub_spec.rb:496 - 1118) 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 + 1117) 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/matchers/receive_spec.rb:211 + # ./spec/rspec/mocks/stub_spec.rb:72 - 1119) 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 + 1118) 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/matchers/receive_spec.rb:153 + # ./spec/rspec/mocks/stub_spec.rb:491 - 1120) 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 + 1119) 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/matchers/receive_spec.rb:90 + # ./spec/rspec/mocks/stub_spec.rb:49 - 1121) 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 + 1120) 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/matchers/receive_spec.rb:118 + # ./spec/rspec/mocks/stub_spec.rb:501 - 1122) 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 + 1121) 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/matchers/receive_spec.rb:159 + # ./spec/rspec/mocks/stub_spec.rb:83 - 1123) 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 + 1122) 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/matchers/receive_spec.rb:106 + # ./spec/rspec/mocks/stub_spec.rb:65 - 1124) 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 + 1123) A method stub allows a stub and an expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:126 + # ./spec/rspec/mocks/stub_spec.rb:507 - 1125) 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 + 1124) 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/matchers/receive_spec.rb:133 + # ./spec/rspec/mocks/stub_spec.rb:151 - 1126) 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 + 1125) 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/matchers/receive_spec.rb:81 + # ./spec/rspec/mocks/stub_spec.rb:143 - 1127) 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 + 1126) 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/matchers/receive_spec.rb:98 + # ./spec/rspec/mocks/stub_spec.rb:189 - 1128) 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 + 1127) 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/matchers/receive_spec.rb:502 + # ./spec/rspec/mocks/stub_spec.rb:178 - 1129) 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 + 1128) 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/matchers/receive_spec.rb:395 + # ./spec/rspec/mocks/stub_spec.rb:199 - 1130) 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 + 1129) 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/matchers/receive_spec.rb:375 + # ./spec/rspec/mocks/stub_spec.rb:158 - 1131) 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 + 1130) 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/matchers/receive_spec.rb:382 + # ./spec/rspec/mocks/stub_spec.rb:168 - 1132) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like handles frozen objects cleanly when adding the method double raises clear error + 1131) 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/matchers/receive_spec.rb:360 + # ./spec/rspec/mocks/stub_spec.rb:231 - 1133) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts passes with at least when the ordering is correct + 1132) 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/matchers/receive_spec.rb:546 + # ./spec/rspec/mocks/stub_spec.rb:214 - 1134) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts passes with at most when the ordering is correct + 1133) 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/matchers/receive_spec.rb:568 + # ./spec/rspec/mocks/stub_spec.rb:99 - 1135) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts fails with exact receive counts when the ordering is incorrect + 1134) 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/matchers/receive_spec.rb:533 + # ./spec/rspec/mocks/stub_spec.rb:107 - 1136) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts passes with exact receive counts when the ordering is correct + 1135) 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/matchers/receive_spec.rb:524 + # ./spec/rspec/mocks/stub_spec.rb:117 - 1137) RSpec::Mocks::Matchers::Receive expect(...).to receive ordered with receive counts does not result in infinite recursion when `respond_to?` is stubbed + 1136) 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/matchers/receive_spec.rb:590 + # ./spec/rspec/mocks/stub_spec.rb:32 - 1138) RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like resets partial mocks cleanly removes the method double + 1137) 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_spec.rb:337 + # ./spec/rspec/mocks/stub_spec.rb:325 - 1139) RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations can toggle the available syntax + 1138) 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/matchers/receive_spec.rb:704 + # ./spec/rspec/mocks/stub_spec.rb:299 - 1140) RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations cannot use `expect` with another matcher + 1139) 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_spec.rb:696 + # ./spec/rspec/mocks/stub_spec.rb:253 - 1141) 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 + 1140) 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/matchers/receive_spec.rb:652 + # ./spec/rspec/mocks/stub_spec.rb:259 - 1142) 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` + 1141) 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/matchers/receive_spec.rb:662 + # ./spec/rspec/mocks/stub_spec.rb:266 - 1143) 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 + 1142) 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/matchers/receive_spec.rb:642 + # ./spec/rspec/mocks/stub_spec.rb:353 - 1144) 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` + 1143) 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/matchers/receive_spec.rb:672 + # ./spec/rspec/mocks/stub_spec.rb:285 - 1145) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like resets partial mocks of any instance cleanly removes the method double + 1144) 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/matchers/receive_spec.rb:347 + # ./spec/rspec/mocks/stub_spec.rb:292 - 1146) 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 + 1145) 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/matchers/receive_spec.rb:260 + # ./spec/rspec/mocks/stub_spec.rb:334 - 1147) 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 + 1146) 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_spec.rb:611 + # ./spec/rspec/mocks/stub_spec.rb:318 - 1148) 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 + 1147) 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/matchers/receive_spec.rb:254 + # ./spec/rspec/mocks/stub_spec.rb:400 - 1149) 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 + 1148) 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/matchers/receive_spec.rb:268 + # ./spec/rspec/mocks/stub_spec.rb:431 - 1150) RSpec::Mocks::Matchers::Receive expect_any_instance_of(...).to receive behaves like an expect syntax expectation provides a useful matcher description + 1149) 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_spec.rb:278 + # ./spec/rspec/mocks/stub_spec.rb:416 - 1151) 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 + 1150) 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/matchers/receive_spec.rb:49 + # ./spec/rspec/mocks/stub_spec.rb:408 - 1152) 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 + 1151) RSpec::Mocks::InstanceMethodStasher does not unnecessarily create obfuscated aliased methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:54 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:58 - 1153) 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 + 1152) RSpec::Mocks::InstanceMethodStasher only stashes methods directly defined on the given class, not its ancestors # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:169 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:45 - 1154) 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 + 1153) RSpec::Mocks::InstanceMethodStasher stashes private instance methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:63 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:32 - 1155) 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 + 1154) RSpec::Mocks::InstanceMethodStasher stashes the current implementation of an instance method so it can be temporarily replaced # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:221 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:18 - 1156) 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 + 1155) RSpec::Mocks::InstanceMethodStasher undefines the original method # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:197 + # ./spec/rspec/mocks/instance_method_stasher_spec.rb:67 - 1157) 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 + 1156) 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/matchers/receive_spec.rb:203 + # ./spec/rspec/mocks/null_object_double_spec.rb:17 - 1158) 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 + 1157) 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/matchers/receive_spec.rb:211 + # ./spec/rspec/mocks/null_object_double_spec.rb:12 - 1159) 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 + 1158) 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/matchers/receive_spec.rb:177 + # ./spec/rspec/mocks/null_object_double_spec.rb:8 - 1160) 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` + 1159) RSpec::Mocks::Double fails when args are expected but none are received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:182 + # ./spec/rspec/mocks/double_spec.rb:416 - 1161) 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 + 1160) 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/matchers/receive_spec.rb:191 + # ./spec/rspec/mocks/double_spec.rb:20 - 1162) 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 + 1161) RSpec::Mocks::Double reports line number of expectation of unreceived message after a message expectation after similar stub # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:90 + # ./spec/rspec/mocks/double_spec.rb:87 - 1163) 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 + 1162) RSpec::Mocks::Double uses block for expectation if provided # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:81 + # ./spec/rspec/mocks/double_spec.rb:270 - 1164) 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 + 1163) RSpec::Mocks::Double is able to raise from method calling yielding double # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:98 + # ./spec/rspec/mocks/double_spec.rb:559 - 1165) 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 + 1164) 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/matchers/receive_spec.rb:106 + # ./spec/rspec/mocks/double_spec.rb:15 - 1166) 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 + 1165) 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/matchers/receive_spec.rb:118 + # ./spec/rspec/mocks/double_spec.rb:501 - 1167) 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 + 1166) RSpec::Mocks::Double passes proc to stub block with an argument # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:133 + # ./spec/rspec/mocks/double_spec.rb:331 - 1168) 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 + 1167) RSpec::Mocks::Double allows parameter as return value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:153 + # ./spec/rspec/mocks/double_spec.rb:197 - 1169) 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 + 1168) 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/matchers/receive_spec.rb:126 + # ./spec/rspec/mocks/double_spec.rb:580 - 1170) 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 + 1169) 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/matchers/receive_spec.rb:159 + # ./spec/rspec/mocks/double_spec.rb:430 - 1171) 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 + 1170) 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/matchers/receive_spec.rb:288 + # ./spec/rspec/mocks/double_spec.rb:587 - 1172) 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` + 1171) 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/matchers/receive_spec.rb:322 + # ./spec/rspec/mocks/double_spec.rb:52 - 1173) 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` + 1172) 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/matchers/receive_spec.rb:301 + # ./spec/rspec/mocks/double_spec.rb:264 - 1174) 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 + 1173) 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/matchers/receive_spec.rb:309 + # ./spec/rspec/mocks/double_spec.rb:123 - 1175) 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 + 1174) 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/matchers/receive_spec.rb:293 + # ./spec/rspec/mocks/double_spec.rb:635 - 1176) RSpec::Mocks::Matchers::Receive allow(...).not_to receive behaves like an expect syntax negative allowance is disabled since this expression is confusing + 1175) 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/matchers/receive_spec.rb:240 + # ./spec/rspec/mocks/double_spec.rb:98 - 1177) 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 + 1176) 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/matchers/receive_spec.rb:736 + # ./spec/rspec/mocks/double_spec.rb:31 - 1178) RSpec::Mocks::Matchers::Receive when rspec-expectations is included in the test framework first can use `expect` with any matcher + 1177) 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/matchers/receive_spec.rb:730 + # ./spec/rspec/mocks/double_spec.rb:11 - 1179) 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 + 1178) RSpec::Mocks::Double raises exception if args don't match when method called even when the method is stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:652 + # ./spec/rspec/mocks/double_spec.rb:234 - 1180) 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` + 1179) 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/matchers/receive_spec.rb:672 + # ./spec/rspec/mocks/double_spec.rb:280 - 1181) 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 + 1180) RSpec::Mocks::Double yields one arg to blocks that take a variable number of arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:642 + # ./spec/rspec/mocks/double_spec.rb:447 - 1182) 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` + 1181) 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/matchers/receive_spec.rb:662 + # ./spec/rspec/mocks/double_spec.rb:243 - 1183) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation supports `to_not` as an alias for `not_to` + 1182) RSpec::Mocks::Double yields many args 3 times consecutively to blocks that take a variable number of arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:301 + # ./spec/rspec/mocks/double_spec.rb:473 - 1184) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation allows the caller to constrain the received arguments + 1183) RSpec::Mocks::Double does not raise when told to if args dont match # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:309 + # ./spec/rspec/mocks/double_spec.rb:386 - 1185) 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 + 1184) 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/matchers/receive_spec.rb:288 + # ./spec/rspec/mocks/double_spec.rb:321 - 1186) RSpec::Mocks::Matchers::Receive expect(...).not_to receive behaves like an expect syntax negative expectation prevents confusing double-negative expressions involving `never` + 1185) 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/matchers/receive_spec.rb:322 + # ./spec/rspec/mocks/double_spec.rb:47 - 1187) 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 + 1186) RSpec::Mocks::Double raises a given instance of an exception # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:293 + # ./spec/rspec/mocks/double_spec.rb:362 - 1188) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like an expect syntax allowance does not expect the message to be received + 1187) RSpec::Mocks::Double raises RuntimeError with a message by default # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:233 + # ./spec/rspec/mocks/double_spec.rb:347 - 1189) 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 + 1188) RSpec::Mocks::Double fails when calling yielding method without block # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:221 + # ./spec/rspec/mocks/double_spec.rb:546 - 1190) 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 + 1189) 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/matchers/receive_spec.rb:191 + # ./spec/rspec/mocks/double_spec.rb:25 - 1191) 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 + 1190) 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/matchers/receive_spec.rb:211 + # ./spec/rspec/mocks/double_spec.rb:150 - 1192) 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 + 1191) 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/matchers/receive_spec.rb:54 + # ./spec/rspec/mocks/double_spec.rb:306 - 1193) 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` + 1192) RSpec::Mocks::Double raises exception if args don't match when method called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:182 + # ./spec/rspec/mocks/double_spec.rb:216 - 1194) 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 + 1193) RSpec::Mocks::Double passes proc to stub block without an argument # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:203 + # ./spec/rspec/mocks/double_spec.rb:326 - 1195) 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 + 1194) 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/matchers/receive_spec.rb:197 + # ./spec/rspec/mocks/double_spec.rb:621 - 1196) 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 + 1195) 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/matchers/receive_spec.rb:63 + # ./spec/rspec/mocks/double_spec.rb:423 - 1197) 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 + 1196) 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/matchers/receive_spec.rb:177 + # ./spec/rspec/mocks/double_spec.rb:109 - 1198) 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 + 1197) 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/matchers/receive_spec.rb:169 + # ./spec/rspec/mocks/double_spec.rb:316 - 1199) 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 + 1198) 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/matchers/receive_spec.rb:49 + # ./spec/rspec/mocks/double_spec.rb:628 - 1200) 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 + 1199) 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/matchers/receive_spec.rb:133 + # ./spec/rspec/mocks/double_spec.rb:605 - 1201) 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 + 1200) 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/matchers/receive_spec.rb:106 + # ./spec/rspec/mocks/double_spec.rb:393 - 1202) 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 + 1201) 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/matchers/receive_spec.rb:98 + # ./spec/rspec/mocks/double_spec.rb:596 - 1203) 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 + 1202) 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/matchers/receive_spec.rb:90 + # ./spec/rspec/mocks/double_spec.rb:60 - 1204) 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 + 1203) RSpec::Mocks::Double generates the correct error when an unfulfilled expectation uses an unused double as a `with` argument # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:81 + # ./spec/rspec/mocks/double_spec.rb:38 - 1205) 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 + 1204) 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/matchers/receive_spec.rb:118 + # ./spec/rspec/mocks/double_spec.rb:653 - 1206) 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 + 1205) 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/matchers/receive_spec.rb:159 + # ./spec/rspec/mocks/double_spec.rb:483 - 1207) 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 + 1206) 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/matchers/receive_spec.rb:153 + # ./spec/rspec/mocks/double_spec.rb:357 - 1208) 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 + 1207) 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/matchers/receive_spec.rb:126 + # ./spec/rspec/mocks/double_spec.rb:140 - 1209) RSpec::Mocks::Matchers::Receive allow_any_instance_of(...).to receive behaves like resets partial mocks of any instance cleanly removes the method double + 1208) 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/matchers/receive_spec.rb:347 + # ./spec/rspec/mocks/double_spec.rb:103 - 1210) 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 + 1209) 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/matchers/receive_spec.rb:240 + # ./spec/rspec/mocks/double_spec.rb:438 - 1211) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance does not expect the message to be received + 1210) 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/matchers/receive_spec.rb:233 + # ./spec/rspec/mocks/double_spec.rb:643 - 1212) 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 + 1211) 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/matchers/receive_spec.rb:203 + # ./spec/rspec/mocks/double_spec.rb:465 - 1213) 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 + 1212) 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/matchers/receive_spec.rb:211 + # ./spec/rspec/mocks/double_spec.rb:302 - 1214) 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 + 1213) 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/matchers/receive_spec.rb:177 + # ./spec/rspec/mocks/double_spec.rb:130 - 1215) 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 + 1214) 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/matchers/receive_spec.rb:49 + # ./spec/rspec/mocks/double_spec.rb:336 - 1216) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does support inherited matchers + 1215) RSpec::Mocks::Double is able to double send # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:197 + # ./spec/rspec/mocks/double_spec.rb:553 - 1217) 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 + 1216) 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/matchers/receive_spec.rb:169 + # ./spec/rspec/mocks/double_spec.rb:510 - 1218) 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 + 1217) RSpec::Mocks::Double does not get confused when a positive expectation is used with a string and symbol message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:54 + # ./spec/rspec/mocks/double_spec.rb:187 - 1219) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher does not support other matchers + 1218) RSpec::Mocks::Double is wrappable in an array when a null object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:191 + # ./spec/rspec/mocks/double_spec.rb:296 - 1220) 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 + 1219) 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/matchers/receive_spec.rb:221 + # ./spec/rspec/mocks/double_spec.rb:71 - 1221) 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 + 1220) RSpec::Mocks::Double fails on no args if any args received # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:63 + # ./spec/rspec/mocks/double_spec.rb:409 - 1222) 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` + 1221) RSpec::Mocks::Double fails when calling yielding method consecutively with wrong arity # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:182 + # ./spec/rspec/mocks/double_spec.rb:536 - 1223) 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 + 1222) RSpec::Mocks::Double returns the previously stubbed value if no return value is set # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:133 + # ./spec/rspec/mocks/double_spec.rb:203 - 1224) 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 + 1223) 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/matchers/receive_spec.rb:153 + # ./spec/rspec/mocks/double_spec.rb:7 - 1225) 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 + 1224) 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/matchers/receive_spec.rb:81 + # ./spec/rspec/mocks/double_spec.rb:352 - 1226) 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 + 1225) 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/matchers/receive_spec.rb:118 + # ./spec/rspec/mocks/double_spec.rb:178 - 1227) 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 + 1226) 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/matchers/receive_spec.rb:98 + # ./spec/rspec/mocks/double_spec.rb:528 - 1228) 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 + 1227) 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/matchers/receive_spec.rb:106 + # ./spec/rspec/mocks/double_spec.rb:611 - 1229) 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 + 1228) 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/matchers/receive_spec.rb:126 + # ./spec/rspec/mocks/double_spec.rb:400 - 1230) 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 + 1229) RSpec::Mocks::Double raises a given instance of an exception with arguments other than the standard 'message' # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:159 + # ./spec/rspec/mocks/double_spec.rb:375 - 1231) 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 + 1230) RSpec::Mocks::Double raises RuntimeError by default # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:90 + # ./spec/rspec/mocks/double_spec.rb:342 - 1232) RSpec::Mocks::Matchers::Receive allow(...).to receive ordered with receive counts is not supported + 1231) RSpec::Mocks::Double is wrappable in an array # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:417 + # ./spec/rspec/mocks/double_spec.rb:290 - 1233) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like resets partial mocks cleanly removes the method double + 1232) 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/matchers/receive_spec.rb:337 + # ./spec/rspec/mocks/double_spec.rb:491 - 1234) 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 + 1233) RSpec::Mocks::Double yields one arg 3 times consecutively to blocks that take a variable number of arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:451 + # ./spec/rspec/mocks/double_spec.rb:455 - 1235) 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 + 1234) 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/matchers/receive_spec.rb:446 + # ./spec/rspec/mocks/double_spec.rb:520 - 1236) 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 + 1235) RSpec::Mocks::Double clears expectations after verify # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:431 + # ./spec/rspec/mocks/double_spec.rb:571 - 1237) 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 + 1236) RSpec::Mocks::Double returns nil if no return value is set and there is no previously stubbed value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_spec.rb:439 + # ./spec/rspec/mocks/double_spec.rb:210 - 1238) 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 + 1237) 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/matchers/receive_spec.rb:382 + # ./spec/rspec/mocks/double_spec.rb:77 - 1239) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like handles frozen objects cleanly when removing the method double warns about being unable to remove the method double + 1238) 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/matchers/receive_spec.rb:375 + # ./spec/rspec/mocks/double_spec.rb:722 - 1240) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like handles frozen objects cleanly when adding the method double raises clear error + 1239) 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/matchers/receive_spec.rb:360 + # ./spec/rspec/mocks/double_spec.rb:224 - 1241) RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like handles frozen objects cleanly with fake frozen object allows the caller to configure how the subject responds + 1240) 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/matchers/receive_spec.rb:395 + # ./spec/rspec/mocks/double_spec.rb:710 - 1242) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders warns about allow(Klass.any_instance).to receive... + 1241) 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/matchers/receive_spec.rb:9 + # ./spec/rspec/mocks/double_spec.rb:685 - 1243) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders includes the correct call site in the expect warning + 1242) 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/matchers/receive_spec.rb:26 + # ./spec/rspec/mocks/double_spec.rb:693 - 1244) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders warns about expect(Klass.any_instance).to receive... + 1243) 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/matchers/receive_spec.rb:19 + # ./spec/rspec/mocks/double_spec.rb:676 - 1245) RSpec::Mocks::Matchers::Receive expectations/allowances on any instance recorders includes the correct call site in the allow warning + 1244) 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/matchers/receive_spec.rb:14 + # ./spec/rspec/mocks/double_spec.rb:702 - 1246) an expectation set on nil issues a warning with file and line number information + 1245) 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/nil_expectation_warning_spec.rb:4 + # ./spec/rspec/mocks/double_spec.rb:668 - 1247) an expectation set on nil does not issue a warning when expectations are set to be allowed + 1246) 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/nil_expectation_warning_spec.rb:24 + # ./spec/rspec/mocks/double_spec.rb:253 - 1248) an expectation set on nil does not call #nil? on a double extra times + 1247) 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/nil_expectation_warning_spec.rb:60 + # ./spec/rspec/mocks/double_spec.rb:744 - 1249) an expectation set on nil issues a warning when the expectation is negative + 1248) 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/nil_expectation_warning_spec.rb:15 + # ./spec/rspec/mocks/double_spec.rb:739 - 1250) an expectation set on nil configured to disallow expectations on nil raises an error when expectations on nil are disallowed + 1249) 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/nil_expectation_warning_spec.rb:53 + # ./spec/rspec/mocks/double_spec.rb:730 - 1251) an expectation set on nil configured to allow expectation on nil does not issue a warning when expectations are set to be allowed + 1250) 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/nil_expectation_warning_spec.rb:38 + # ./spec/rspec/mocks/double_spec.rb:752 - 1252) a message expectation with multiple invoke handlers with a specified count equal to the number of values returns values in order to consecutive calls + 1251) 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/multiple_invoke_handler_spec.rb:47 + # ./spec/rspec/mocks/double_spec.rb:162 - 1253) and_invoke when a block is passed raises ArgumentError + 1252) 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/and_invoke_spec.rb:7 + # ./spec/rspec/mocks/double_spec.rb:170 - 1254) and_invoke when a non-callable are passed in any position raises ArgumentError + 1253) 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/and_invoke_spec.rb:24 + # ./spec/rspec/mocks/double_spec.rb:808 - 1255) and_invoke when no argument is passed raises ArgumentError + 1254) 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/and_invoke_spec.rb:15 + # ./spec/rspec/mocks/double_spec.rb:815 - 1256) and_invoke when calling passed callables passes the arguments into the callable + 1255) 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/and_invoke_spec.rb:35 + # ./spec/rspec/mocks/double_spec.rb:794 - 1257) a message expectation with multiple return values and no specified count returns values in order + 1256) 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/multiple_return_value_spec.rb:23 + # ./spec/rspec/mocks/double_spec.rb:772 - 1258) a message expectation with multiple return values and no specified count falls back to a previously stubbed value + 1257) 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/multiple_return_value_spec.rb:30 + # ./spec/rspec/mocks/double_spec.rb:765 - 1259) a message expectation with multiple return values and no specified count fails when there are too many calls (if there is no stub) + 1258) 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/multiple_return_value_spec.rb:44 + # ./spec/rspec/mocks/double_spec.rb:782 - 1260) a message expectation with multiple return values and no specified count fails when there are too few calls (if there is no stub) + 1259) 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/multiple_return_value_spec.rb:38 + # ./spec/rspec/mocks/stash_spec.rb:26 - 1261) 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 + 1260) 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/matchers/have_received_spec.rb:30 + # ./spec/rspec/mocks/partial_double_spec.rb:112 - 1262) 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 + 1261) 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/matchers/have_received_spec.rb:183 + # ./spec/rspec/mocks/partial_double_spec.rb:145 - 1263) 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 + 1262) 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/matchers/have_received_spec.rb:35 + # ./spec/rspec/mocks/partial_double_spec.rb:64 - 1264) 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 + 1263) 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/matchers/have_received_spec.rb:90 + # ./spec/rspec/mocks/partial_double_spec.rb:12 - 1265) 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 + 1264) 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/matchers/have_received_spec.rb:25 + # ./spec/rspec/mocks/partial_double_spec.rb:160 - 1266) 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 + 1265) 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/matchers/have_received_spec.rb:124 + # ./spec/rspec/mocks/partial_double_spec.rb:168 - 1267) 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` + 1266) 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/matchers/have_received_spec.rb:134 + # ./spec/rspec/mocks/partial_double_spec.rb:46 - 1268) 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 + 1267) 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/matchers/have_received_spec.rb:70 + # ./spec/rspec/mocks/partial_double_spec.rb:132 - 1269) 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 + 1268) 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/matchers/have_received_spec.rb:100 + # ./spec/rspec/mocks/partial_double_spec.rb:119 - 1270) 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 + 1269) 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/matchers/have_received_spec.rb:195 + # ./spec/rspec/mocks/partial_double_spec.rb:26 - 1271) 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 + 1270) 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/matchers/have_received_spec.rb:111 + # ./spec/rspec/mocks/partial_double_spec.rb:124 - 1272) 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 + 1271) 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/matchers/have_received_spec.rb:80 + # ./spec/rspec/mocks/partial_double_spec.rb:86 - 1273) 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 + 1272) 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/matchers/have_received_spec.rb:43 + # ./spec/rspec/mocks/partial_double_spec.rb:6 - 1274) 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 + 1273) 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/matchers/have_received_spec.rb:54 + # ./spec/rspec/mocks/partial_double_spec.rb:79 - 1275) 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) + 1274) 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/matchers/have_received_spec.rb:188 + # ./spec/rspec/mocks/partial_double_spec.rb:74 - 1276) 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 + 1275) 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/matchers/have_received_spec.rb:62 + # ./spec/rspec/mocks/partial_double_spec.rb:95 - 1277) 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 + 1276) 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/matchers/have_received_spec.rb:156 + # ./spec/rspec/mocks/partial_double_spec.rb:32 - 1278) 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 + 1277) 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/matchers/have_received_spec.rb:146 + # ./spec/rspec/mocks/partial_double_spec.rb:19 - 1279) 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 + 1278) 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/matchers/have_received_spec.rb:447 + # ./spec/rspec/mocks/partial_double_spec.rb:100 - 1280) 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 + 1279) 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:455 + # ./spec/rspec/mocks/argument_matchers_spec.rb:30 - 1281) 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 + 1280) 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:517 + # ./spec/rspec/mocks/argument_matchers_spec.rb:35 - 1282) 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 + 1281) 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:484 + # ./spec/rspec/mocks/argument_matchers_spec.rb:53 - 1283) 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 + 1282) 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:538 + # ./spec/rspec/mocks/argument_matchers_spec.rb:47 - 1284) 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 + 1283) 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:533 + # ./spec/rspec/mocks/argument_matchers_spec.rb:40 - 1285) 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 + 1284) argument matchers matching handling objects with a wrong definition of `==` that raises errors for other types can match multiple instances of the type against multiple equal instances of the type # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:555 + # ./spec/rspec/mocks/argument_matchers_spec.rb:383 - 1286) 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 + 1285) argument matchers matching handling objects with a wrong definition of `==` that raises errors for other types matches against an equal instance of the same type # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:560 + # ./spec/rspec/mocks/argument_matchers_spec.rb:373 - 1287) 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 + 1286) argument matchers matching handling objects with a wrong definition of `==` that raises errors for other types fails when matched against an unequal instance of the same class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:169 + # ./spec/rspec/mocks/argument_matchers_spec.rb:378 - 1288) 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 + 1287) argument matchers matching boolean accepts true as boolean # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:174 + # ./spec/rspec/mocks/argument_matchers_spec.rb:11 - 1289) 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 + 1288) argument matchers matching boolean rejects non boolean # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:347 + # ./spec/rspec/mocks/argument_matchers_spec.rb:21 - 1290) 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 + 1289) argument matchers matching boolean accepts false as boolean # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:339 + # ./spec/rspec/mocks/argument_matchers_spec.rb:16 - 1291) 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 + 1290) argument matchers matching handling non-matcher arguments matches string against regexp # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:343 + # ./spec/rspec/mocks/argument_matchers_spec.rb:397 - 1292) 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 + 1291) argument matchers matching handling non-matcher arguments fails a class against an object of a different type # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:315 + # ./spec/rspec/mocks/argument_matchers_spec.rb:473 - 1293) 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 + 1292) argument matchers matching handling non-matcher arguments fails with sensible message when args respond to #description # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:297 + # ./spec/rspec/mocks/argument_matchers_spec.rb:484 - 1294) 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 + 1293) argument matchers matching handling non-matcher arguments matches a class against an instance of itself # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:301 + # ./spec/rspec/mocks/argument_matchers_spec.rb:468 - 1295) 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 + 1294) argument matchers matching handling non-matcher arguments fails with zero arguments # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:323 + # ./spec/rspec/mocks/argument_matchers_spec.rb:478 - 1296) 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 + 1295) argument matchers matching handling non-matcher arguments matches against a hash submitted as keyword arguments a and received as a positional argument (in both Ruby 2 and Ruby 3) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:331 + # ./spec/rspec/mocks/argument_matchers_spec.rb:422 - 1297) 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 + 1296) argument matchers matching handling non-matcher arguments matches a class against itself # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:327 + # ./spec/rspec/mocks/argument_matchers_spec.rb:458 - 1298) 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 + 1297) argument matchers matching handling non-matcher arguments matches against a hash submitted and received by value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:355 + # ./spec/rspec/mocks/argument_matchers_spec.rb:417 - 1299) 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 + 1298) argument matchers matching handling non-matcher arguments fails with sensible message when arg#description is nil # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:369 + # ./spec/rspec/mocks/argument_matchers_spec.rb:491 - 1300) 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 + 1299) argument matchers matching handling non-matcher arguments fails for a hash w/ wrong keys # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:361 + # ./spec/rspec/mocks/argument_matchers_spec.rb:451 - 1301) 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 + 1300) argument matchers matching handling non-matcher arguments fails if regexp does not match submitted string # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:381 + # ./spec/rspec/mocks/argument_matchers_spec.rb:407 - 1302) 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 + 1301) argument matchers matching handling non-matcher arguments fails to match against a hash submitted as a positional argument and received as keyword arguments in Ruby 3.0 or later # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:389 + # ./spec/rspec/mocks/argument_matchers_spec.rb:429 - 1303) 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 + 1302) argument matchers matching handling non-matcher arguments fails with sensible message when arg#description is blank # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:398 + # ./spec/rspec/mocks/argument_matchers_spec.rb:498 - 1304) 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 + 1303) argument matchers matching handling non-matcher arguments fails a class against an unrelated class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:430 + # ./spec/rspec/mocks/argument_matchers_spec.rb:463 - 1305) 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 + 1304) argument matchers matching handling non-matcher arguments fails if regexp does not match submitted regexp # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:411 + # ./spec/rspec/mocks/argument_matchers_spec.rb:412 - 1306) 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 + 1305) argument matchers matching handling non-matcher arguments fails for a hash w/ wrong values # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:420 + # ./spec/rspec/mocks/argument_matchers_spec.rb:444 - 1307) 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 + 1306) argument matchers matching handling non-matcher arguments matches regexp against regexp # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:215 + # ./spec/rspec/mocks/argument_matchers_spec.rb:402 - 1308) 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 + 1307) argument matchers matching handling arbitrary matchers matches against a Matcher # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:221 + # ./spec/rspec/mocks/argument_matchers_spec.rb:345 - 1309) 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 + 1308) argument matchers matching handling arbitrary matchers matches any arbitrary object using #=== # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:264 + # ./spec/rspec/mocks/argument_matchers_spec.rb:337 - 1310) 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 + 1309) argument matchers matching handling arbitrary matchers fails when given an arbitrary object that returns false from #=== # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:247 + # ./spec/rspec/mocks/argument_matchers_spec.rb:352 - 1311) 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 + 1310) 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:273 + # ./spec/rspec/mocks/argument_matchers_spec.rb:264 - 1312) 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 + 1311) 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:285 + # ./spec/rspec/mocks/argument_matchers_spec.rb:269 - 1313) 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 + 1312) argument matchers matching array_including fails array_including when arg doesn't contain all elements # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:239 + # ./spec/rspec/mocks/argument_matchers_spec.rb:295 - 1314) 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 + 1313) argument matchers matching array_including fails array_including when args aren't array # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:231 + # ./spec/rspec/mocks/argument_matchers_spec.rb:288 - 1315) 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 + 1314) argument matchers matching array_including matches array with array_including same array # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:629 + # ./spec/rspec/mocks/argument_matchers_spec.rb:278 - 1316) 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 + 1315) argument matchers matching array_including matches array with array_including using fuzzymatcher # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:637 + # ./spec/rspec/mocks/argument_matchers_spec.rb:283 - 1317) 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 + 1316) argument matchers matching instance_of rejects non string # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:645 + # ./spec/rspec/mocks/argument_matchers_spec.rb:82 - 1318) 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 + 1317) argument matchers matching instance_of accepts float as instance_of(Float) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:653 + # ./spec/rspec/mocks/argument_matchers_spec.rb:62 - 1319) 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 + 1318) 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:576 + # ./spec/rspec/mocks/argument_matchers_spec.rb:87 - 1320) 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 + 1319) argument matchers matching instance_of does NOT accept integer as instance_of(Numeric) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:584 + # ./spec/rspec/mocks/argument_matchers_spec.rb:72 - 1321) 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 + 1320) 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:619 + # ./spec/rspec/mocks/argument_matchers_spec.rb:67 - 1322) 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 + 1321) argument matchers matching instance_of rejects non numeric # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/argument_matchers_spec.rb:77 - 1323) 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 + 1322) 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:595 + # ./spec/rspec/mocks/argument_matchers_spec.rb:316 - 1324) 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 + 1323) 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:619 + # ./spec/rspec/mocks/argument_matchers_spec.rb:328 - 1325) 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 + 1324) 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:571 + # ./spec/rspec/mocks/argument_matchers_spec.rb:323 - 1326) 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 + 1325) 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:619 + # ./spec/rspec/mocks/argument_matchers_spec.rb:309 - 1327) 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 + 1326) 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:619 + # ./spec/rspec/mocks/argument_matchers_spec.rb:304 - 1328) 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 + 1327) 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/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/argument_matchers_spec.rb:215 - 1329) 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 + 1328) 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/matchers/have_received_spec.rb:604 + # ./spec/rspec/mocks/argument_matchers_spec.rb:199 - 1330) 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 + 1329) 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/matchers/have_received_spec.rb:609 + # ./spec/rspec/mocks/argument_matchers_spec.rb:207 - 1331) 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 + 1330) 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/multiple_invoke_handler_spec.rb:100 + # ./spec/rspec/mocks/argument_matchers_spec.rb:203 - 1332) 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 + 1331) 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/multiple_invoke_handler_spec.rb:106 + # ./spec/rspec/mocks/argument_matchers_spec.rb:211 - 1333) 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 + 1332) 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/multiple_invoke_handler_spec.rb:93 + # ./spec/rspec/mocks/argument_matchers_spec.rb:221 - 1334) Using rspec-mocks features in before(:all) blocks #allow_any_instance_of(...).to receive raises an error with a useful message + 1333) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/argument_matchers_spec.rb:159 - 1335) Using rspec-mocks features in before(:all) blocks #hide_const(for a defined const) does not hide the const + 1334) 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/before_all_spec.rb:30 + # ./spec/rspec/mocks/argument_matchers_spec.rb:167 - 1336) Using rspec-mocks features in before(:all) blocks #hide_const(for a defined const) raises an error with a useful message + 1335) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/argument_matchers_spec.rb:163 - 1337) Using rspec-mocks features in before(:all) blocks #allow(...).to receive raises an error with a useful message + 1336) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/argument_matchers_spec.rb:155 - 1338) Using rspec-mocks features in before(:all) blocks #expect(...).to receive raises an error with a useful message + 1337) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/argument_matchers_spec.rb:151 - 1339) Using rspec-mocks features in before(:all) blocks allow(...).to receive_message_chain raises an error with a useful message + 1338) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/argument_matchers_spec.rb:139 - 1340) Using rspec-mocks features in before(:all) blocks #stub_const does not stub the const + 1339) 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/before_all_spec.rb:10 + # ./spec/rspec/mocks/argument_matchers_spec.rb:135 - 1341) Using rspec-mocks features in before(:all) blocks #stub_const raises an error with a useful message + 1340) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/argument_matchers_spec.rb:143 - 1342) Using rspec-mocks features in before(:all) blocks #hide_const(for an undefined const) raises an error with a useful message + 1341) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/argument_matchers_spec.rb:183 - 1343) Using rspec-mocks features in before(:all) blocks #expect_any_instance_of(...).to receive raises an error with a useful message + 1342) 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/support/before_all_shared_example_group.rb:11 + # ./spec/rspec/mocks/argument_matchers_spec.rb:187 - 1344) a double stubbed with multiple return values can still set a message expectation with a single return value + 1343) 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 - 1345) .expect_message fails if never is specified and the message is called + 1344) 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/syntax_agnostic_message_matchers_spec.rb:66 + # ./spec/rspec/mocks/argument_matchers_spec.rb:179 - 1346) .expect_message sets up basic message expectation, verifies as called + 1345) 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/syntax_agnostic_message_matchers_spec.rb:73 + # ./spec/rspec/mocks/argument_matchers_spec.rb:175 - 1347) .expect_message sets up message expectation with params and return value + 1346) 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/syntax_agnostic_message_matchers_spec.rb:79 + # ./spec/rspec/mocks/argument_matchers_spec.rb:101 - 1348) .expect_message accepts a block implementation for the expected message + 1347) 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/syntax_agnostic_message_matchers_spec.rb:85 + # ./spec/rspec/mocks/argument_matchers_spec.rb:106 - 1349) .expect_message sets up basic message expectation, verifies as uncalled + 1348) 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/syntax_agnostic_message_matchers_spec.rb:56 + # ./spec/rspec/mocks/argument_matchers_spec.rb:96 - 1350) .expect_message does not get confused when the string and symbol message form are both used + 1349) 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/syntax_agnostic_message_matchers_spec.rb:91 + # ./spec/rspec/mocks/argument_matchers_spec.rb:235 - 1351) .expect_message when target cannot be proxied raises ArgumentError with message + 1350) 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/syntax_agnostic_message_matchers_spec.rb:102 + # ./spec/rspec/mocks/argument_matchers_spec.rb:230 - 1352) with default syntax configuration includes the call site in the deprecation warning + 1351) 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/should_syntax_spec.rb:564 + # ./spec/rspec/mocks/argument_matchers_spec.rb:241 - 1353) with default syntax configuration warns about stubbing once, regardless of how many times it is called + 1352) 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/should_syntax_spec.rb:496 + # ./spec/rspec/mocks/argument_matchers_spec.rb:250 - 1354) with default syntax configuration warns about unstubbing once, regardless of how many times it is called + 1353) 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/should_syntax_spec.rb:541 + # ./spec/rspec/mocks/argument_matchers_spec.rb:255 - 1355) with default syntax configuration it warns about should once, regardless of how many times it is called + 1354) 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/should_syntax_spec.rb:475 + # ./spec/rspec/mocks/argument_matchers_spec.rb:123 - 1356) with default syntax configuration doesn't warn about stubbing after a reset and setting should + 1355) 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/should_syntax_spec.rb:554 + # ./spec/rspec/mocks/argument_matchers_spec.rb:118 - 1357) with default syntax configuration warns about should not once, regardless of how many times it is called + 1356) 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/should_syntax_spec.rb:487 + # ./spec/rspec/mocks/argument_matchers_spec.rb:113 - 1358) when verify_partial_doubles configuration option is set allows private methods to be expected + 1357) a message expectation with multiple return values with a specified count equal to the number of values returns values in order to consecutive calls # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:380 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:60 - 1359) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks before verifying an expectation + 1358) a double acting as a null object allows unexpected message sends using `__send__` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:421 + # ./spec/rspec/mocks/null_object_double_spec.rb:79 - 1360) when verify_partial_doubles configuration option is set allows valid methods to be expected on any_instance + 1359) a double acting as a null object allows expected message with different args first # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:507 + # ./spec/rspec/mocks/null_object_double_spec.rb:84 - 1361) when verify_partial_doubles configuration option is set can be temporarily supressed and nested + 1360) a double acting as a null object allows explicit stubs # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:398 + # ./spec/rspec/mocks/null_object_double_spec.rb:37 - 1362) when verify_partial_doubles configuration option is set can be temporarily supressed + 1361) a double acting as a null object allows unexpected message sends using `send` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:385 + # ./spec/rspec/mocks/null_object_double_spec.rb:74 - 1363) when verify_partial_doubles configuration option is set allows private methods to be expected on any_instance expectation + 1362) a double acting as a null object does not allow null objects to be used outside of examples # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:512 + # ./spec/rspec/mocks/null_object_double_spec.rb:104 - 1364) when verify_partial_doubles configuration option is set allows a method defined with method_missing to be expected + 1363) 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/partial_double_spec.rb:502 + # ./spec/rspec/mocks/null_object_double_spec.rb:42 - 1365) when verify_partial_doubles configuration option is set allows the mock to raise an error with yield + 1364) a double acting as a null object says it responds to everything # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:566 + # ./spec/rspec/mocks/null_object_double_spec.rb:33 - 1366) when verify_partial_doubles configuration option is set does not allow a non-existing method to be expected + 1365) 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/partial_double_spec.rb:487 + # ./spec/rspec/mocks/null_object_double_spec.rb:56 - 1367) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks on any_instance before verifying a double + 1366) 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/partial_double_spec.rb:529 + # ./spec/rspec/mocks/null_object_double_spec.rb:62 - 1368) when verify_partial_doubles configuration option is set does not allow a non-existing method to be called on any_instance + 1367) a double acting as a null object returns a string from `to_str` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:541 + # ./spec/rspec/mocks/null_object_double_spec.rb:47 - 1369) when verify_partial_doubles configuration option is set temporarily supressing partial doubles does not affect normal verifying doubles + 1368) a double acting as a null object allows expected message with different args second # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:413 + # ./spec/rspec/mocks/null_object_double_spec.rb:90 - 1370) when verify_partial_doubles configuration option is set allows valid methods to be expected + 1369) a double acting as a null object can be interpolated in a string as an integer # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:375 + # ./spec/rspec/mocks/null_object_double_spec.rb:96 - 1371) when verify_partial_doubles configuration option is set verifies arity range when matching arguments + 1370) a double acting as a null object ignores unexpected methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:497 + # ./spec/rspec/mocks/null_object_double_spec.rb:69 - 1372) when verify_partial_doubles configuration option is set does not allow missing methods to be called on any_instance + 1371) a double acting as a null object continues to return self from an explicit expectation # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:547 + # ./spec/rspec/mocks/null_object_double_spec.rb:51 - 1373) when verify_partial_doubles configuration option is set does not allow a spy on unimplemented method + 1372) 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/partial_double_spec.rb:491 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:100 - 1374) when verify_partial_doubles configuration option is set verifies arity range when receiving a message + 1373) 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/partial_double_spec.rb:556 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:106 - 1375) when verify_partial_doubles configuration option is set allows stubbing and calls the stubbed implementation + 1374) 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/partial_double_spec.rb:572 + # ./spec/rspec/mocks/multiple_invoke_handler_spec.rb:93 - 1376) when verify_partial_doubles configuration option is set avoids deadlocks when a proxy is accessed from within a `before_verifying_doubles` callback + 1375) 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/partial_double_spec.rb:443 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:645 - 1377) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks before verifying an allowance + 1376) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available allow(...).to have_received fails because it's nonsensical # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/partial_double_spec.rb:432 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:629 - 1378) when verify_partial_doubles configuration option is set runs the before_verifying_double callbacks on any_instance before verifying a double allowance + 1377) 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/partial_double_spec.rb:517 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:637 - 1379) when verify_partial_doubles configuration option is set when `.new` is stubbed uses the method signature from `#initialize` for arg verification + 1378) 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/partial_double_spec.rb:582 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:90 - 1380) 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 + 1379) 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/partial_double_spec.rb:588 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:80 - 1381) 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 + 1380) 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/partial_double_spec.rb:640 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:188 - 1382) 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 + 1381) 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/partial_double_spec.rb:626 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:195 - 1383) 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 + 1382) 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/partial_double_spec.rb:611 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:183 - 1384) when verify_partial_doubles configuration option is set when `.new` is stubbed on a class that has undefined `new` prevents it from being stubbed + 1383) 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/partial_double_spec.rb:599 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:62 - 1385) when verify_partial_doubles configuration option is set for a class only runs the `before_verifying_doubles` callback for the class (not for superclasses) + 1384) 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/partial_double_spec.rb:462 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:146 - 1386) when verify_partial_doubles configuration option is set for a class can be temporarily supressed + 1385) 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/partial_double_spec.rb:474 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:70 - 1387) RSpec::Mocks::ExampleMethods works properly when extended onto an object that has previous extended `RSpec::Matchers` + 1386) 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/example_methods_spec.rb:25 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:134 - 1388) RSpec::Mocks::ExampleMethods works properly when extended onto an object that later extends `RSpec::Matchers` + 1387) 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/example_methods_spec.rb:31 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:43 - 1389) 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 + 1388) 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/example_methods_spec.rb:4 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:25 - 1390) RSpec::Mocks::ExampleMethods works properly when extended onto an object + 1389) 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/example_methods_spec.rb:21 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:156 - 1391) at_most passes when at_most(:thrice) is called thrice + 1390) 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/at_most_spec.rb:67 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:124 - 1392) at_most passes when at_most(n) is called exactly n times + 1391) 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/at_most_spec.rb:14 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:35 - 1393) at_most passes when at_most(:twice) is never called + 1392) 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/at_most_spec.rb:56 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:111 - 1394) at_most passes when at_most(n) is never called + 1393) 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/at_most_spec.rb:27 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:54 - 1395) at_most passes when at_most(:once) is never called + 1394) 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/at_most_spec.rb:38 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:30 - 1396) at_most fails fast when at_most(n) times method is called n plus 1 times + 1395) 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/at_most_spec.rb:81 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:100 - 1397) at_most fails fast when at_most(:twice) and is called three times + 1396) 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/at_most_spec.rb:108 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:323 - 1398) at_most returns the value given by a block when at_most(:once) method is called + 1397) 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/at_most_spec.rb:75 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:331 - 1399) at_most fails fast when at_most(n) times method is called n plus 1 time + 1398) 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/at_most_spec.rb:91 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:327 - 1400) at_most passes when at_most(n) is called less than n times + 1399) 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/at_most_spec.rb:21 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:369 - 1401) at_most passes when at_most(:thrice) is called less than three times + 1400) 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/at_most_spec.rb:61 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:355 - 1402) at_most passes when at_most(n) is called exactly 1 time + 1401) 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/at_most_spec.rb:8 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:361 - 1403) at_most passes when at_most(:once) is called once + 1402) 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/at_most_spec.rb:32 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:215 - 1404) at_most fails fast when at_most(:once) and is called twice + 1403) 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/at_most_spec.rb:100 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:239 - 1405) at_most passes when at_most(:twice) is called once + 1404) 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/at_most_spec.rb:43 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:231 - 1406) at_most fails fast when at_most(:thrice) and is called four times + 1405) 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/at_most_spec.rb:117 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:273 - 1407) at_most passes when at_most(:twice) is called twice + 1406) 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/at_most_spec.rb:49 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:285 - 1408) at_most when called with negative expectation raises an error + 1407) 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/at_most_spec.rb:128 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:264 - 1409) 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 + 1408) 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/diffing_spec.rb:33 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:247 - 1410) Diffs printed when arguments don't match with a non matcher object prints a diff with hash args + 1409) 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/diffing_spec.rb:81 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:221 - 1411) Diffs printed when arguments don't match with a non matcher object prints a diff with array args + 1410) 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/diffing_spec.rb:241 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:430 - 1412) 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 + 1411) 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/diffing_spec.rb:90 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:420 - 1413) 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 + 1412) 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/diffing_spec.rb:46 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:411 - 1414) Diffs printed when arguments don't match with a non matcher object prints a diff of the args lists for multiple mismatched string arguments + 1413) 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/diffing_spec.rb:57 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:297 - 1415) 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 + 1414) 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/diffing_spec.rb:68 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:301 - 1416) Diffs printed when arguments don't match with a non matcher object does not print a diff when single line arguments are mismatched + 1415) 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/diffing_spec.rb:12 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:315 - 1417) 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 + 1416) 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/diffing_spec.rb:21 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:343 - 1418) 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) + 1417) 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/diffing_spec.rb:117 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:347 - 1419) 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) + 1418) 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/diffing_spec.rb:102 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:339 - 1420) 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 + 1419) 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/diffing_spec.rb:133 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:389 - 1421) 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) + 1420) 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/diffing_spec.rb:174 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:398 - 1422) 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) + 1421) 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/diffing_spec.rb:187 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:381 - 1423) 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 + 1422) 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/diffing_spec.rb:201 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:484 - 1424) 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 + 1423) 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/diffing_spec.rb:251 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:517 - 1425) 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 + 1424) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered passes when the messages were received in order # 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/matchers/have_received_spec.rb:447 - 1426) Diffs printed when arguments don't match with a matcher object that defines #description uses the object's description + 1425) 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/diffing_spec.rb:270 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:455 - 1427) #as_null_object sets the object to null_object + 1426) 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/null_object_double_spec.rb:113 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:533 - 1428) Constant Mutating #hide_const allows a constant to be hidden, then stubbed, restoring it to its original value properly + 1427) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered when used with `with` fails when the order is not matched # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:202 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:538 - 1429) Constant Mutating #hide_const can be hidden multiple times but still restores the original value properly + 1428) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered when used on individually allowed messages fails when the messages are received out of order # 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:560 - 1430) Constant Mutating #hide_const for a loaded nested constant behaves like loaded constant hiding allows it to be hidden + 1429) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received ordered when used on individually allowed messages passes when the messages were received in order # 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:555 - 1431) Constant Mutating #hide_const for a loaded nested constant behaves like loaded constant hiding resets the constant when rspec clear its mocks + 1430) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received with fails when the given args do not match the args used with the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:87 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:174 - 1432) Constant Mutating #hide_const for a loaded nested constant behaves like loaded constant hiding returns nil + 1431) RSpec::Mocks::Matchers::HaveReceived when used in a context that has rspec-mocks and rspec-expectations available expect(...).to have_received with passes when the given args match the args used with the message # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:93 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:169 - 1433) 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 + 1432) 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 - 1434) Constant Mutating #hide_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant hiding returns nil + 1433) 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:93 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1435) 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 + 1434) 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:87 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1436) Constant Mutating #hide_const for an unloaded constant with nested name that matches a top-level constant does not hide the top-level constant + 1435) 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:166 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:595 - 1437) 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 + 1436) 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:134 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1438) Constant Mutating #hide_const for an unloaded constant with nested name that matches a top-level constant behaves like unloaded constant hiding returns nil + 1437) 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:145 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1439) 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 + 1438) 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:139 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:571 - 1440) Constant Mutating #hide_const for a loaded deeply nested constant behaves like loaded constant hiding returns nil + 1439) 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:93 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1441) Constant Mutating #hide_const for a loaded deeply nested constant behaves like loaded constant hiding allows it to be hidden + 1440) 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:82 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 - 1442) Constant Mutating #hide_const for a loaded deeply nested constant behaves like loaded constant hiding resets the constant when rspec clear its mocks + 1441) 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:87 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:584 - 1443) Constant Mutating #hide_const for an unloaded unnested constant behaves like unloaded constant hiding remains undefined after rspec clears its mocks + 1442) 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:139 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:576 - 1444) Constant Mutating #hide_const for an unloaded unnested constant behaves like unloaded constant hiding returns nil + 1443) 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:145 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:604 - 1445) 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 + 1444) 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:134 + # ./spec/rspec/mocks/matchers/have_received_spec.rb:609 - 1446) Constant Mutating #hide_const for an unloaded nested constant behaves like unloaded constant hiding remains undefined after rspec clears its mocks + 1445) 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/mutate_const_spec.rb:139 + # ./spec/rspec/mocks/partial_double_spec.rb:278 - 1447) 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 + 1446) 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/mutate_const_spec.rb:134 + # ./spec/rspec/mocks/partial_double_spec.rb:296 - 1448) Constant Mutating #hide_const for an unloaded nested constant behaves like unloaded constant hiding returns nil + 1447) 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/mutate_const_spec.rb:145 + # ./spec/rspec/mocks/partial_double_spec.rb:292 - 1449) Constant Mutating #hide_const for a loaded constant prefixed with :: behaves like loaded constant hiding returns nil + 1448) 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:93 + # ./spec/rspec/mocks/order_group_spec.rb:18 - 1450) Constant Mutating #hide_const for a loaded constant prefixed with :: behaves like loaded constant hiding resets the constant when rspec clear its mocks + 1449) 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:87 + # ./spec/rspec/mocks/order_group_spec.rb:21 - 1451) Constant Mutating #hide_const for a loaded constant prefixed with :: behaves like loaded constant hiding allows it to be hidden + 1450) at_most fails fast when at_most(n) times method is called n plus 1 time # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:82 + # ./spec/rspec/mocks/at_most_spec.rb:91 - 1452) Constant Mutating #stub_const requires a string argument + 1451) at_most passes when at_most(n) is called exactly 1 time # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:221 + # ./spec/rspec/mocks/at_most_spec.rb:8 - 1453) 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 + 1452) at_most fails fast when at_most(:once) and is called twice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:418 + # ./spec/rspec/mocks/at_most_spec.rb:100 - 1454) 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 + 1453) at_most passes when at_most(n) is never called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:409 + # ./spec/rspec/mocks/at_most_spec.rb:27 - 1455) Constant Mutating #stub_const for an unloaded constant nested within a loaded constant behaves like unloaded constant stubbing allows it to be stubbed + 1454) at_most passes when at_most(n) is called exactly n times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/at_most_spec.rb:14 - 1456) 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 + 1455) at_most fails fast when at_most(:thrice) and is called four times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/at_most_spec.rb:117 - 1457) Constant Mutating #stub_const for an unloaded constant nested within a loaded constant behaves like unloaded constant stubbing returns the stubbed value + 1456) at_most passes when at_most(:thrice) is called less than three times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/at_most_spec.rb:61 - 1458) 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 + 1457) at_most passes when at_most(:once) is called once # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/at_most_spec.rb:32 - 1459) Constant Mutating #stub_const for a loaded constant prefixed with :: behaves like loaded constant stubbing returns the stubbed value + 1458) at_most fails fast when at_most(n) times method is called n plus 1 times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/at_most_spec.rb:81 - 1460) Constant Mutating #stub_const for a loaded constant prefixed with :: behaves like loaded constant stubbing allows it to be stubbed + 1459) at_most passes when at_most(:once) is never called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/at_most_spec.rb:38 - 1461) 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 + 1460) at_most passes when at_most(:thrice) is called thrice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/at_most_spec.rb:67 - 1462) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing allows it to be stubbed + 1461) at_most passes when at_most(:twice) is never called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/at_most_spec.rb:56 - 1463) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 1462) at_most passes when at_most(:twice) is called twice # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/at_most_spec.rb:49 - 1464) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing returns the stubbed value + 1463) at_most passes when at_most(:twice) is called once # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/at_most_spec.rb:43 - 1465) Constant Mutating #stub_const for an unloaded unnested constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 1464) at_most returns the value given by a block when at_most(:once) method is called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/at_most_spec.rb:75 - 1466) 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 + 1465) at_most fails fast when at_most(:twice) and is called three times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:427 + # ./spec/rspec/mocks/at_most_spec.rb:108 - 1467) 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 + 1466) at_most passes when at_most(n) is called less than n times # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/at_most_spec.rb:21 - 1468) 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 + 1467) at_most when called with negative expectation raises an error # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/at_most_spec.rb:128 - 1469) 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 + 1468) Partially mocking an object that defines ==, after another mock has been defined does not raise an error when stubbing the object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/partial_double_spec.rb:268 - 1470) 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 + 1469) 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/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/should_syntax_spec.rb:487 - 1471) 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 + 1470) 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/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/should_syntax_spec.rb:554 - 1472) 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 + 1471) 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/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/should_syntax_spec.rb:541 - 1473) 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 + 1472) 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/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/should_syntax_spec.rb:496 - 1474) 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 + 1473) 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/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/should_syntax_spec.rb:475 - 1475) Constant Mutating #stub_const for a loaded unnested constant can be stubbed multiple times but still restores the original value properly + 1474) 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/mutate_const_spec.rb:228 + # ./spec/rspec/mocks/should_syntax_spec.rb:564 - 1476) Constant Mutating #stub_const for a loaded unnested constant raises an error when asked to transfer a nested inherited constant + 1475) 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:264 + # ./spec/rspec/mocks/partial_double_spec.rb:241 - 1477) Constant Mutating #stub_const for a loaded unnested constant does not transfer nested constants that are inherited from a superclass + 1476) 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:256 + # ./spec/rspec/mocks/partial_double_spec.rb:236 - 1478) Constant Mutating #stub_const for a loaded unnested constant removes the transferred constants on reset + 1477) 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:247 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:109 - 1479) 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 + 1478) 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:282 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:116 - 1480) Constant Mutating #stub_const for a loaded unnested constant raises an error if asked to transfer a nested constant that is not defined + 1479) 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:313 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:122 - 1481) Constant Mutating #stub_const for a loaded unnested constant allows nested constants to be selectively transferred to a stub module + 1480) After a test double has been torn down for an object_double disallows stubbing new message chains # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:274 + # ./spec/rspec/mocks/expiration_spec.rb:35 - 1482) Constant Mutating #stub_const for a loaded unnested constant allows nested constants to be transferred to a stub module + 1481) After a test double has been torn down for an object_double disallows previously mocked methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:238 + # ./spec/rspec/mocks/expiration_spec.rb:15 - 1483) 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 + 1482) After a test double has been torn down for an object_double disallows stubbing new methods (with receive_messages) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:298 + # ./spec/rspec/mocks/expiration_spec.rb:29 - 1484) Constant Mutating #stub_const for a loaded unnested constant behaves like loaded constant stubbing returns the stubbed value + 1483) After a test double has been torn down for an object_double disallows previously stubbed methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/expiration_spec.rb:19 - 1485) 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 + 1484) After a test double has been torn down for an object_double disallows being checked for nullness # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/expiration_spec.rb:51 - 1486) Constant Mutating #stub_const for a loaded unnested constant behaves like loaded constant stubbing allows it to be stubbed + 1485) After a test double has been torn down for an object_double disallows mocking new methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/expiration_spec.rb:41 - 1487) 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 + 1486) After a test double has been torn down for an object_double disallows being turned into a null object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:332 + # ./spec/rspec/mocks/expiration_spec.rb:47 - 1488) 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 + 1487) After a test double has been torn down for an object_double disallows stubbing new methods (with receive) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:342 + # ./spec/rspec/mocks/expiration_spec.rb:23 - 1489) 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 + 1488) After a test double has been torn down for an instance_double disallows being checked for nullness # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:347 + # ./spec/rspec/mocks/expiration_spec.rb:51 - 1490) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing returns the stubbed value + 1489) After a test double has been torn down for an instance_double disallows stubbing new message chains # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/expiration_spec.rb:35 - 1491) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 1490) After a test double has been torn down for an instance_double disallows previously mocked methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/expiration_spec.rb:15 - 1492) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 1491) After a test double has been torn down for an instance_double disallows stubbing new methods (with receive) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/expiration_spec.rb:23 - 1493) Constant Mutating #stub_const for an unloaded constant prefixed with :: behaves like unloaded constant stubbing allows it to be stubbed + 1492) After a test double has been torn down for an instance_double disallows mocking new methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/expiration_spec.rb:41 - 1494) Constant Mutating #stub_const for an unloaded deeply nested constant removes the root constant when rspec clears its mocks + 1493) After a test double has been torn down for an instance_double disallows stubbing new methods (with receive_messages) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:398 + # ./spec/rspec/mocks/expiration_spec.rb:29 - 1495) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing returns the stubbed value + 1494) After a test double has been torn down for an instance_double disallows previously stubbed methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/expiration_spec.rb:19 - 1496) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing allows it to be stubbed + 1495) After a test double has been torn down for an instance_double disallows being turned into a null object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/expiration_spec.rb:47 - 1497) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 1496) After a test double has been torn down for a class_double disallows being turned into a null object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/expiration_spec.rb:47 - 1498) Constant Mutating #stub_const for an unloaded deeply nested constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 1497) After a test double has been torn down for a class_double disallows previously stubbed methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/expiration_spec.rb:19 - 1499) 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 + 1498) After a test double has been torn down for a class_double disallows stubbing new methods (with receive) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/expiration_spec.rb:23 - 1500) Constant Mutating #stub_const for a loaded constant nested in a module that redefines `send` behaves like loaded constant stubbing returns the stubbed value + 1499) After a test double has been torn down for a class_double disallows previously mocked methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/expiration_spec.rb:15 - 1501) 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 + 1500) After a test double has been torn down for a class_double disallows being checked for nullness # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/expiration_spec.rb:51 - 1502) 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 + 1501) After a test double has been torn down for a class_double disallows stubbing new methods (with receive_messages) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/expiration_spec.rb:29 - 1503) Constant Mutating #stub_const for a loaded deeply nested constant behaves like loaded constant stubbing allows it to be stubbed + 1502) After a test double has been torn down for a class_double disallows mocking new methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/expiration_spec.rb:41 - 1504) Constant Mutating #stub_const for a loaded deeply nested constant behaves like loaded constant stubbing returns the stubbed value + 1503) After a test double has been torn down for a class_double disallows stubbing new message chains # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/expiration_spec.rb:35 - 1505) 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 + 1504) After a test double has been torn down for a plain double disallows being checked for nullness # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/expiration_spec.rb:51 - 1506) 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 + 1505) After a test double has been torn down for a plain double disallows mocking new methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/expiration_spec.rb:41 - 1507) Constant Mutating #stub_const for an unloaded constant nested in a module that redefines `send` behaves like unloaded constant stubbing returns the stubbed value + 1506) After a test double has been torn down for a plain double disallows previously stubbed methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/expiration_spec.rb:19 - 1508) 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 + 1507) After a test double has been torn down for a plain double disallows previously mocked methods # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/expiration_spec.rb:15 - 1509) Constant Mutating #stub_const for an unloaded nested constant removes the root constant when rspec clears its mocks + 1508) After a test double has been torn down for a plain double disallows stubbing new methods (with receive) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:387 + # ./spec/rspec/mocks/expiration_spec.rb:23 - 1510) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing allows it to be stubbed + 1509) After a test double has been torn down for a plain double disallows stubbing new message chains # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:105 + # ./spec/rspec/mocks/expiration_spec.rb:35 - 1511) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing removes the constant when rspec clears its mocks + 1510) After a test double has been torn down for a plain double disallows being turned into a null object # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:110 + # ./spec/rspec/mocks/expiration_spec.rb:47 - 1512) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing ignores the :transfer_nested_constants option if passed + 1511) After a test double has been torn down for a plain double disallows stubbing new methods (with receive_messages) # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/mutate_const_spec.rb:120 + # ./spec/rspec/mocks/expiration_spec.rb:29 - 1513) Constant Mutating #stub_const for an unloaded nested constant behaves like unloaded constant stubbing returns the stubbed value + 1512) #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/mutate_const_spec.rb:116 + # ./spec/rspec/mocks/any_instance_spec.rb:555 - 1514) 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 + 1513) #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/mutate_const_spec.rb:64 + # ./spec/rspec/mocks/any_instance_spec.rb:523 - 1515) Constant Mutating #stub_const for a loaded nested constant behaves like loaded constant stubbing returns the stubbed value + 1514) #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/mutate_const_spec.rb:72 + # ./spec/rspec/mocks/any_instance_spec.rb:538 - 1516) Constant Mutating #stub_const for a loaded nested constant behaves like loaded constant stubbing allows it to be stubbed + 1515) #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/mutate_const_spec.rb:58 + # ./spec/rspec/mocks/any_instance_spec.rb:572 - 1517) RSpec::Mocks::Configuration adds stub and should_receive to the given modules + 1516) #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/configuration_spec.rb:12 + # ./spec/rspec/mocks/any_instance_spec.rb:585 - 1518) RSpec::Mocks::Configuration configuring using the rspec-core config API behaves like configuring the syntax defaults to enabling both the :should and :expect syntaxes + 1517) #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/configuration_spec.rb:36 + # ./spec/rspec/mocks/any_instance_spec.rb:792 - 1519) 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 + 1518) #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/configuration_spec.rb:54 + # ./spec/rspec/mocks/any_instance_spec.rb:563 - 1520) 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 + 1519) #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/configuration_spec.rb:50 + # ./spec/rspec/mocks/any_instance_spec.rb:547 - 1521) 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 + 1520) #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/configuration_spec.rb:62 + # ./spec/rspec/mocks/any_instance_spec.rb:782 - 1522) 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 + 1521) #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/configuration_spec.rb:66 + # ./spec/rspec/mocks/any_instance_spec.rb:948 - 1523) 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 + 1522) #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/configuration_spec.rb:58 + # ./spec/rspec/mocks/any_instance_spec.rb:933 - 1524) 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 + 1523) #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/configuration_spec.rb:84 + # ./spec/rspec/mocks/any_instance_spec.rb:939 - 1525) 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 + 1524) #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/configuration_spec.rb:97 + # ./spec/rspec/mocks/any_instance_spec.rb:918 - 1526) 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 + 1525) #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/configuration_spec.rb:76 + # ./spec/rspec/mocks/any_instance_spec.rb:924 - 1527) 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 + 1526) #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/configuration_spec.rb:92 + # ./spec/rspec/mocks/any_instance_spec.rb:881 - 1528) 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 + 1527) #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/configuration_spec.rb:80 + # ./spec/rspec/mocks/any_instance_spec.rb:875 - 1529) 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 + 1528) #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/configuration_spec.rb:88 + # ./spec/rspec/mocks/any_instance_spec.rb:973 - 1530) 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 + 1529) #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/configuration_spec.rb:119 + # ./spec/rspec/mocks/any_instance_spec.rb:958 - 1531) 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 + 1530) #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/configuration_spec.rb:115 + # ./spec/rspec/mocks/any_instance_spec.rb:964 - 1532) 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 + 1531) #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/configuration_spec.rb:107 + # ./spec/rspec/mocks/any_instance_spec.rb:864 - 1533) 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 + 1532) #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/configuration_spec.rb:123 + # ./spec/rspec/mocks/any_instance_spec.rb:856 - 1534) 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 + 1533) #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/configuration_spec.rb:111 + # ./spec/rspec/mocks/any_instance_spec.rb:849 - 1535) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax defaults to enabling both the :should and :expect syntaxes + 1534) #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/configuration_spec.rb:36 + # ./spec/rspec/mocks/any_instance_spec.rb:844 - 1536) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should does not warn about the should syntax + 1535) #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/configuration_spec.rb:92 + # ./spec/rspec/mocks/any_instance_spec.rb:1003 - 1537) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should adds `any_instance` to every class + 1536) #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/configuration_spec.rb:80 + # ./spec/rspec/mocks/any_instance_spec.rb:1008 - 1538) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should adds the should methods to every object + 1537) #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/configuration_spec.rb:76 + # ./spec/rspec/mocks/any_instance_spec.rb:1022 - 1539) 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 + 1538) #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/configuration_spec.rb:84 + # ./spec/rspec/mocks/any_instance_spec.rb:1016 - 1540) 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 + 1539) #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/configuration_spec.rb:97 + # ./spec/rspec/mocks/any_instance_spec.rb:993 - 1541) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :should reports that the syntax is :should + 1540) #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/configuration_spec.rb:88 + # ./spec/rspec/mocks/any_instance_spec.rb:981 - 1542) 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 + 1541) #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/configuration_spec.rb:58 + # ./spec/rspec/mocks/any_instance_spec.rb:987 - 1543) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect removes the should methods from every object + 1542) #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/configuration_spec.rb:50 + # ./spec/rspec/mocks/any_instance_spec.rb:892 - 1544) 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 + 1543) #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/configuration_spec.rb:66 + # ./spec/rspec/mocks/any_instance_spec.rb:906 - 1545) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect reports that the syntax is :expect + 1544) #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/configuration_spec.rb:62 + # ./spec/rspec/mocks/any_instance_spec.rb:898 - 1546) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to :expect removes `any_instance` from every class + 1545) #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/configuration_spec.rb:54 + # ./spec/rspec/mocks/any_instance_spec.rb:807 - 1547) 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 + 1546) #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/configuration_spec.rb:115 + # ./spec/rspec/mocks/any_instance_spec.rb:813 - 1548) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] adds the should methods to every object + 1547) #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/configuration_spec.rb:107 + # ./spec/rspec/mocks/any_instance_spec.rb:824 - 1549) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] reports that both syntaxes are enabled + 1548) #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/configuration_spec.rb:119 + # ./spec/rspec/mocks/any_instance_spec.rb:831 - 1550) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] does not warn about the should syntax + 1549) #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/configuration_spec.rb:123 + # ./spec/rspec/mocks/any_instance_spec.rb:636 - 1551) RSpec::Mocks::Configuration configuring rspec-mocks directly behaves like configuring the syntax when configured to [:should, :expect] adds `any_instance` to every class + 1550) #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/configuration_spec.rb:111 + # ./spec/rspec/mocks/any_instance_spec.rb:645 - 1552) RSpec::Mocks::Configuration#when_declaring_verifying_double captures the supplied blocks + 1551) #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/configuration_spec.rb:177 + # ./spec/rspec/mocks/any_instance_spec.rb:602 - 1553) #once fails fast when called twice + 1552) #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/once_counts_spec.rb:34 + # ./spec/rspec/mocks/any_instance_spec.rb:595 - 1554) #once passes when called once with specified args + 1553) #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/once_counts_spec.rb:14 + # ./spec/rspec/mocks/any_instance_spec.rb:747 - 1555) #once passes when called once with unspecified args + 1554) #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/once_counts_spec.rb:20 + # ./spec/rspec/mocks/any_instance_spec.rb:739 - 1556) #once fails when not called + 1555) #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/once_counts_spec.rb:42 + # ./spec/rspec/mocks/any_instance_spec.rb:754 - 1557) #once fails when called with wrong args + 1556) #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/once_counts_spec.rb:26 + # ./spec/rspec/mocks/any_instance_spec.rb:734 - 1558) #once passes when called once + 1557) #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/once_counts_spec.rb:8 + # ./spec/rspec/mocks/any_instance_spec.rb:763 - 1559) #once when called with negative expectation raises an error + 1558) #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/once_counts_spec.rb:73 + # ./spec/rspec/mocks/any_instance_spec.rb:769 - 1560) #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 + 1559) #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/once_counts_spec.rb:50 + # ./spec/rspec/mocks/any_instance_spec.rb:622 - 1561) RSpec::Mocks::Double passes proc to expectation block without an argument + 1560) #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/double_spec.rb:316 + # ./spec/rspec/mocks/any_instance_spec.rb:661 - 1562) RSpec::Mocks::Double uses block for expectation if provided + 1561) #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/double_spec.rb:270 + # ./spec/rspec/mocks/any_instance_spec.rb:676 - 1563) RSpec::Mocks::Double returns nil if no return value is set and there is no previously stubbed value + 1562) #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/double_spec.rb:210 + # ./spec/rspec/mocks/any_instance_spec.rb:669 - 1564) RSpec::Mocks::Double yields 0 args multiple times to blocks that take a variable number of arguments + 1563) #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/double_spec.rb:438 + # ./spec/rspec/mocks/any_instance_spec.rb:656 - 1565) RSpec::Mocks::Double fails when calling yielding method with wrong arity + 1564) #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/double_spec.rb:520 + # ./spec/rspec/mocks/any_instance_spec.rb:684 - 1566) RSpec::Mocks::Double responds to to_a as a null object + 1565) #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/double_spec.rb:306 + # ./spec/rspec/mocks/any_instance_spec.rb:713 - 1567) RSpec::Mocks::Double yields one arg 3 times consecutively to blocks that take a variable number of arguments + 1566) #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/double_spec.rb:455 + # ./spec/rspec/mocks/any_instance_spec.rb:724 - 1568) RSpec::Mocks::Double fails right away when method defined as never is received + 1567) #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/double_spec.rb:336 + # ./spec/rspec/mocks/any_instance_spec.rb:694 - 1569) RSpec::Mocks::Double prevents confusing double-negative expressions involving `never` + 1568) #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/double_spec.rb:103 + # ./spec/rspec/mocks/any_instance_spec.rb:700 - 1570) RSpec::Mocks::Double passes proc to expectation block with an argument + 1569) #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/double_spec.rb:321 + # ./spec/rspec/mocks/any_instance_spec.rb:612 - 1571) RSpec::Mocks::Double does not get confused when a negative expectation is used with a string and symbol message + 1570) #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/double_spec.rb:178 + # ./spec/rspec/mocks/any_instance_spec.rb:1305 - 1572) RSpec::Mocks::Double does not mess with the stub's yielded values when also doubleed + 1571) #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/double_spec.rb:635 + # ./spec/rspec/mocks/any_instance_spec.rb:1300 - 1573) RSpec::Mocks::Double temporarily replaces a method stub on a non-double + 1572) #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/double_spec.rb:611 + # ./spec/rspec/mocks/any_instance_spec.rb:47 - 1574) RSpec::Mocks::Double is wrappable in an array when a null object + 1573) #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/double_spec.rb:296 + # ./spec/rspec/mocks/any_instance_spec.rb:1323 - 1575) RSpec::Mocks::Double does not respond_to? method_missing (because it's private) + 1574) #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/double_spec.rb:11 + # ./spec/rspec/mocks/any_instance_spec.rb:1312 - 1576) RSpec::Mocks::Double yields many args 3 times consecutively to blocks that take a variable number of arguments + 1575) #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/double_spec.rb:473 + # ./spec/rspec/mocks/any_instance_spec.rb:1331 - 1577) RSpec::Mocks::Double yields two values + 1576) #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/double_spec.rb:501 + # ./spec/rspec/mocks/any_instance_spec.rb:1169 - 1578) RSpec::Mocks::Double allows string representation of methods in constructor + 1577) #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/double_spec.rb:47 + # ./spec/rspec/mocks/any_instance_spec.rb:1083 - 1579) RSpec::Mocks::Double does not raise when told to if args dont match + 1578) #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/double_spec.rb:386 + # ./spec/rspec/mocks/any_instance_spec.rb:1087 - 1580) RSpec::Mocks::Double fails when calling yielding method consecutively with wrong arity + 1579) #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/double_spec.rb:536 + # ./spec/rspec/mocks/any_instance_spec.rb:1091 - 1581) RSpec::Mocks::Double assigns stub return values + 1580) #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/double_spec.rb:653 + # ./spec/rspec/mocks/any_instance_spec.rb:1065 - 1582) RSpec::Mocks::Double ignores args on any args + 1581) #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/double_spec.rb:400 + # ./spec/rspec/mocks/any_instance_spec.rb:1056 - 1583) RSpec::Mocks::Double reports line number of expectation of unreceived message after a message expectation after similar stub + 1582) #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/double_spec.rb:87 + # ./spec/rspec/mocks/any_instance_spec.rb:1049 - 1584) RSpec::Mocks::Double raises a given instance of an exception with arguments other than the standard 'message' + 1583) #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/double_spec.rb:375 + # ./spec/rspec/mocks/any_instance_spec.rb:1147 - 1585) RSpec::Mocks::Double allows `class` to be stubbed even when `any_instance` has already been used + 1584) #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/double_spec.rb:60 + # ./spec/rspec/mocks/any_instance_spec.rb:1110 - 1586) RSpec::Mocks::Double fails when receiving message specified as not to be received with args + 1585) #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/double_spec.rb:140 + # ./spec/rspec/mocks/any_instance_spec.rb:1114 - 1587) RSpec::Mocks::Double raises RuntimeError by default + 1586) #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/double_spec.rb:342 + # ./spec/rspec/mocks/any_instance_spec.rb:1106 - 1588) RSpec::Mocks::Double passes when not receiving message specified as not to be received + 1587) #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/double_spec.rb:98 + # ./spec/rspec/mocks/any_instance_spec.rb:1136 - 1589) RSpec::Mocks::Double fails when receiving message specified as not to be received + 1588) #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/double_spec.rb:130 + # ./spec/rspec/mocks/any_instance_spec.rb:1141 - 1590) RSpec::Mocks::Double yields single value + 1589) #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/double_spec.rb:483 + # ./spec/rspec/mocks/any_instance_spec.rb:1121 - 1591) RSpec::Mocks::Double returns value from block by default + 1590) #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/double_spec.rb:423 + # ./spec/rspec/mocks/any_instance_spec.rb:1126 - 1592) RSpec::Mocks::Double passes proc to stub block with an argument + 1591) #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/double_spec.rb:331 + # ./spec/rspec/mocks/any_instance_spec.rb:1159 - 1593) RSpec::Mocks::Double does not require a different signature to replace a method stub + 1592) #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/double_spec.rb:596 + # ./spec/rspec/mocks/any_instance_spec.rb:1240 - 1594) RSpec::Mocks::Double yields single value 3 times consecutively + 1593) #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/double_spec.rb:491 + # ./spec/rspec/mocks/any_instance_spec.rb:1231 - 1595) RSpec::Mocks::Double passes proc to stub block without an argument + 1594) #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/double_spec.rb:326 + # ./spec/rspec/mocks/any_instance_spec.rb:1207 - 1596) RSpec::Mocks::Double temporarily replaces a method stub on a double + 1595) #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/double_spec.rb:587 + # ./spec/rspec/mocks/any_instance_spec.rb:1213 - 1597) RSpec::Mocks::Double fails when array arguments do not match + 1596) #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/double_spec.rb:150 + # ./spec/rspec/mocks/any_instance_spec.rb:1194 - 1598) RSpec::Mocks::Double warns when `and_return` is called on a negative expectation + 1597) #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/double_spec.rb:109 + # ./spec/rspec/mocks/any_instance_spec.rb:1185 - 1599) RSpec::Mocks::Double is able to double send + 1598) #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/double_spec.rb:553 + # ./spec/rspec/mocks/any_instance_spec.rb:1250 - 1600) RSpec::Mocks::Double allows `send` to be stubbed + 1599) #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/double_spec.rb:71 + # ./spec/rspec/mocks/any_instance_spec.rb:1266 - 1601) RSpec::Mocks::Double raises exception if args don't match when method called even when using null_object + 1600) #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/double_spec.rb:243 + # ./spec/rspec/mocks/any_instance_spec.rb:1259 - 1602) RSpec::Mocks::Double does not blow up when resetting standard object methods + 1601) #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/double_spec.rb:25 + # ./spec/rspec/mocks/any_instance_spec.rb:411 - 1603) RSpec::Mocks::Double yields one arg to blocks that take a variable number of arguments + 1602) #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/double_spec.rb:447 + # ./spec/rspec/mocks/any_instance_spec.rb:436 - 1604) RSpec::Mocks::Double returns the stubbed value when stubbed with args and no new value specified + 1603) #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/double_spec.rb:628 + # ./spec/rspec/mocks/any_instance_spec.rb:452 - 1605) RSpec::Mocks::Double restores objects to their original state on rspec_reset + 1604) #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/double_spec.rb:580 + # ./spec/rspec/mocks/any_instance_spec.rb:418 - 1606) RSpec::Mocks::Double has method_missing as private + 1605) #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/double_spec.rb:7 + # ./spec/rspec/mocks/any_instance_spec.rb:405 - 1607) RSpec::Mocks::Double does not get confused when a positive expectation is used with a string and symbol message + 1606) #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/double_spec.rb:187 + # ./spec/rspec/mocks/any_instance_spec.rb:444 - 1608) RSpec::Mocks::Double fails when calling yielding method with invalid kw args + 1607) #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/double_spec.rb:528 + # ./spec/rspec/mocks/any_instance_spec.rb:427 - 1609) RSpec::Mocks::Double passes when receiving message specified as not to be received with different args + 1608) #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/double_spec.rb:123 + # ./spec/rspec/mocks/any_instance_spec.rb:63 - 1610) RSpec::Mocks::Double generates the correct error when an unfulfilled expectation uses an unused double as a `with` argument + 1609) #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/double_spec.rb:38 + # ./spec/rspec/mocks/any_instance_spec.rb:55 - 1611) RSpec::Mocks::Double returns the previously stubbed value if no return value is set + 1610) #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/double_spec.rb:203 + # ./spec/rspec/mocks/any_instance_spec.rb:59 - 1612) RSpec::Mocks::Double clears expectations after verify + 1611) #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/double_spec.rb:571 + # ./spec/rspec/mocks/any_instance_spec.rb:71 - 1613) RSpec::Mocks::Double does not get string vs symbol messages confused + 1612) #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/double_spec.rb:31 + # ./spec/rspec/mocks/any_instance_spec.rb:67 - 1614) RSpec::Mocks::Double is able to raise from method calling yielding double + 1613) #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/double_spec.rb:559 + # ./spec/rspec/mocks/any_instance_spec.rb:78 - 1615) RSpec::Mocks::Double is wrappable in an array + 1614) #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/double_spec.rb:290 + # ./spec/rspec/mocks/any_instance_spec.rb:83 - 1616) RSpec::Mocks::Double raises exception if args don't match when method called + 1615) #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/double_spec.rb:216 + # ./spec/rspec/mocks/any_instance_spec.rb:460 - 1617) RSpec::Mocks::Double throws when told to + 1616) #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/double_spec.rb:393 + # ./spec/rspec/mocks/any_instance_spec.rb:468 - 1618) RSpec::Mocks::Double fails on no args if any args received + 1617) #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/double_spec.rb:409 + # ./spec/rspec/mocks/any_instance_spec.rb:477 - 1619) RSpec::Mocks::Double can yield multiple times when told to do so + 1618) #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/double_spec.rb:643 + # ./spec/rspec/mocks/any_instance_spec.rb:472 - 1620) RSpec::Mocks::Double hides internals in its inspect representation + 1619) #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/double_spec.rb:20 + # ./spec/rspec/mocks/any_instance_spec.rb:512 - 1621) RSpec::Mocks::Double raises an exception of a given type without an error message + 1620) #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/double_spec.rb:352 + # ./spec/rspec/mocks/any_instance_spec.rb:504 - 1622) RSpec::Mocks::Double allows parameter as return value + 1621) #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/double_spec.rb:197 + # ./spec/rspec/mocks/any_instance_spec.rb:497 - 1623) RSpec::Mocks::Double allows setter methods to be stubbed + 1622) #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/double_spec.rb:52 + # ./spec/rspec/mocks/any_instance_spec.rb:490 - 1624) RSpec::Mocks::Double fails when args are expected but none are received + 1623) #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/double_spec.rb:416 + # ./spec/rspec/mocks/any_instance_spec.rb:91 - 1625) RSpec::Mocks::Double yields 0 args to blocks that take a variable number of arguments + 1624) #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/double_spec.rb:430 + # ./spec/rspec/mocks/any_instance_spec.rb:311 - 1626) RSpec::Mocks::Double uses 'Double' in failure messages + 1625) #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/double_spec.rb:15 + # ./spec/rspec/mocks/any_instance_spec.rb:316 - 1627) RSpec::Mocks::Double fails if unexpected method called + 1626) #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/double_spec.rb:264 + # ./spec/rspec/mocks/any_instance_spec.rb:97 - 1628) RSpec::Mocks::Double fails when calling yielding method without block + 1627) #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/double_spec.rb:546 + # ./spec/rspec/mocks/any_instance_spec.rb:120 - 1629) RSpec::Mocks::Double fails if expectation block fails + 1628) #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/double_spec.rb:280 + # ./spec/rspec/mocks/any_instance_spec.rb:115 - 1630) RSpec::Mocks::Double reports line number of expectation of unreceived message + 1629) #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/double_spec.rb:77 + # ./spec/rspec/mocks/any_instance_spec.rb:110 - 1631) RSpec::Mocks::Double raises exception if args don't match when method called even when the method is stubbed + 1630) #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/double_spec.rb:234 + # ./spec/rspec/mocks/any_instance_spec.rb:127 - 1632) RSpec::Mocks::Double returns the stubbed value when no new value specified + 1631) #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/double_spec.rb:621 + # ./spec/rspec/mocks/any_instance_spec.rb:105 - 1633) RSpec::Mocks::Double raises an error when a previously stubbed method has a negative expectation + 1632) #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/double_spec.rb:605 + # ./spec/rspec/mocks/any_instance_spec.rb:340 - 1634) RSpec::Mocks::Double responds to to_ary as a null object + 1633) #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/double_spec.rb:302 + # ./spec/rspec/mocks/any_instance_spec.rb:335 - 1635) RSpec::Mocks::Double raises an exception of a given type with a message + 1634) #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/double_spec.rb:357 + # ./spec/rspec/mocks/any_instance_spec.rb:390 - 1636) RSpec::Mocks::Double raises a given instance of an exception + 1635) #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/double_spec.rb:362 + # ./spec/rspec/mocks/any_instance_spec.rb:365 - 1637) RSpec::Mocks::Double yields many args to blocks that take a variable number of arguments + 1636) #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/double_spec.rb:465 + # ./spec/rspec/mocks/any_instance_spec.rb:370 - 1638) RSpec::Mocks::Double yields two values 3 times consecutively + 1637) #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/double_spec.rb:510 + # ./spec/rspec/mocks/any_instance_spec.rb:385 - 1639) RSpec::Mocks::Double raises RuntimeError with a message by default + 1638) #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/double_spec.rb:347 + # ./spec/rspec/mocks/any_instance_spec.rb:375 - 1640) RSpec::Mocks::Double == sends '== self' to the comparison object + 1639) #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/double_spec.rb:752 + # ./spec/rspec/mocks/any_instance_spec.rb:396 - 1641) 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 + 1640) #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/double_spec.rb:253 + # ./spec/rspec/mocks/any_instance_spec.rb:380 - 1642) RSpec::Mocks::Double#to_str should not respond to #to_str to avoid being coerced to strings by the runtime + 1641) #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/double_spec.rb:730 + # ./spec/rspec/mocks/any_instance_spec.rb:323 - 1643) RSpec::Mocks::Double with with args with non-matching doubles as_null_object fails + 1642) #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/double_spec.rb:794 + # ./spec/rspec/mocks/any_instance_spec.rb:328 - 1644) RSpec::Mocks::Double with with args with non-matching doubles fails + 1643) #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/double_spec.rb:782 + # ./spec/rspec/mocks/any_instance_spec.rb:278 - 1645) RSpec::Mocks::Double with with args with matching args passes + 1644) #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/double_spec.rb:765 + # ./spec/rspec/mocks/any_instance_spec.rb:271 - 1646) RSpec::Mocks::Double with with args with non-matching args fails + 1645) #any_instance when stubbing with #and_return can stub a method that doesn't exist # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:772 + # ./spec/rspec/mocks/any_instance_spec.rb:261 - 1647) RSpec::Mocks::Double with with a block with matching args returns the result of the block + 1646) #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/double_spec.rb:808 + # ./spec/rspec/mocks/any_instance_spec.rb:266 - 1648) RSpec::Mocks::Double with with a block with non-matching args fails + 1647) #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/double_spec.rb:815 + # ./spec/rspec/mocks/any_instance_spec.rb:248 - 1649) 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 + 1648) #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/double_spec.rb:224 + # ./spec/rspec/mocks/any_instance_spec.rb:254 - 1650) RSpec::Mocks::Double double created with no name does not use a name in a failure message + 1649) #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/double_spec.rb:739 + # ./spec/rspec/mocks/any_instance_spec.rb:196 - 1651) RSpec::Mocks::Double double created with no name does respond to initially stubbed methods + 1650) #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/double_spec.rb:744 + # ./spec/rspec/mocks/any_instance_spec.rb:181 - 1652) RSpec::Mocks::Double a double message receiving a block supports a block passed to `receive` for `expect` after a similar stub + 1651) #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/double_spec.rb:676 + # ./spec/rspec/mocks/any_instance_spec.rb:188 - 1653) RSpec::Mocks::Double a double message receiving a block calls the block after #twice + 1652) #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/double_spec.rb:693 + # ./spec/rspec/mocks/any_instance_spec.rb:203 - 1654) RSpec::Mocks::Double a double message receiving a block calls the block after #ordered + 1653) #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/double_spec.rb:710 + # ./spec/rspec/mocks/any_instance_spec.rb:291 - 1655) RSpec::Mocks::Double a double message receiving a block calls the block after #once + 1654) #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/double_spec.rb:685 + # ./spec/rspec/mocks/any_instance_spec.rb:138 - 1656) RSpec::Mocks::Double a double message receiving a block supports a block passed to `receive` for `expect` + 1655) #any_instance when stubbing behaves as 'every instance' handles freeze and duplication correctly # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:668 + # ./spec/rspec/mocks/any_instance_spec.rb:150 - 1657) RSpec::Mocks::Double a double message receiving a block calls the block after #times + 1656) #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/double_spec.rb:702 + # ./spec/rspec/mocks/any_instance_spec.rb:163 - 1658) RSpec::Mocks::Double string representation generated by #to_s does not contain < because that might lead to invalid HTML in some situations + 1657) #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/double_spec.rb:722 + # ./spec/rspec/mocks/any_instance_spec.rb:157 - 1659) 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 + 1658) #any_instance when stubbing behaves as 'every instance' stubs instance created before any_instance was called # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/double_spec.rb:162 + # ./spec/rspec/mocks/any_instance_spec.rb:144 - 1660) 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 + 1659) #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/double_spec.rb:170 + # ./spec/rspec/mocks/any_instance_spec.rb:172 - 1661) Serialization of mocked objects marshals the same with and without stubbing + 1660) #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/serialization_spec.rb:84 + # ./spec/rspec/mocks/any_instance_spec.rb:301 - 1662) 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 + 1661) #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/serialization_spec.rb:43 + # ./spec/rspec/mocks/any_instance_spec.rb:235 - 1663) 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 + 1662) #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/serialization_spec.rb:47 + # ./spec/rspec/mocks/any_instance_spec.rb:229 - 1664) Serialization of mocked objects without YAML loaded does not add #to_yaml to the stubbed object + 1663) #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/serialization_spec.rb:77 + # ./spec/rspec/mocks/any_instance_spec.rb:349 - 1665) a double _not_ acting as a null object raises an error when interpolated in a string as an integer + 1664) #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/null_object_double_spec.rb:17 + # ./spec/rspec/mocks/any_instance_spec.rb:213 - 1666) a double _not_ acting as a null object says it does not respond to messages it doesn't understand + 1665) #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/null_object_double_spec.rb:8 + # ./spec/rspec/mocks/any_instance_spec.rb:1286 - 1667) a double _not_ acting as a null object says it responds to messages it does understand + 1666) #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/null_object_double_spec.rb:12 + # ./spec/rspec/mocks/any_instance_spec.rb:1281 - 1668) allow_any_instance_of(...).to receive_messages(:a => 1, :b => 2) allows the object to respond to multiple messages + 1667) 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/matchers/receive_messages_spec.rb:49 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1669) allow_any_instance_of(...).to receive_messages(:a => 1, :b => 2) updates stubs on instances with existing stubs + 1668) 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/matchers/receive_messages_spec.rb:55 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1670) 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 + 1669) 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/matchers/receive_messages_spec.rb:10 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1671) allow_any_instance_of(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given + 1670) 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/matchers/receive_messages_spec.rb:4 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1672) 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 + 1671) 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/matchers/have_received_spec.rb:637 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1673) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available allow(...).to have_received fails because it's nonsensical + 1672) 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/matchers/have_received_spec.rb:629 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1674) 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 + 1673) 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/matchers/have_received_spec.rb:653 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1675) 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 + 1674) 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/matchers/have_received_spec.rb:576 + # ./spec/rspec/mocks/modifying_invoked_expectations_spec.rb:5 - 1676) 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 + 1675) and_invoke when a block is passed raises ArgumentError # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/and_invoke_spec.rb:7 - 1677) 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 + 1676) and_invoke when a non-callable are passed in any position raises ArgumentError # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/and_invoke_spec.rb:24 - 1678) 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 + 1677) and_invoke when calling passed callables passes the arguments into the callable # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/and_invoke_spec.rb:35 - 1679) 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 + 1678) and_invoke when no argument is passed raises ArgumentError # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:571 + # ./spec/rspec/mocks/and_invoke_spec.rb:15 - 1680) 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 + 1679) Loading rspec/mocks/standalone exposes the RSpec::Mocks API on `main` # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:584 + # ./spec/rspec/mocks/standalone_spec.rb:7 - 1681) 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 + 1680) Loading rspec/mocks/standalone does not infect other objects with the RSpec::Mocks API # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/standalone_spec.rb:20 - 1682) 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 + 1681) a double stubbed with multiple return values can still set a message expectation with a single return value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:619 + # ./spec/rspec/mocks/multiple_return_value_spec.rb:10 - 1683) 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 + 1682) 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/have_received_spec.rb:595 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:35 - 1684) 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 + 1683) 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/have_received_spec.rb:619 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 - 1685) 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 + 1684) 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/have_received_spec.rb:609 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 - 1686) 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 + 1685) 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/have_received_spec.rb:604 + # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:22 - 1687) 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 + 1686) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates the name is valid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:124 + # ./spec/rspec/mocks/mutate_const_spec.rb:550 - 1688) 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 + 1687) RSpec::Mocks::Constant.original for a previously defined hidden constant exposes its name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:80 + # ./spec/rspec/mocks/mutate_const_spec.rb:549 - 1689) 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 + 1688) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:100 + # ./spec/rspec/mocks/mutate_const_spec.rb:554 - 1690) 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 + 1689) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it was previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:70 + # ./spec/rspec/mocks/mutate_const_spec.rb:551 - 1691) 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) + 1690) RSpec::Mocks::Constant.original for a previously defined hidden constant exposes its original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:188 + # ./spec/rspec/mocks/mutate_const_spec.rb:555 - 1692) 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 + 1691) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:62 + # ./spec/rspec/mocks/mutate_const_spec.rb:552 - 1693) 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 + 1692) RSpec::Mocks::Constant.original for a previously defined hidden constant indicates it has not been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:111 + # ./spec/rspec/mocks/mutate_const_spec.rb:553 - 1694) 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 + 1693) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:30 + # ./spec/rspec/mocks/mutate_const_spec.rb:448 - 1695) 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 + 1694) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:25 + # ./spec/rspec/mocks/mutate_const_spec.rb:447 - 1696) RSpec::Mocks::Matchers::HaveReceived when used in a context that has only rspec-mocks available expect(...).to have_received generates a useful description + 1695) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it has not been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:183 + # ./spec/rspec/mocks/mutate_const_spec.rb:449 - 1697) 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` + 1696) RSpec::Mocks::Constant.original for a previously defined unstubbed constant exposes its name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:134 + # ./spec/rspec/mocks/mutate_const_spec.rb:444 - 1698) 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 + 1697) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it was previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:54 + # ./spec/rspec/mocks/mutate_const_spec.rb:446 - 1699) 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 + 1698) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates the name is valid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:90 + # ./spec/rspec/mocks/mutate_const_spec.rb:445 - 1700) 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 + 1699) RSpec::Mocks::Constant.original for a previously defined unstubbed constant exposes its original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:156 + # ./spec/rspec/mocks/mutate_const_spec.rb:450 - 1701) 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 + 1700) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates the name is valid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:146 + # ./spec/rspec/mocks/mutate_const_spec.rb:458 - 1702) 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 + 1701) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:43 + # ./spec/rspec/mocks/mutate_const_spec.rb:461 - 1703) 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 + 1702) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has not been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:195 + # ./spec/rspec/mocks/mutate_const_spec.rb:462 - 1704) 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 + 1703) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it has been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:35 + # ./spec/rspec/mocks/mutate_const_spec.rb:460 - 1705) 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 + 1704) RSpec::Mocks::Constant.original for a previously defined stubbed constant exposes its original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:331 + # ./spec/rspec/mocks/mutate_const_spec.rb:463 - 1706) 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 + 1705) RSpec::Mocks::Constant.original for a previously defined stubbed constant exposes its name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:327 + # ./spec/rspec/mocks/mutate_const_spec.rb:457 - 1707) 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 + 1706) RSpec::Mocks::Constant.original for a previously defined stubbed constant indicates it was previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:323 + # ./spec/rspec/mocks/mutate_const_spec.rb:459 - 1708) 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 + 1707) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it was previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:355 + # ./spec/rspec/mocks/mutate_const_spec.rb:565 - 1709) 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 + 1708) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice exposes its original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:361 + # ./spec/rspec/mocks/mutate_const_spec.rb:569 - 1710) 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 + 1709) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has not been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:369 + # ./spec/rspec/mocks/mutate_const_spec.rb:567 - 1711) 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 + 1710) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:398 + # ./spec/rspec/mocks/mutate_const_spec.rb:566 - 1712) 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 + 1711) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice exposes its name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:381 + # ./spec/rspec/mocks/mutate_const_spec.rb:563 - 1713) 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 + 1712) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates the name is valid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:389 + # ./spec/rspec/mocks/mutate_const_spec.rb:564 - 1714) 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 + 1713) RSpec::Mocks::Constant.original for a previously defined constant that has been hidden twice indicates it has been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:430 + # ./spec/rspec/mocks/mutate_const_spec.rb:568 - 1715) 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 + 1714) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice exposes its name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:420 + # ./spec/rspec/mocks/mutate_const_spec.rb:523 - 1716) 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 + 1715) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:411 + # ./spec/rspec/mocks/mutate_const_spec.rb:527 - 1717) 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 + 1716) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice returns nil for the original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:339 + # ./spec/rspec/mocks/mutate_const_spec.rb:529 - 1718) 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 + 1717) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates the name is valid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:347 + # ./spec/rspec/mocks/mutate_const_spec.rb:524 - 1719) 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 + 1718) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:343 + # ./spec/rspec/mocks/mutate_const_spec.rb:526 - 1720) 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 + 1719) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it has not been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:301 + # ./spec/rspec/mocks/mutate_const_spec.rb:528 - 1721) 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 + 1720) RSpec::Mocks::Constant.original for a previously undefined constant that has been stubbed twice indicates it was not previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:297 + # ./spec/rspec/mocks/mutate_const_spec.rb:525 - 1722) 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 + 1721) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) returns nil for its original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:315 + # ./spec/rspec/mocks/mutate_const_spec.rb:582 - 1723) 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 + 1722) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates the name is invalid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:215 + # ./spec/rspec/mocks/mutate_const_spec.rb:577 - 1724) 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 + 1723) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:221 + # ./spec/rspec/mocks/mutate_const_spec.rb:579 - 1725) 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 + 1724) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it was not previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:239 + # ./spec/rspec/mocks/mutate_const_spec.rb:578 - 1726) 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 + 1725) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:285 + # ./spec/rspec/mocks/mutate_const_spec.rb:581 - 1727) 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 + 1726) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) indicates it has not been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:273 + # ./spec/rspec/mocks/mutate_const_spec.rb:580 - 1728) 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 + 1727) RSpec::Mocks::Constant.original for an invalid const name (such as an anonymous module's `inspect` output) exposes the provided string as the name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:264 + # ./spec/rspec/mocks/mutate_const_spec.rb:576 - 1729) 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 + 1728) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:247 + # ./spec/rspec/mocks/mutate_const_spec.rb:474 - 1730) 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 + 1729) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates the name is valid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:231 + # ./spec/rspec/mocks/mutate_const_spec.rb:471 - 1731) 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 + 1730) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:484 + # ./spec/rspec/mocks/mutate_const_spec.rb:473 - 1732) 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 + 1731) RSpec::Mocks::Constant.original for a previously undefined stubbed constant returns nil for the original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:455 + # ./spec/rspec/mocks/mutate_const_spec.rb:476 - 1733) 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 + 1732) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it has not been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:517 + # ./spec/rspec/mocks/mutate_const_spec.rb:475 - 1734) 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 + 1733) RSpec::Mocks::Constant.original for a previously undefined stubbed constant indicates it was not previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:447 + # ./spec/rspec/mocks/mutate_const_spec.rb:472 - 1735) 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 + 1734) RSpec::Mocks::Constant.original for a previously undefined stubbed constant exposes its name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:533 + # ./spec/rspec/mocks/mutate_const_spec.rb:470 - 1736) 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 + 1735) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:538 + # ./spec/rspec/mocks/mutate_const_spec.rb:513 - 1737) 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 + 1736) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice exposes its original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:560 + # ./spec/rspec/mocks/mutate_const_spec.rb:515 - 1738) 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 + 1737) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice exposes its name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:555 + # ./spec/rspec/mocks/mutate_const_spec.rb:509 - 1739) 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 + 1738) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has not been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:174 + # ./spec/rspec/mocks/mutate_const_spec.rb:514 - 1740) 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 + 1739) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates the name is valid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:169 + # ./spec/rspec/mocks/mutate_const_spec.rb:510 - 1741) 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 + 1740) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it has been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/have_received_spec.rb:645 + # ./spec/rspec/mocks/mutate_const_spec.rb:512 - 1742) receive_message_chain when the expect and should syntaxes are enabled stubs the message correctly + 1741) RSpec::Mocks::Constant.original for a previously defined constant that has been stubbed twice indicates it was previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:241 + # ./spec/rspec/mocks/mutate_const_spec.rb:511 - 1743) receive_message_chain with only the expect syntax enabled provides a matcher description (when passing symbols and a hash) + 1742) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:232 + # ./spec/rspec/mocks/mutate_const_spec.rb:541 - 1744) receive_message_chain with only the expect syntax enabled works with a string of messages to chain + 1743) RSpec::Mocks::Constant.original for a previously undefined hidden constant exposes its name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:103 + # ./spec/rspec/mocks/mutate_const_spec.rb:536 - 1745) 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 + 1744) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:168 + # ./spec/rspec/mocks/mutate_const_spec.rb:539 - 1746) receive_message_chain with only the expect syntax enabled passes when with expect_any_instance_of is used and the entire chain is called + 1745) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates the name is valid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:183 + # ./spec/rspec/mocks/mutate_const_spec.rb:537 - 1747) receive_message_chain with only the expect syntax enabled works with and_return + 1746) RSpec::Mocks::Constant.original for a previously undefined hidden constant returns nil for the original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:54 + # ./spec/rspec/mocks/mutate_const_spec.rb:542 - 1748) receive_message_chain with only the expect syntax enabled works with and_throw + 1747) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it was previously undefined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:91 + # ./spec/rspec/mocks/mutate_const_spec.rb:538 - 1749) receive_message_chain with only the expect syntax enabled works with expect where the first level of the chain is already expected + 1748) RSpec::Mocks::Constant.original for a previously undefined hidden constant indicates it has not not been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:190 + # ./spec/rspec/mocks/mutate_const_spec.rb:540 - 1750) receive_message_chain with only the expect syntax enabled works with and_call_original + 1749) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it has not been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:73 + # ./spec/rspec/mocks/mutate_const_spec.rb:498 - 1751) receive_message_chain with only the expect syntax enabled accepts any number of arguments to the stubbed messages + 1750) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it has not been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:115 + # ./spec/rspec/mocks/mutate_const_spec.rb:499 - 1752) receive_message_chain with only the expect syntax enabled stubs already stubbed instances when using `allow_any_instance_of` + 1751) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant exposes its name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:159 + # ./spec/rspec/mocks/mutate_const_spec.rb:495 - 1753) receive_message_chain with only the expect syntax enabled accepts any number of arguments to the stubbed messages with an inline hash return value + 1752) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it was not previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:121 + # ./spec/rspec/mocks/mutate_const_spec.rb:497 - 1754) receive_message_chain with only the expect syntax enabled fails with and_call_original when the entire chain is not called + 1753) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates the name is valid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:79 + # ./spec/rspec/mocks/mutate_const_spec.rb:496 - 1755) receive_message_chain with only the expect syntax enabled can constrain the return value by the argument to the last call + 1754) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant indicates it has not been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:66 + # ./spec/rspec/mocks/mutate_const_spec.rb:500 - 1756) receive_message_chain with only the expect syntax enabled provides a matcher description (when passing a string) + 1755) RSpec::Mocks::Constant.original for a previously undefined unstubbed constant returns nil for the original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:222 + # ./spec/rspec/mocks/mutate_const_spec.rb:501 - 1757) receive_message_chain with only the expect syntax enabled affects previously stubbed instances when `expect_any_instance_of` is called + 1756) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has been mutated # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:175 + # ./spec/rspec/mocks/mutate_const_spec.rb:486 - 1758) receive_message_chain with only the expect syntax enabled does not raise when expect is used and the entire chain is called + 1757) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has been stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:143 + # ./spec/rspec/mocks/mutate_const_spec.rb:487 - 1759) receive_message_chain with only the expect syntax enabled works with allow where the first level of the chain is already stubbed + 1758) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant returns nil for the original value # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:214 + # ./spec/rspec/mocks/mutate_const_spec.rb:489 - 1760) receive_message_chain with only the expect syntax enabled errors with a negative expectation + 1759) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates the name is valid # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:14 + # ./spec/rspec/mocks/mutate_const_spec.rb:484 - 1761) 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 + 1760) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it was not previously defined # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:135 + # ./spec/rspec/mocks/mutate_const_spec.rb:485 - 1762) receive_message_chain with only the expect syntax enabled gives the { } block precedence over the do block + 1761) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant indicates it has not been hidden # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:46 + # ./spec/rspec/mocks/mutate_const_spec.rb:488 - 1763) receive_message_chain with only the expect syntax enabled works with a do block + 1762) RSpec::Mocks::Constant.original for a previously undefined parent of a stubbed constant exposes its name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:32 + # ./spec/rspec/mocks/mutate_const_spec.rb:483 - 1764) receive_message_chain with only the expect syntax enabled errors with a negative any_instance expectation + 1763) 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/matchers/receive_message_chain_spec.rb:20 + # ./spec/rspec/mocks/partial_double_spec.rb:199 - 1765) 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 + 1764) RSpec::Mocks::Space tracks proxies in parent and child space separately # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:127 + # ./spec/rspec/mocks/space_spec.rb:108 - 1766) receive_message_chain with only the expect syntax enabled errors with a negative any_instance allowance + 1765) RSpec::Mocks::Space only adds an instance once # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:26 + # ./spec/rspec/mocks/space_spec.rb:120 - 1767) receive_message_chain with only the expect syntax enabled works with allow where the first level of the chain is already expected + 1766) RSpec::Mocks::Space raises ArgumentError with message if object is symbol # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:198 + # ./spec/rspec/mocks/space_spec.rb:241 - 1768) receive_message_chain with only the expect syntax enabled works with expect where the first level of the chain is already stubbed + 1767) RSpec::Mocks::Space can be diffed in a failure when it has references to an error generator via a proxy # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:206 + # ./spec/rspec/mocks/space_spec.rb:229 - 1769) receive_message_chain with only the expect syntax enabled works with and_raise + 1768) RSpec::Mocks::Space#proxies_of(klass) returns only the proxies whose object is an instance of the given class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:85 + # ./spec/rspec/mocks/space_spec.rb:86 - 1770) receive_message_chain with only the expect syntax enabled works with a {} block + 1769) RSpec::Mocks::Space#proxies_of(klass) looks in the parent space for matching proxies # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:40 + # ./spec/rspec/mocks/space_spec.rb:97 - 1771) receive_message_chain with only the expect syntax enabled works with allow_any_instance + 1770) RSpec::Mocks::Space#proxies_of(klass) returns proxies # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:151 + # ./spec/rspec/mocks/space_spec.rb:69 - 1772) receive_message_chain with only the expect syntax enabled works with a hash return as the last argument in the chain + 1771) RSpec::Mocks::Space#constant_mutator_for returns the mutator for the given const name # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:109 + # ./spec/rspec/mocks/space_spec.rb:182 - 1773) receive_message_chain with only the expect syntax enabled provides a matcher description (when passing symbols) + 1772) RSpec::Mocks::Space#constant_mutator_for can still return a mutator from a parent context # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:227 + # ./spec/rspec/mocks/space_spec.rb:192 - 1774) receive_message_chain with only the expect syntax enabled errors with a negative allowance + 1773) RSpec::Mocks::Space#registered? returns true if registered in a parent space # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:8 + # ./spec/rspec/mocks/space_spec.rb:171 - 1775) receive_message_chain with only the expect syntax enabled works with and_yield + 1774) RSpec::Mocks::Space#registered? returns true if registered in this space # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:97 + # ./spec/rspec/mocks/space_spec.rb:166 - 1776) receive_message_chain with only the expect syntax enabled works with and_invoke + 1775) RSpec::Mocks::Space#registered? returns false if not registered in this or a parent space # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:60 + # ./spec/rspec/mocks/space_spec.rb:176 - 1777) RSpec::Mocks::TestDouble copies the `as_null_object` state when clone'd + 1776) 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/test_double_spec.rb:34 + # ./spec/rspec/mocks/space_spec.rb:147 - 1778) RSpec::Mocks::TestDouble copies the `as_null_object` state when dup'd + 1777) 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/test_double_spec.rb:34 + # ./spec/rspec/mocks/space_spec.rb:154 - 1779) RSpec::Mocks::TestDouble with syntax [:should, :expect] stubs the methods passed in the stubs hash + 1778) 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/test_double_spec.rb:48 + # ./spec/rspec/mocks/space_spec.rb:138 - 1780) RSpec::Mocks::TestDouble with syntax [:expect] stubs the methods passed in the stubs hash + 1779) 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/test_double_spec.rb:48 + # ./spec/rspec/mocks/space_spec.rb:147 - 1781) RSpec::Mocks::TestDouble with syntax [:should] stubs the methods passed in the stubs hash + 1780) 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/test_double_spec.rb:48 + # ./spec/rspec/mocks/space_spec.rb:154 - 1782) RSpec::Mocks::TestDouble#freeze gives the correct call site for the warning + 1781) 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/test_double_spec.rb:12 + # ./spec/rspec/mocks/space_spec.rb:138 - 1783) RSpec::Mocks::TestDouble#freeze returns the instance of the test double + 1782) 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/test_double_spec.rb:27 + # ./spec/rspec/mocks/space_spec.rb:25 - 1784) RSpec::Mocks::TestDouble#freeze gives a warning + 1783) 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/test_double_spec.rb:7 + # ./spec/rspec/mocks/space_spec.rb:39 - 1785) RSpec::Mocks::TestDouble#freeze doesn't freeze the object + 1784) 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/test_double_spec.rb:17 + # ./spec/rspec/mocks/space_spec.rb:9 - 1786) allow(...).to receive_messages(:a => 1, :b => 2) allows the object to respond to multiple messages + 1785) RSpec::Mocks::Space#any_instance_recorder_for can still return a recorder from a parent context # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:35 + # ./spec/rspec/mocks/space_spec.rb:212 - 1787) allow(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a do; end; block is given + 1786) RSpec::Mocks::Space#any_instance_recorder_for does not store a parent's proxy in the child space # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:10 + # ./spec/rspec/mocks/space_spec.rb:219 - 1788) allow(...).to receive_messages(:a => 1, :b => 2) behaves like complains when given blocks complains if a { } block is given + 1787) RSpec::Mocks::Space#any_instance_recorder_for returns the recorder for the given class # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:4 + # ./spec/rspec/mocks/space_spec.rb:206 - 1789) allow(...).to receive_messages(:a => 1, :b => 2) behaves like handles partially mocked objects correctly resets partially mocked objects correctly + 1788) RSpec::Mocks::Space#reset_all allows Array#reverse to be stubbed # around hook at /usr/lib/ruby/vendor_ruby/aruba/rspec.rb:11 did not execute the example - # ./spec/rspec/mocks/matchers/receive_messages_spec.rb:22 + # ./spec/rspec/mocks/space_spec.rb:61 + + 1789) 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/space_spec.rb:50 -Finished in 1.08 seconds (files took 0.48212 seconds to load) +Finished in 1.36 seconds (files took 0.76944 seconds to load) 1789 examples, 0 failures, 1789 pending -Randomized with seed 17024 +Randomized with seed 35350 cd - @@ -8715,9 +8752,9 @@ cd rspec-support /usr/bin/ruby3.1 -S rspec spec/rspec/support/caller_filter_spec.rb spec/rspec/support/comparable_version_spec.rb spec/rspec/support/deprecation_helpers_spec.rb spec/rspec/support/differ_spec.rb spec/rspec/support/directory_maker_spec.rb spec/rspec/support/encoded_string_spec.rb spec/rspec/support/fuzzy_matcher_spec.rb spec/rspec/support/matcher_definition_spec.rb spec/rspec/support/method_signature_verifier_spec.rb spec/rspec/support/mutex_spec.rb spec/rspec/support/object_formatter_spec.rb spec/rspec/support/recursive_const_methods_spec.rb spec/rspec/support/reentrant_mutex_spec.rb spec/rspec/support/ruby_features_spec.rb spec/rspec/support/source/node_spec.rb spec/rspec/support/source/token_spec.rb spec/rspec/support/source_spec.rb spec/rspec/support/spec/in_sub_process_spec.rb spec/rspec/support/spec/shell_out_spec.rb spec/rspec/support/spec/stderr_splitter_spec.rb spec/rspec/support/spec/with_isolated_std_err_spec.rb spec/rspec/support/warnings_spec.rb spec/rspec/support/with_keywords_when_needed_spec.rb spec/rspec/support_spec.rb -Randomized with seed 15479 -............................................................................................................................................................................................................................................................................................................................................................................................*.....*.............................................................................................fatal: not a git repository (or any of the parent directories): .git -......................................................................................... +Randomized with seed 22955 +..................................*..........................................................................................................................................................................................................................................................................................................................................................................................................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) @@ -8732,10 +8769,10 @@ # Need to investigate why this is failing -- see https://travis-ci.org/rspec/rspec-core/jobs/60327106 and https://travis-ci.org/rspec/rspec-support/jobs/60296920 for examples # ./spec/rspec/support/spec/shell_out_spec.rb:22 -Finished in 1.11 seconds (files took 0.19626 seconds to load) +Finished in 1.79 seconds (files took 5.23 seconds to load) 569 examples, 0 failures, 2 pending -Randomized with seed 15479 +Randomized with seed 22955 cd - @@ -8768,27 +8805,27 @@ 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: Depends field of package ruby-rspec-expectations: substitution variable ${shlibs:Depends} used, but is not defined dpkg-gencontrol: warning: package ruby-rspec-expectations: substitution variable ${ruby:Versions} used, but is not defined +dpkg-gencontrol: warning: package ruby-rspec: substitution variable ${ruby:Depends} unused, but is 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-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-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-mocks: substitution variable ${shlibs:Depends} used, but is not defined dpkg-gencontrol: warning: package ruby-rspec-mocks: substitution variable ${ruby:Versions} used, but is not defined -dpkg-gencontrol: warning: 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-core: substitution variable ${ruby:Depends} unused, but is defined -dpkg-gencontrol: warning: package ruby-rspec: substitution variable ${ruby:Depends} unused, but is defined dpkg-gencontrol: warning: package ruby-rspec-mocks: substitution variable ${ruby:Depends} unused, but is defined +dpkg-gencontrol: warning: Depends field of package ruby-rspec-core: substitution variable ${shlibs:Depends} used, but is not defined +dpkg-gencontrol: warning: package ruby-rspec-core: substitution variable ${ruby:Versions} used, but is not defined +dpkg-gencontrol: warning: package ruby-rspec-core: substitution variable ${ruby:Depends} unused, but is defined +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 dh_md5sums -O--buildsystem=ruby dh_builddeb -O--buildsystem=ruby 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-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-deb: building package 'ruby-rspec' in '../ruby-rspec_3.13.0c0e0m0s1-2_all.deb'. +dpkg-deb: building package 'ruby-rspec-support' in '../ruby-rspec-support_3.13.0c0e0m0s1-2_all.deb'. +dpkg-deb: building package 'ruby-rspec-core' in '../ruby-rspec-core_3.13.0c0e0m0s1-2_all.deb'. dpkg-genbuildinfo --build=binary -O../ruby-rspec_3.13.0c0e0m0s1-2_i386.buildinfo dpkg-genchanges --build=binary -O../ruby-rspec_3.13.0c0e0m0s1-2_i386.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -8796,12 +8833,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/11403/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/11403/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/12809 and its subdirectories -I: Current time: Sun Sep 28 06:37:47 -12 2025 -I: pbuilder-time-stamp: 1759084667 +I: removing directory /srv/workspace/pbuilder/11403 and its subdirectories +I: Current time: Tue Aug 27 02:17:34 +14 2024 +I: pbuilder-time-stamp: 1724674654