summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-07-13 11:27:45 +0200
committerHans de Graaff <graaff@gentoo.org>2022-07-13 11:28:34 +0200
commit06c1584864d40eb0e380c854d466374663fabd3b (patch)
tree1c772796b48314a41f9daa91e7d6e55ae6597403 /dev-ruby/websocket-extensions
parentdev-python/editdistance-s: treeclean (diff)
downloadgentoo-06c1584864d40eb0e380c854d466374663fabd3b.tar.gz
gentoo-06c1584864d40eb0e380c854d466374663fabd3b.tar.bz2
gentoo-06c1584864d40eb0e380c854d466374663fabd3b.zip
dev-ruby/websocket-extensions: add missing patch
Closes: https://bugs.gentoo.org/857870 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/websocket-extensions')
-rw-r--r--dev-ruby/websocket-extensions/files/websocket-extensions-0.1.5-rspec-mocks.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-ruby/websocket-extensions/files/websocket-extensions-0.1.5-rspec-mocks.patch b/dev-ruby/websocket-extensions/files/websocket-extensions-0.1.5-rspec-mocks.patch
new file mode 100644
index 000000000000..152972e232dc
--- /dev/null
+++ b/dev-ruby/websocket-extensions/files/websocket-extensions-0.1.5-rspec-mocks.patch
@@ -0,0 +1,37 @@
+From 5891358639fcfa7a2e2004855275bd7da0c85c64 Mon Sep 17 00:00:00 2001
+From: James Coglan <jcoglan@gmail.com>
+Date: Sun, 6 Feb 2022 23:36:18 +0000
+Subject: [PATCH] As of rspec-mocks v3.10.3, mock expectations need to use
+ explicit hashes to avoid confusion with keyword args
+
+---
+ spec/websocket/extensions_spec.rb | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/spec/websocket/extensions_spec.rb b/spec/websocket/extensions_spec.rb
+index 7c1e4f1..ccb305d 100644
+--- a/spec/websocket/extensions_spec.rb
++++ b/spec/websocket/extensions_spec.rb
+@@ -134,18 +134,18 @@
+ end
+
+ it "activates one session with a boolean param" do
+- expect(@session).to receive(:activate).with("gzip" => true).exactly(1).and_return(true)
++ expect(@session).to receive(:activate).with({ "gzip" => true }).exactly(1).and_return(true)
+ @extensions.activate("deflate; gzip")
+ end
+
+ it "activates one session with a string param" do
+- expect(@session).to receive(:activate).with("mode" => "compress").exactly(1).and_return(true)
++ expect(@session).to receive(:activate).with({ "mode" => "compress" }).exactly(1).and_return(true)
+ @extensions.activate("deflate; mode=compress")
+ end
+
+ it "activate multiple sessions" do
+- expect(@session).to receive(:activate).with("a" => true).exactly(1).and_return(true)
+- expect(@nonconflict_session).to receive(:activate).with("b" => true).exactly(1).and_return(true)
++ expect(@session).to receive(:activate).with({ "a" => true }).exactly(1).and_return(true)
++ expect(@nonconflict_session).to receive(:activate).with({ "b" => true }).exactly(1).and_return(true)
+ @extensions.activate("deflate; a, reverse; b")
+ end
+