[DRE-maint] Bug#1027096: ruby-webmock: FTBFS with ruby-rspec 3.12: ERROR: Test "ruby3.1" failed: Failure/Error: @headers = Util::Headers.normalize_headers(@headers)

Antonio Terceiro terceiro at debian.org
Tue Dec 27 17:33:20 GMT 2022


Source: ruby-webmock
Version: 3.8.3-2
Severity: important
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby-rspec-3.12

Hi,

I'm about to upload ruby-rspec 3.12. During a test rebuild with that version,
ruby-webmock failed to build.

Relevant part of the build log (hopefully):
>      Failure/Error: @headers = Util::Headers.normalize_headers(@headers)
> 
>        #<WebMock::Util::Headers (class)> received :normalize_headers with unexpected arguments
>          expected: ({"A"=>"a"}) (keyword arguments)
>               got: ({"A"=>"a"}) (options hash)
>      # ./lib/webmock/response.rb:31:in `headers='
>      # ./lib/webmock/response.rb:76:in `options='
>      # ./lib/webmock/response.rb:20:in `initialize'
>      # ./spec/unit/response_spec.rb:35:in `new'
>      # ./spec/unit/response_spec.rb:35:in `block (2 levels) in <top (required)>'
> 
> Finished in 5.14 seconds (files took 1.09 seconds to load)
> 3440 examples, 2 failures
> 
> Failed examples:
> 
> rspec ./spec/unit/request_signature_spec.rb:20 # WebMock::RequestSignature initialization assigns normalized headers
> rspec ./spec/unit/response_spec.rb:33 # WebMock::Response should report normalized headers
> 
> /usr/bin/ruby3.1 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.12.0/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.12.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.12.0/exe/rspec spec/acceptance/curb/curb_spec.rb spec/acceptance/em_http_request/em_http_request_spec.rb spec/acceptance/httpclient/httpclient_spec.rb spec/acceptance/manticore/manticore_spec.rb spec/acceptance/net_http/net_http_spec.rb spec/acceptance/net_http/real_net_http_spec.rb spec/acceptance/typhoeus/typhoeus_hydra_spec.rb spec/unit/api_spec.rb spec/unit/errors_spec.rb spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb spec/unit/http_lib_adapters/http_lib_adapter_spec.rb spec/unit/matchers/hash_excluding_matcher_spec.rb spec/unit/matchers/hash_including_matcher_spec.rb spec/unit/rack_response_spec.rb spec/unit/request_body_diff_spec.rb spec/unit/request_execution_verifier_spec.rb spec/unit/request_pattern_spec.rb spec/unit/request_registry_spec.rb spec/unit/request_signature_snippet_spec.rb spec/unit/request_signature_spec.rb spec/unit/request_stub_spec.rb spec/unit/response_spec.rb spec/unit/stub_registry_spec.rb spec/unit/stub_request_snippet_spec.rb spec/unit/util/hash_counter_spec.rb spec/unit/util/hash_keys_stringifier_spec.rb spec/unit/util/headers_spec.rb spec/unit/util/json_spec.rb spec/unit/util/query_mapper_spec.rb spec/unit/util/uri_spec.rb spec/unit/util/version_checker_spec.rb spec/unit/webmock_spec.rb -c -f progress -r ./spec/spec_helper.rb failed
> ERROR: Test "ruby3.1" failed: 


The full build log is attached.

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ruby-webmock.log.gz
Type: application/gzip
Size: 18788 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20221227/1255261a/attachment-0001.gz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20221227/1255261a/attachment-0001.sig>


More information about the Pkg-ruby-extras-maintainers mailing list