File: do-not-rely-on-lib-for-testing.patch

package info (click to toggle)
ruby-jekyll-polyglot 1.9.0-1~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 5,196 kB
  • sloc: xml: 1,500; ruby: 947; sh: 10; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 845 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Daniel Leidert <dleidert@debian.org>
Date: Sat, 7 Nov 2020 20:37:01 +0100
Subject: Don't rely on lib for testing

In autopkgtest we don't have lib/ available. So require the module using
require instead.
---
 spec/jekyll/polyglot/hooks/coordinate_spec.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spec/jekyll/polyglot/hooks/coordinate_spec.rb b/spec/jekyll/polyglot/hooks/coordinate_spec.rb
index b5a0708..46d43c9 100644
--- a/spec/jekyll/polyglot/hooks/coordinate_spec.rb
+++ b/spec/jekyll/polyglot/hooks/coordinate_spec.rb
@@ -2,7 +2,7 @@ require 'rspec/helper'
 require 'ostruct'
 require 'fileutils'
 require 'tmpdir'
-require_relative '../../../../lib/jekyll/polyglot/hooks/coordinate'
+require 'jekyll/polyglot/hooks/coordinate'
 Dir.mktmpdir do |_|
   FileUtils.mkdir_p 'css'
   FileUtils.mkdir_p 'images'