File: 0002-hash-inspect.patch

package info (click to toggle)
ruby-wisper 3.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 292 kB
  • sloc: ruby: 1,231; makefile: 4
file content (45 lines) | stat: -rw-r--r-- 2,842 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Description: Use inspect on each of the elements, fixing tests under Ruby 3.4
Author: Simon Quigley <tsimonq2@debian.org>
Origin: vendor
Forwarded: not-needed
Last-Update: 2026-03-07
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/spec/lib/wisper/broadcasters/logger_broadcaster_spec.rb
+++ b/spec/lib/wisper/broadcasters/logger_broadcaster_spec.rb
@@ -69,7 +69,7 @@ module Wisper
             let(:kwargs) { {x: :y} }
 
             it 'logs published event and arguments' do
-              expect(logger).to receive(:info).with("[WISPER] Publisher#1 published thing_created to Listener#2 with Argument#3, Argument#4 and keyword arguments {:x=>:y}")
+              expect(logger).to receive(:info).with("[WISPER] Publisher#1 published thing_created to Listener#2 with Argument#3, Argument#4 and keyword arguments #{{:x=>:y}.inspect}")
               subject.broadcast(listener, publisher, event, *args, **kwargs)
             end
 
@@ -84,7 +84,7 @@ module Wisper
               let(:kwargs) { {x: :y} }
 
               it 'logs published event and arguments' do
-                expect(logger).to receive(:info).with("[WISPER] Publisher#1 published thing_created to Listener#2 with Hash##{hash.object_id}: #{hash.inspect} and keyword arguments {:x=>:y}")
+                expect(logger).to receive(:info).with("[WISPER] Publisher#1 published thing_created to Listener#2 with Hash##{hash.object_id}: #{hash.inspect} and keyword arguments #{{:x=>:y}.inspect}")
                 subject.broadcast(listener, publisher, event, *args, **kwargs)
               end
             end
@@ -94,7 +94,7 @@ module Wisper
               let(:number) { 10 }
 
               it 'logs published event and arguments' do
-                expect(logger).to receive(:info).with("[WISPER] Publisher#1 published thing_created to Listener#2 with #{number.class.name}##{number.object_id}: 10 and keyword arguments {:x=>:y}")
+                expect(logger).to receive(:info).with("[WISPER] Publisher#1 published thing_created to Listener#2 with #{number.class.name}##{number.object_id}: 10 and keyword arguments #{{:x=>:y}.inspect}")
                 subject.broadcast(listener, publisher, event, *args, **kwargs)
               end
             end
@@ -103,7 +103,7 @@ module Wisper
               let(:args) { [] }
 
               it 'logs published event and arguments' do
-                expect(logger).to receive(:info).with("[WISPER] Publisher#1 published thing_created to Listener#2 with no arguments and keyword arguments {:x=>:y}")
+                expect(logger).to receive(:info).with("[WISPER] Publisher#1 published thing_created to Listener#2 with no arguments and keyword arguments #{{:x=>:y}.inspect}")
                 subject.broadcast(listener, publisher, event, *args, **kwargs)
               end
             end