File: remove-relative-load.patch

package info (click to toggle)
ruby-prometheus-client-mmap 1.2.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 700 kB
  • sloc: ruby: 3,149; sh: 54; makefile: 21
file content (15 lines) | stat: -rw-r--r-- 513 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
autopkgtest should load from the system path, not relative path

Forwarded: not-needed

--- a/spec/prometheus/client/helpers/json_parser_spec.rb
+++ b/spec/prometheus/client/helpers/json_parser_spec.rb
@@ -23,7 +23,7 @@
     context 'without Oj' do
       before(:all) do
         Object.send(:remove_const, 'Oj')
-        load File.join(__dir__,  "../../../../lib/prometheus/client/helper/json_parser.rb")
+        load "prometheus/client/helper/json_parser.rb"
       end
 
       it_behaves_like 'JSON parser'