[DRE-maint] Bug#1027077: ruby-invisible-captcha: FTBFS with ruby3.1: ERROR: Test "ruby3.1" failed: Failure/Error:

Antonio Terceiro terceiro at debian.org
Tue Dec 27 15:23:20 GMT 2022


Source: ruby-invisible-captcha
Version: 1.1.0-5
Severity: important
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.1

Hi,

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

Relevant part of the build log (hopefully):
>      Failure/Error:
>        expect(dummy_handler).to receive(:handle_event).once.with(
>          message: "Invisible Captcha honeypot param 'subtitle' was present.",
>          remote_ip: '0.0.0.0',
>          user_agent: 'Rails Testing',
>          controller: 'topics',
>          action: 'create',
>          url: 'http://test.host/topics',
>          params: {
>            topic: { subtitle: "foo"},
>            controller: 'topics',
> 
>        #<Double (anonymous)> received :handle_event with unexpected arguments
>          expected: ({:action=>"create", :controller=>"topics", :message=>"Invisible Captcha honeypot param 'subtitle' was...itle=>"foo"}}, :remote_ip=>"0.0.0.0", :url=>"http://test.host/topics", :user_agent=>"Rails Testing"}) (keyword arguments)
>               got: ({:action=>"create", :controller=>"topics", :message=>"Invisible Captcha honeypot param 'subtitle' was...tle"=>"foo"}}, :remote_ip=>"0.0.0.0", :url=>"http://test.host/topics", :user_agent=>"Rails Testing"}) (options hash)
>        Diff:
>        @@ -2,7 +2,7 @@
>           :controller=>"topics",
>           :message=>"Invisible Captcha honeypot param 'subtitle' was present.",
>           :params=>
>        -   {:action=>"create", :controller=>"topics", :topic=>{:subtitle=>"foo"}},
>        +   {"action"=>"create", "controller"=>"topics", "topic"=>{"subtitle"=>"foo"}},
>           :remote_ip=>"0.0.0.0",
>           :url=>"http://test.host/topics",
>           :user_agent=>"Rails Testing"}]
>      # ./spec/controllers_spec.rb:164:in `block (4 levels) in <top (required)>'
> 
> Finished in 8.44 seconds (files took 1.13 seconds to load)
> 28 examples, 1 failure
> 
> Failed examples:
> 
> rspec ./spec/controllers_spec.rb:160 # InvisibleCaptcha::ControllerExt honeypot attribute ActiveSupport::Notifications dispatches an `invisible_captcha.spam_detected` event
> 
> Randomized with seed 608
> 
> /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 --pattern ./spec/\*\*/\*_spec.rb --format documentation 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: 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/58fb8558/attachment.sig>


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