File: 0004-adjust-path.patch

package info (click to toggle)
camping 3.2.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,312 kB
  • sloc: ruby: 5,032; javascript: 2,362; makefile: 29
file content (18 lines) | stat: -rw-r--r-- 822 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Adjust path
 Fix test that is coded for a specific project directory structure.

Author: Abhijith PA <abhijith@debian.org>
Forwarded: not-needed
Last-Update: 2025-02-10

--- a/test/app_goes_meta.rb
+++ b/test/app_goes_meta.rb
@@ -10,7 +10,7 @@ class Goesmeta::Test < TestCase
 		meta = value = options[:_meta]
 		value = "nil" if meta == nil
 		assert meta != nil, "meta data was not added. #{value}"
-		assert meta[:file].include?("/camping/camping/test/app_goes_meta.rb"), "Wait a minute. This app Goesmeta, has a wonky creation location. #{meta[:file]}"
+		assert meta[:file].include?("/test/app_goes_meta.rb"), "Wait a minute. This app Goesmeta, has a wonky creation location. #{meta[:file]}"
 		assert meta[:line_number] == 4, "App creation location line number is wrong. It's supposed to be 4."
 	end