File: 0002-fix-FTBFS-with-ruby-rspec-3.12.patch

package info (click to toggle)
ruby-bunny 2.19.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,400 kB
  • sloc: ruby: 9,897; sh: 59; makefile: 23
file content (22 lines) | stat: -rw-r--r-- 1,108 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Author: HIGUCHI Daisuke (VDR dai) <dai@debian.org>
Description: fix FTBFS with ruby-rspec 3.12
Bug-Debian: https://bugs.debian.org/1027067
Last-Update: 2023-01-02

Index: ruby-bunny/spec/unit/exchange_recovery_spec.rb
===================================================================
--- ruby-bunny.orig/spec/unit/exchange_recovery_spec.rb
+++ ruby-bunny/spec/unit/exchange_recovery_spec.rb
@@ -28,9 +28,9 @@ module Bunny
         dst.unbind(src2, routing_key: "def")
         dst.unbind(src3, routing_key: "jkl", arguments: {"key" => "value"})
 
-        expect(ch).to receive(:exchange_bind).with(src1, dst, routing_key: "abc")
-        expect(ch).to receive(:exchange_bind).with(src2, dst, routing_key: "ghi")
-        expect(ch).to receive(:exchange_bind).with(src3, dst, routing_key: "jkl")
+        expect(ch).to receive(:exchange_bind).with(src1, dst, {routing_key: "abc"})
+        expect(ch).to receive(:exchange_bind).with(src2, dst, {routing_key: "ghi"})
+        expect(ch).to receive(:exchange_bind).with(src3, dst, {routing_key: "jkl"})
 
         dst.recover_from_network_failure
       end