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
|