File: mocha-3.patch

package info (click to toggle)
ruby-prawn-table 0.2.2-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 588 kB
  • sloc: ruby: 3,355; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 773 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
Description: spec: fix Mocha 3+ strict keyword-argument matching in #style test
 Mocha 3.0+ (default on Ruby 3+) now treats `.with(foo: bar)` as real
 keyword arguments, while Prawn::Table#style (lib/prawn/table.rb:254)
 always passes the options hash *positionally*.
Author: Simon Quigley <tsimonq2@debian.org>
Origin: vendor
Forwarded: not-needed
Last-Update: 2026-02-22
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/spec/table_spec.rb
+++ b/spec/table_spec.rb
@@ -951,7 +951,7 @@ describe "Prawn::Table" do
         " block" do
 
       stylable = stub()
-      stylable.expects(:style).with(:foo => :bar).once.yields
+      stylable.expects(:style).with({:foo => :bar}).once.yields
 
       block = stub()
       block.expects(:kick).once