Source: ruby-slack-messenger
Version: 2.3.4-1
Severity: important
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-r...@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-slack-messenger failed to build.

Relevant part of the build log (hopefully):
>      Failure/Error:
>        expect(mock_http).to receive(:post).with(
>          URI.parse("http://example.com";),
>          payload: '{"channel":"new","user":"ship","text":"hello"}'
>        )
> 
>        #<ClassDouble(Slack::Messenger::Util::HTTPClient) (anonymous)> 
> received :post with unexpected arguments
>          expected: (#<URI::HTTP http://example.com>, 
> {:payload=>"{\"channel\":\"new\",\"user\":\"ship\",\"text\":\"hello\"}"}) 
> (keyword arguments)
>               got: (#<URI::HTTP http://example.com>, 
> {:payload=>"{\"channel\":\"new\",\"user\":\"ship\",\"text\":\"hello\"}"}) 
> (options hash)
>      # ./spec/lib/slack-messenger_spec.rb:72:in `block (3 levels) in <top 
> (required)>'
> 
> Finished in 0.05301 seconds (files took 0.13642 seconds to load)
> 83 examples, 6 failures
> 
> Failed examples:
> 
> rspec ./spec/end_to_end_spec.rb:83 # Slack::Messenger applies options given 
> to middleware
> rspec ./spec/lib/slack-messenger/payload_middleware/stack_spec.rb:67 # 
> Slack::Messenger::PayloadMiddleware::Stack#set creates a stack from hashes 
> passing them as opts
> rspec ./spec/lib/slack-messenger_spec.rb:40 # Slack::Messenger#ping calls 
> #post with the message as the text key in #post
> rspec ./spec/lib/slack-messenger_spec.rb:80 # Slack::Messenger#post calls the 
> middleware stack with the payload
> rspec ./spec/lib/slack-messenger_spec.rb:58 # Slack::Messenger#post uses the 
> defaults set on initialization
> rspec ./spec/lib/slack-messenger_spec.rb:69 # Slack::Messenger#post allows 
> overriding the set defaults
> 
> Randomized with seed 261
> 
> /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

Attachment: ruby-slack-messenger.log.gz
Description: application/gzip

Attachment: signature.asc
Description: PGP signature

Reply via email to