File: 0006-fix-coderay-absolute-file-path-test.patch

package info (click to toggle)
coderay 1.1.3-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,356 kB
  • sloc: ruby: 9,985; makefile: 14; sh: 4; python: 1
file content (19 lines) | stat: -rw-r--r-- 692 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: fix coderay absolute file path test
Author: HIGUCHI Daisuke (VDR dai) <dai@debian.org>
Forwarded: not-needed
Last-Update: 2020-08-20

Index: coderay/spec/coderay_spec.rb
===================================================================
--- coderay.orig/spec/coderay_spec.rb
+++ coderay/spec/coderay_spec.rb
@@ -9,8 +9,7 @@ RSpec.describe CodeRay do
 
   describe '.coderay_path' do
     it 'returns an absolute file path to the given code file' do
-      base = File.expand_path('../..', __FILE__)
-      expect(CodeRay.coderay_path('file')).to eq("#{base}/lib/coderay/file")
+      expect(CodeRay.coderay_path('file')).to eq("#{CodeRay::CODERAY_PATH}/file")
     end
   end