File: ruby3.3.patch

package info (click to toggle)
ruby-batch-loader 2.0.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 296 kB
  • sloc: ruby: 788; makefile: 10; sh: 4
file content (14 lines) | stat: -rw-r--r-- 546 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: adapt error message regexp for ruby3.3
Author: Cédric Boutillier
Last-Update: 2024-12-15
--- a/spec/batch_loader_spec.rb
+++ b/spec/batch_loader_spec.rb
@@ -60,7 +60,7 @@
 
       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 #<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