File: 0005-tests-workaround-absence-of-singlecov.patch

package info (click to toggle)
ruby-fast-gettext 2.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 728 kB
  • sloc: ruby: 3,220; makefile: 3
file content (26 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Antonio Terceiro <terceiro@debian.org>
Date: Sat, 2 Feb 2019 14:03:51 -0200
Subject: tests: workaround absence of singlecov

---
 spec/spec_helper.rb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 6e293b3..9bfac84 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,7 +1,11 @@
 # $VERBOSE = true # ignore complaints in spec files
 
-require 'single_cov'
-SingleCov.setup :rspec
+# workaroung absence of SingleCov without changing code everywhere
+module SingleCov
+  def self.covered!(*args)
+    # nothing
+  end
+end
 
 require 'fast_gettext'
 require 'active_record'