File: no-method-error-message.patch

package info (click to toggle)
ruby-batch-loader 2.0.6%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 316 kB
  • sloc: ruby: 788; makefile: 10; sh: 4
file content (18 lines) | stat: -rw-r--r-- 741 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Accept either quote style, 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/batch_loader_spec.rb
+++ b/spec/batch_loader_spec.rb
@@ -60,7 +60,7 @@ RSpec.describe BatchLoader do
 
       expect(User).to receive(:where).with(id: [1]).once.and_call_original
 
-      expect { post.user_lazy.foo }.to raise_error(NoMethodError, /undefined method `foo' for (#<|an instance of )User/)
+      expect { post.user_lazy.foo }.to raise_error(NoMethodError, /undefined method [`']foo[`']? for (#<|an instance of )User/)
     end
 
     it 'works with nested BatchLoaders' do