Package: ruby-webmock / 1.19.0-1

skip-gem-building-whitespace-tests.patch Patch series | 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
Description: ignore whitespace test failures
Author: Praveen Arimbrathodiyil <praveen@debian.org>
Forwarded: no
Last-Update: 2013-05-26

--- a/spec/quality_spec.rb
+++ b/spec/quality_spec.rb
@@ -61,9 +61,10 @@
   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 @@
   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`
       $?.should == 0