File: Fix-require-module-for-tests.patch

package info (click to toggle)
ruby-jekyll-relative-links 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 332 kB
  • sloc: ruby: 472; sh: 5; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 611 bytes parent folder | download
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 <daniel.leidert@debian.org>
Date: Wed, 8 Feb 2023 15:39:44 +0100
Subject: Fix require module for tests

Replace require_relative by require.

Forwarded: not-needed
---
 spec/spec_helper.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 8137041..3e7717c 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,6 +1,6 @@
 # frozen_string_literal: true
 
-require_relative "../lib/jekyll-relative-links"
+require "jekyll-relative-links"
 
 RSpec.configure do |config|
   config.expect_with :rspec do |expectations|