Mock Version: 2.14 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-rspec-mocks.spec'], chrootPath='/var/lib/mock/rocky-9-x86_64-ABC_3/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-rspec-mocks.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1628553600 Wrote: /builddir/build/SRPMS/rubygem-rspec-mocks-3.10.2-1.el9.2.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rubygem-rspec-mocks.spec'], chrootPath='/var/lib/mock/rocky-9-x86_64-ABC_3/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rubygem-rspec-mocks.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1628553600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ZyP5y9 + umask 022 + cd /builddir/build/BUILD + gem unpack /builddir/build/SOURCES/rspec-mocks-3.10.2.gem Unpacked gem: '/builddir/build/BUILD/rspec-mocks-3.10.2' + cd /builddir/build/BUILD + /usr/bin/gzip -dc /builddir/build/SOURCES/rubygem-rspec-mocks-3.10.2-full.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd rspec-mocks-3.10.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + gem specification /builddir/build/SOURCES/rspec-mocks-3.10.2.gem -l --ruby + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.4ZIdwX + umask 022 + cd /builddir/build/BUILD + cd rspec-mocks-3.10.2 + gem build rspec-mocks.gemspec WARNING: open-ended dependency on rake (> 10.0.0, development) is not recommended if rake is semantically versioned, use: add_development_dependency 'rake', '~> 10.0', '> 10.0.0' WARNING: See https://guides.rubygems.org/specification-reference/ for help Successfully built RubyGem Name: rspec-mocks Version: 3.10.2 File: rspec-mocks-3.10.2.gem + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-cflags='\''-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'\'' --with-cxxflags='\''-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'\'' --with-ldflags='\''-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 '\'' ' + gem install -V --local --build-root . --force --document=ri,rdoc rspec-mocks-3.10.2.gem WARNING: You build with buildroot. Build root: /builddir/build/BUILD/rspec-mocks-3.10.2 Bin dir: /builddir/build/BUILD/rspec-mocks-3.10.2/usr/bin Gem home: /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems Plugins dir: /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/plugins /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/.document /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/.yardopts /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/Changelog.md /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/LICENSE.md /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/README.md /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/chain.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/error_generator.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/expect_chain_chain.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/expectation_chain.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/message_chains.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/proxy.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/recorder.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/stub_chain.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/stub_chain_chain.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/argument_list_matcher.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/argument_matchers.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/configuration.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/error_generator.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/example_methods.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/instance_method_stasher.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/marshal_extension.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/matchers/expectation_customization.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/matchers/have_received.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/matchers/receive.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/matchers/receive_message_chain.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/matchers/receive_messages.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/message_chain.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/message_expectation.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/method_double.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/method_reference.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/minitest_integration.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/mutate_const.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/object_reference.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/order_group.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/proxy.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/space.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/standalone.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/syntax.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/targets.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/test_double.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/verifying_double.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/verifying_message_expectation.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/verifying_proxy.rb /builddir/build/BUILD/rspec-mocks-3.10.2/usr/share/gems/gems/rspec-mocks-3.10.2/lib/rspec/mocks/version.rb Successfully installed rspec-mocks-3.10.2 Parsing documentation for rspec-mocks-3.10.2 Parsing sources... 2% [ 1/41] lib/rspec/mocks.rb 4% [ 2/41] lib/rspec/mocks/any_instance.rb 7% [ 3/41] lib/rspec/mocks/any_instance/chain.rb 9% [ 4/41] lib/rspec/mocks/any_instance/error_generator.rb 12% [ 5/41] lib/rspec/mocks/any_instance/expect_chain_chain.rb 14% [ 6/41] lib/rspec/mocks/any_instance/expectation_chain.rb 17% [ 7/41] lib/rspec/mocks/any_instance/message_chains.rb 19% [ 8/41] lib/rspec/mocks/any_instance/proxy.rb 21% [ 9/41] lib/rspec/mocks/any_instance/recorder.rb 24% [10/41] lib/rspec/mocks/any_instance/stub_chain.rb 26% [11/41] lib/rspec/mocks/any_instance/stub_chain_chain.rb 29% [12/41] lib/rspec/mocks/argument_list_matcher.rb 31% [13/41] lib/rspec/mocks/argument_matchers.rb 34% [14/41] lib/rspec/mocks/configuration.rb 36% [15/41] lib/rspec/mocks/error_generator.rb 39% [16/41] lib/rspec/mocks/example_methods.rb 41% [17/41] lib/rspec/mocks/instance_method_stasher.rb 43% [18/41] lib/rspec/mocks/marshal_extension.rb 46% [19/41] lib/rspec/mocks/matchers/expectation_customization.rb 48% [20/41] lib/rspec/mocks/matchers/have_received.rb 51% [21/41] lib/rspec/mocks/matchers/receive.rb 53% [22/41] lib/rspec/mocks/matchers/receive_message_chain.rb 56% [23/41] lib/rspec/mocks/matchers/receive_messages.rb 58% [24/41] lib/rspec/mocks/message_chain.rb 60% [25/41] lib/rspec/mocks/message_expectation.rb 63% [26/41] lib/rspec/mocks/method_double.rb 65% [27/41] lib/rspec/mocks/method_reference.rb 68% [28/41] lib/rspec/mocks/minitest_integration.rb 70% [29/41] lib/rspec/mocks/mutate_const.rb 73% [30/41] lib/rspec/mocks/object_reference.rb 75% [31/41] lib/rspec/mocks/order_group.rb 78% [32/41] lib/rspec/mocks/proxy.rb 80% [33/41] lib/rspec/mocks/space.rb 82% [34/41] lib/rspec/mocks/standalone.rb 85% [35/41] lib/rspec/mocks/syntax.rb 87% [36/41] lib/rspec/mocks/targets.rb 90% [37/41] lib/rspec/mocks/test_double.rb 92% [38/41] lib/rspec/mocks/verifying_double.rb 95% [39/41] lib/rspec/mocks/verifying_message_expectation.rb 97% [40/41] lib/rspec/mocks/verifying_proxy.rb 100% [41/41] lib/rspec/mocks/version.rb Installing ri documentation for rspec-mocks-3.10.2 Installing darkfish documentation for rspec-mocks-3.10.2 Done installing documentation for rspec-mocks after 1 seconds 1 gem installed + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Kqwjyb + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rubygem-rspec-mocks-3.10.2-1.el9.2.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rubygem-rspec-mocks-3.10.2-1.el9.2.x86_64 ++ dirname /builddir/build/BUILDROOT/rubygem-rspec-mocks-3.10.2-1.el9.2.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rubygem-rspec-mocks-3.10.2-1.el9.2.x86_64 + cd rspec-mocks-3.10.2 + mkdir -p /builddir/build/BUILDROOT/rubygem-rspec-mocks-3.10.2-1.el9.2.x86_64/usr/share/gems + cp -a ./usr/share/gems/build_info ./usr/share/gems/cache ./usr/share/gems/doc ./usr/share/gems/extensions ./usr/share/gems/gems ./usr/share/gems/plugins ./usr/share/gems/specifications /builddir/build/BUILDROOT/rubygem-rspec-mocks-3.10.2-1.el9.2.x86_64/usr/share/gems/ + rm -f /builddir/build/BUILDROOT/rubygem-rspec-mocks-3.10.2-1.el9.2.x86_64/usr/share/gems/gems/rspec-mocks-3.10.2/.document /builddir/build/BUILDROOT/rubygem-rspec-mocks-3.10.2-1.el9.2.x86_64/usr/share/gems/gems/rspec-mocks-3.10.2/.yardopts + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 3.10.2-1.el9.2 --unique-debug-suffix -3.10.2-1.el9.2.x86_64 --unique-debug-src-base rubygem-rspec-mocks-3.10.2-1.el9.2.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/rspec-mocks-3.10.2 + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.mQU6Lb + umask 022 + cd /builddir/build/BUILD + cd rspec-mocks-3.10.2 + LANG=C.UTF-8 + ruby -rrubygems -Ilib/ -S rspec spec/ Simplecov could not be loaded Run options: exclude {:ordered_and_vague_counts_unsupported=>true} Randomized with seed 32405 ....................................................................................................................................................................................................................................................................................*....................................................................................**.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*....................................................................................................................................................................................*..*.............................................................................................................................................................*................................................................................................................................................. Pending: (Failures listed here are expected and do not affect your suite's status) 1) Reraising eager raises during the verify step when an expectation is called out of order reraises during verification # Says bar was called 0 times when it was, see: http://git.io/pjTq Failure/Error: expect { verify_all }.to fail_with(/received :bar out of order/) expected RSpec::Mocks::MockExpectationError with message matching /received :bar out of order/ but nothing was raised # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:105:in `block (4 levels) in ' # ./spec/spec_helper.rb:45:in `with_unfulfilled_double' # ./spec/rspec/mocks/reraising_eager_raises_spec.rb:100:in `block (3 levels) in ' 2) #any_instance invocation order when setting a message expectation raises an error if 'with' follows 'and_raise' # see Github issue #42 Got 2 failures: 2.1) Failure/Error: expect { expect_any_instance_of(klass).to receive(:foo).and_raise(1).with("1") }.to raise_error(NoMethodError) expected NoMethodError but nothing was raised # ./spec/rspec/mocks/any_instance_spec.rb:85:in `block (4 levels) in ' 2.2) Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure } Exactly one instance should have received the following message(s) but didn't: foo # /usr/share/gems/gems/rspec-support-3.10.2/lib/rspec/support.rb:102:in `block in ' # /usr/share/gems/gems/rspec-support-3.10.2/lib/rspec/support.rb:111:in `notify_failure' # /builddir/build/BUILD/rspec-mocks-3.10.2/lib/rspec/mocks/error_generator.rb:327:in `notify' # /builddir/build/BUILD/rspec-mocks-3.10.2/lib/rspec/mocks/error_generator.rb:311:in `__raise' # /builddir/build/BUILD/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/error_generator.rb:7:in `raise_second_instance_received_message_error' # /builddir/build/BUILD/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/recorder.rb:100:in `verify' # /builddir/build/BUILD/rspec-mocks-3.10.2/lib/rspec/mocks/space.rb:75:in `block in verify_all' # /builddir/build/BUILD/rspec-mocks-3.10.2/lib/rspec/mocks/space.rb:75:in `each_value' # /builddir/build/BUILD/rspec-mocks-3.10.2/lib/rspec/mocks/space.rb:75:in `verify_all' # /builddir/build/BUILD/rspec-mocks-3.10.2/lib/rspec/mocks.rb:45:in `verify' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/mocking_adapters/rspec.rb:23:in `verify_mocks_for_rspec' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:522:in `verify_mocks' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:516:in `run_after_example' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:281:in `block in run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:508:in `block in with_around_and_singleton_context_hooks' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:465:in `block in with_around_example_hooks' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/hooks.rb:486:in `block in run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/hooks.rb:624:in `run_around_example_hooks_for' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/hooks.rb:486:in `run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:465:in `with_around_example_hooks' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:508:in `with_around_and_singleton_context_hooks' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:259:in `run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb:644:in `block in run_examples' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb:640:in `map' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb:640:in `run_examples' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb:606:in `run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb:607:in `block in run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb:607:in `map' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb:607:in `run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb:607:in `block in run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb:607:in `map' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb:607:in `run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:121:in `block (3 levels) in run_specs' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:121:in `map' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:121:in `block (2 levels) in run_specs' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/configuration.rb:2067:in `with_suite_hooks' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:116:in `block in run_specs' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/reporter.rb:74:in `report' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:115:in `run_specs' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:89:in `run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:71:in `run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:45:in `invoke' # /usr/share/gems/gems/rspec-core-3.10.1/exe/rspec:4:in `' # /usr/bin/rspec:23:in `load' # /usr/bin/rspec:23:in `
' # # Showing full backtrace because every line was filtered out. # See docs for RSpec::Configuration#backtrace_exclusion_patterns and # RSpec::Configuration#backtrace_inclusion_patterns for more information. 3) #any_instance invocation order when setting a message expectation raises an error if 'with' follows 'and_return' # see Github issue #42 Got 2 failures: 3.1) Failure/Error: expect { expect_any_instance_of(klass).to receive(:foo).and_return(1).with("1") }.to raise_error(NoMethodError) expected NoMethodError but nothing was raised # ./spec/rspec/mocks/any_instance_spec.rb:80:in `block (4 levels) in ' 3.2) Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure } Exactly one instance should have received the following message(s) but didn't: foo # /usr/share/gems/gems/rspec-support-3.10.2/lib/rspec/support.rb:102:in `block in ' # /usr/share/gems/gems/rspec-support-3.10.2/lib/rspec/support.rb:111:in `notify_failure' # /builddir/build/BUILD/rspec-mocks-3.10.2/lib/rspec/mocks/error_generator.rb:327:in `notify' # /builddir/build/BUILD/rspec-mocks-3.10.2/lib/rspec/mocks/error_generator.rb:311:in `__raise' # /builddir/build/BUILD/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/error_generator.rb:7:in `raise_second_instance_received_message_error' # /builddir/build/BUILD/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/recorder.rb:100:in `verify' # /builddir/build/BUILD/rspec-mocks-3.10.2/lib/rspec/mocks/space.rb:75:in `block in verify_all' # /builddir/build/BUILD/rspec-mocks-3.10.2/lib/rspec/mocks/space.rb:75:in `each_value' # /builddir/build/BUILD/rspec-mocks-3.10.2/lib/rspec/mocks/space.rb:75:in `verify_all' # /builddir/build/BUILD/rspec-mocks-3.10.2/lib/rspec/mocks.rb:45:in `verify' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/mocking_adapters/rspec.rb:23:in `verify_mocks_for_rspec' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:522:in `verify_mocks' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:516:in `run_after_example' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:281:in `block in run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:508:in `block in with_around_and_singleton_context_hooks' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:465:in `block in with_around_example_hooks' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/hooks.rb:486:in `block in run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/hooks.rb:624:in `run_around_example_hooks_for' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/hooks.rb:486:in `run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:465:in `with_around_example_hooks' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:508:in `with_around_and_singleton_context_hooks' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:259:in `run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb:644:in `block in run_examples' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb:640:in `map' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb:640:in `run_examples' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb:606:in `run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb:607:in `block in run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb:607:in `map' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb:607:in `run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb:607:in `block in run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb:607:in `map' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb:607:in `run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:121:in `block (3 levels) in run_specs' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:121:in `map' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:121:in `block (2 levels) in run_specs' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/configuration.rb:2067:in `with_suite_hooks' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:116:in `block in run_specs' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/reporter.rb:74:in `report' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:115:in `run_specs' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:89:in `run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:71:in `run' # /usr/share/gems/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb:45:in `invoke' # /usr/share/gems/gems/rspec-core-3.10.1/exe/rspec:4:in `' # /usr/bin/rspec:23:in `load' # /usr/bin/rspec:23:in `
' # # Showing full backtrace because every line was filtered out. # See docs for RSpec::Configuration#backtrace_exclusion_patterns and # RSpec::Configuration#backtrace_inclusion_patterns for more information. 4) 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 # No reason given Failure/Error: expect { verify_all }.to raise_error { |e| expect(e.backtrace.first).to match(/#{File.basename(__FILE__)}:#{expected_error_line}/) } expected "/usr/share/gems/gems/rspec-support-3.10.2/lib/rspec/support.rb:102:in `block in '" to match /receive_spec.rb:216/ Diff: @@ -1,2 +1,2 @@ -/receive_spec.rb:216/ +"/usr/share/gems/gems/rspec-support-3.10.2/lib/rspec/support.rb:102:in `block in '" Shared Example Group: "an expect syntax expectation" called from ./spec/rspec/mocks/matchers/receive_spec.rb:515 # ./spec/rspec/mocks/matchers/receive_spec.rb:218:in `block (3 levels) in ' 5) receive_message_chain with only the expect syntax enabled fails with and_call_original when the entire chain is not called # See https://github.com/rspec/rspec-mocks/pull/467#issuecomment-28631621 Got 2 failures: 5.1) Failure/Error: expect(list).to receive_message_chain(:to_a, :length).and_call_original # is a pure test double. `and_call_original` is only available on a partial double. # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:75:in `block (3 levels) in ' 5.2) Failure/Error: expect(list).to receive_message_chain(:to_a, :length).and_call_original ([1, 2, 3]).to_a(*(any args)) expected: 1 time with any arguments received: 0 times with any arguments # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:75:in `block (3 levels) in ' 6) receive_message_chain with only the expect syntax enabled works with and_call_original # See https://github.com/rspec/rspec-mocks/pull/467#issuecomment-28631621 Got 2 failures: 6.1) Failure/Error: expect(list).to receive_message_chain(:to_a, :length).and_call_original # is a pure test double. `and_call_original` is only available on a partial double. # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:69:in `block (3 levels) in ' 6.2) Failure/Error: expect(list).to receive_message_chain(:to_a, :length).and_call_original ([1, 2, 3]).to_a(*(any args)) expected: 1 time with any arguments received: 0 times with any arguments # ./spec/rspec/mocks/matchers/receive_message_chain_spec.rb:69:in `block (3 levels) in ' 7) 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 # Not sure how to achieve this yet. See rspec/rspec-mocks#714 and rspec/rspec-support#85. Got 2 failures: 7.1) Failure/Error: eval("object.a_message { |receiver=default_arg| receiver.bar }") # yielded || to block with arity of 1 # (eval):1:in `block (6 levels) in ' # ./spec/rspec/mocks/and_yield_spec.rb:111:in `eval' # ./spec/rspec/mocks/and_yield_spec.rb:111:in `block (6 levels) in ' 7.2) Failure/Error: expect(default_arg).to receive(:bar) (#).bar(*(any args)) expected: 1 time with any arguments received: 0 times with any arguments # ./spec/rspec/mocks/and_yield_spec.rb:109:in `block (6 levels) in ' Finished in 1.21 seconds (files took 0.35972 seconds to load) 1724 examples, 0 failures, 7 pending Randomized with seed 32405 + RPM_EC=0 ++ jobs -p + exit 0 Processing files: rubygem-rspec-mocks-3.10.2-1.el9.2.noarch Provides: rubygem(rspec-mocks) = 3.10.2 rubygem-rspec-mocks = 3.10.2-1.el9.2 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: (rubygem(diff-lcs) >= 1.2.0 with rubygem(diff-lcs) < 2.0) (rubygem(rspec-support) >= 3.10.0 with rubygem(rspec-support) < 3.11) ruby(rubygems) Processing files: rubygem-rspec-mocks-doc-3.10.2-1.el9.2.noarch Provides: rubygem-rspec-mocks-doc = 3.10.2-1.el9.2 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rubygem-rspec-mocks-3.10.2-1.el9.2.x86_64 Wrote: /builddir/build/RPMS/rubygem-rspec-mocks-3.10.2-1.el9.2.noarch.rpm Wrote: /builddir/build/RPMS/rubygem-rspec-mocks-doc-3.10.2-1.el9.2.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.NwAEdV + umask 022 + cd /builddir/build/BUILD + cd rspec-mocks-3.10.2 + /usr/bin/rm -rf /builddir/build/BUILDROOT/rubygem-rspec-mocks-3.10.2-1.el9.2.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0