Mock Version: 2.9 Mock Version: 2.9 Mock Version: 2.9 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/rubygem-rspec-mocks.spec'], chrootPath='/var/lib/mock/dist-circle8-build-36160-6276/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=86400uid=993gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --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: noarch Building for target noarch Wrote: /builddir/build/SRPMS/rubygem-rspec-mocks-3.7.0-4.el8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/rubygem-rspec-mocks.spec'], chrootPath='/var/lib/mock/dist-circle8-build-36160-6276/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=86400uid=993gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --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: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fFp5fx + umask 022 + cd /builddir/build/BUILD + gem unpack /builddir/build/SOURCES/rspec-mocks-3.7.0.gem Unpacked gem: '/builddir/build/BUILD/rspec-mocks-3.7.0' + cd /builddir/build/BUILD + /usr/bin/gzip -dc /builddir/build/SOURCES/rubygem-rspec-mocks-3.7.0-full.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd rspec-mocks-3.7.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #1 (rspec-mocks-3.7.0-test-ruby-25.patch): + echo 'Patch #1 (rspec-mocks-3.7.0-test-ruby-25.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file spec/rspec/mocks/mutate_const_spec.rb patching file spec/rspec/mocks/and_wrap_original_spec.rb + gem specification /builddir/build/SOURCES/rspec-mocks-3.7.0.gem -l --ruby + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.fhphdM + umask 022 + cd /builddir/build/BUILD + cd rspec-mocks-3.7.0 + gem build rspec-mocks.gemspec WARNING: pessimistic dependency on rspec-support (~> 3.7.0) may be overly strict if rspec-support is semantically versioned, use: add_runtime_dependency 'rspec-support', '~> 3.7', '>= 3.7.0' WARNING: pessimistic dependency on rake (~> 10.0.0, development) may be overly strict if rake is semantically versioned, use: add_development_dependency 'rake', '~> 10.0', '>= 10.0.0' WARNING: pessimistic dependency on cucumber (~> 1.3.15, development) may be overly strict if cucumber is semantically versioned, use: add_development_dependency 'cucumber', '~> 1.3', '>= 1.3.15' WARNING: See http://guides.rubygems.org/specification-reference/ for help Successfully built RubyGem Name: rspec-mocks Version: 3.7.0 File: rspec-mocks-3.7.0.gem + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-cflags='\''-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=x86-64 -mtune=generic -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'\'' ' + gem install -V --local --build-root . --force --document=ri,rdoc rspec-mocks-3.7.0.gem WARNING: You build with buildroot. Build root: /builddir/build/BUILD/rspec-mocks-3.7.0 Bin dir: /builddir/build/BUILD/rspec-mocks-3.7.0/usr/bin Gem home: /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/.document /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/.yardopts /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/Changelog.md /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/LICENSE.md /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/README.md /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/chain.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/error_generator.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/expect_chain_chain.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/expectation_chain.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/message_chains.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/proxy.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/recorder.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/stub_chain.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/stub_chain_chain.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/argument_list_matcher.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/argument_matchers.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/configuration.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/error_generator.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/example_methods.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/instance_method_stasher.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/marshal_extension.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/expectation_customization.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/have_received.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/receive.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/receive_message_chain.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/receive_messages.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/message_chain.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/message_expectation.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/method_double.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/method_reference.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/minitest_integration.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/mutate_const.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/object_reference.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/order_group.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/proxy.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/space.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/standalone.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/syntax.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/targets.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/test_double.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/verifying_double.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/verifying_message_expectation.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/verifying_proxy.rb /builddir/build/BUILD/rspec-mocks-3.7.0/usr/share/gems/gems/rspec-mocks-3.7.0/lib/rspec/mocks/version.rb Successfully installed rspec-mocks-3.7.0 Parsing documentation for rspec-mocks-3.7.0 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.7.0 Installing darkfish documentation for rspec-mocks-3.7.0 Done installing documentation for rspec-mocks after 1 seconds 1 gem installed + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.vdlzX8 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rubygem-rspec-mocks-3.7.0-4.el8.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rubygem-rspec-mocks-3.7.0-4.el8.noarch ++ dirname /builddir/build/BUILDROOT/rubygem-rspec-mocks-3.7.0-4.el8.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rubygem-rspec-mocks-3.7.0-4.el8.noarch + cd rspec-mocks-3.7.0 + mkdir -p /builddir/build/BUILDROOT/rubygem-rspec-mocks-3.7.0-4.el8.noarch/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/specifications /builddir/build/BUILDROOT/rubygem-rspec-mocks-3.7.0-4.el8.noarch/usr/share/gems/ + rm -f /builddir/build/BUILDROOT/rubygem-rspec-mocks-3.7.0-4.el8.noarch/usr/share/gems/gems/rspec-mocks-3.7.0/.document /builddir/build/BUILDROOT/rubygem-rspec-mocks-3.7.0-4.el8.noarch/usr/share/gems/gems/rspec-mocks-3.7.0/.yardopts + /usr/lib/rpm/find-debuginfo.sh -j16 --strict-build-id -m -i --build-id-seed 3.7.0-4.el8 --unique-debug-suffix -3.7.0-4.el8.noarch --unique-debug-src-base rubygem-rspec-mocks-3.7.0-4.el8.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/rspec-mocks-3.7.0 + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile '' 1 + /usr/lib/rpm/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.HZ5aZz + umask 022 + cd /builddir/build/BUILD + cd rspec-mocks-3.7.0 + LANG=en_US.utf8 + ruby -rrubygems -Ilib/ -S rspec spec/ Simplecov could not be loaded Run options: exclude {:ordered_and_vague_counts_unsupported=>true} Randomized with seed 42719 ....................................................................................................................................................................................................................................................................................................................................................................................**................................................................................................................................................................................................................................................................................................................................*..................................................................................................................................................................................................................................*...................*...............................*.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................*............................................................................................................................................................................................................................................................ Pending: (Failures listed here are expected and do not affect your suite's status) 1) #any_instance invocation order when setting a message expectation raises an error if 'with' follows 'and_return' # see Github issue #42 Got 2 failures: 1.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 ' 1.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.7.1/lib/rspec/support.rb:97:in `block in ' # /usr/share/gems/gems/rspec-support-3.7.1/lib/rspec/support.rb:106:in `notify_failure' # /builddir/build/BUILD/rspec-mocks-3.7.0/lib/rspec/mocks/error_generator.rb:327:in `notify' # /builddir/build/BUILD/rspec-mocks-3.7.0/lib/rspec/mocks/error_generator.rb:311:in `__raise' # /builddir/build/BUILD/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/error_generator.rb:7:in `raise_second_instance_received_message_error' # /builddir/build/BUILD/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/recorder.rb:95:in `verify' # /builddir/build/BUILD/rspec-mocks-3.7.0/lib/rspec/mocks/space.rb:75:in `block in verify_all' # /builddir/build/BUILD/rspec-mocks-3.7.0/lib/rspec/mocks/space.rb:75:in `each_value' # /builddir/build/BUILD/rspec-mocks-3.7.0/lib/rspec/mocks/space.rb:75:in `verify_all' # /builddir/build/BUILD/rspec-mocks-3.7.0/lib/rspec/mocks.rb:45:in `verify' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/mocking_adapters/rspec.rb:23:in `verify_mocks_for_rspec' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:514:in `verify_mocks' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:508:in `run_after_example' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:273:in `block in run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:466:in `block in run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:604:in `run_around_example_hooks_for' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:466:in `run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:457:in `with_around_example_hooks' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:251:in `run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:628:in `block in run_examples' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:624:in `map' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:624:in `run_examples' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:590:in `run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `block in run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `map' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `block in run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `map' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:118:in `map' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:113:in `block in run_specs' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/reporter.rb:79:in `report' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:112:in `run_specs' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:87:in `run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:71:in `run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:45:in `invoke' # /usr/share/gems/gems/rspec-core-3.7.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. 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.7.1/lib/rspec/support.rb:97:in `block in ' # /usr/share/gems/gems/rspec-support-3.7.1/lib/rspec/support.rb:106:in `notify_failure' # /builddir/build/BUILD/rspec-mocks-3.7.0/lib/rspec/mocks/error_generator.rb:327:in `notify' # /builddir/build/BUILD/rspec-mocks-3.7.0/lib/rspec/mocks/error_generator.rb:311:in `__raise' # /builddir/build/BUILD/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/error_generator.rb:7:in `raise_second_instance_received_message_error' # /builddir/build/BUILD/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/recorder.rb:95:in `verify' # /builddir/build/BUILD/rspec-mocks-3.7.0/lib/rspec/mocks/space.rb:75:in `block in verify_all' # /builddir/build/BUILD/rspec-mocks-3.7.0/lib/rspec/mocks/space.rb:75:in `each_value' # /builddir/build/BUILD/rspec-mocks-3.7.0/lib/rspec/mocks/space.rb:75:in `verify_all' # /builddir/build/BUILD/rspec-mocks-3.7.0/lib/rspec/mocks.rb:45:in `verify' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/mocking_adapters/rspec.rb:23:in `verify_mocks_for_rspec' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:514:in `verify_mocks' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:508:in `run_after_example' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:273:in `block in run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:466:in `block in run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:604:in `run_around_example_hooks_for' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:466:in `run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:457:in `with_around_example_hooks' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:251:in `run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:628:in `block in run_examples' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:624:in `map' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:624:in `run_examples' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:590:in `run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `block in run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `map' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `block in run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `map' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:118:in `map' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:113:in `block in run_specs' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/reporter.rb:79:in `report' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:112:in `run_specs' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:87:in `run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:71:in `run' # /usr/share/gems/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:45:in `invoke' # /usr/share/gems/gems/rspec-core-3.7.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) 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.7.1/lib/rspec/support.rb:97:in `block in '" to match /receive_spec.rb:165/ Diff: @@ -1,2 +1,2 @@ -/receive_spec.rb:165/ +"/usr/share/gems/gems/rspec-support-3.7.1/lib/rspec/support.rb:97:in `block in '" Shared Example Group: "an expect syntax expectation" called from ./spec/rspec/mocks/matchers/receive_spec.rb:464 # ./spec/rspec/mocks/matchers/receive_spec.rb:167:in `block (3 levels) in ' 4) 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: 4.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 ' 4.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 ' 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) 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 ' 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 # ./spec/rspec/mocks/and_yield_spec.rb:111:in `eval' # (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.76 seconds (files took 0.67427 seconds to load) 1680 examples, 0 failures, 7 pending Randomized with seed 42719 + exit 0 Processing files: rubygem-rspec-mocks-3.7.0-4.el8.noarch Provides: rubygem(rspec-mocks) = 3.7.0-1 rubygem-rspec-mocks = 3.7.0-4.el8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: (rubygem(diff-lcs) < 2.0 with rubygem(diff-lcs) >= 1.2.0) (rubygem(rspec-support) >= 3.7.0 with rubygem(rspec-support) < 3.8) ruby(rubygems) Processing files: rubygem-rspec-mocks-doc-3.7.0-4.el8.noarch Provides: rubygem-rspec-mocks-doc = 3.7.0-4.el8 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.7.0-4.el8.noarch Wrote: /builddir/build/RPMS/rubygem-rspec-mocks-3.7.0-4.el8.noarch.rpm Wrote: /builddir/build/RPMS/rubygem-rspec-mocks-doc-3.7.0-4.el8.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.H8Egdf + umask 022 + cd /builddir/build/BUILD + cd rspec-mocks-3.7.0 + /usr/bin/rm -rf /builddir/build/BUILDROOT/rubygem-rspec-mocks-3.7.0-4.el8.noarch + exit 0 Child return code was: 0