File: skip-gem-building-whitespace-tests.patch

package info (click to toggle)
ruby-webmock 3.26.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,196 kB
  • sloc: ruby: 12,905; makefile: 6
file content (32 lines) | stat: -rw-r--r-- 1,102 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
24
25
26
27
28
29
30
31
32
From: Praveen Arimbrathodiyil <praveen@debian.org>
Date: Wed, 17 Jul 2024 19:21:05 -0300
Subject: ignore whitespace test failures

Forwarded: no
Last-Update: 2013-05-26
---
 spec/quality_spec.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- a/spec/quality_spec.rb
+++ b/spec/quality_spec.rb
@@ -61,9 +61,10 @@ describe "The library itself" do
   end
 
   it "has no malformed whitespace" do
+		pending 'don\'t bother with tab in debian/rules'
     error_messages = []
     Dir.chdir(File.expand_path("../..", __FILE__)) do
-      `git ls-files`.split("\n").each do |filename|
+      `find * -type f`.split("\n").each do |filename|
         next if filename =~ /\.gitmodules|fixtures/
         error_messages << check_for_tab_characters(filename)
         error_messages << check_for_extra_spaces(filename)
@@ -73,6 +74,7 @@ describe "The library itself" do
   end
 
   it "can still be built" do
+		pending 'git ls-files to build gemspec won\'t work outside git repo'
     Dir.chdir(File.expand_path('../../', __FILE__)) do
       `gem build webmock.gemspec`
       expect($?).to eq(0)