File: require_connection_test.patch

package info (click to toggle)
ruby-em-http-request 1.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 632 kB
  • ctags: 244
  • sloc: ruby: 3,653; makefile: 3
file content (15 lines) | stat: -rw-r--r-- 377 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: disable all test, that require network access
Author: Jonas Genannt <jonas.genannt@capi2name.de>
Forwarded: not-needed

--- a/spec/helper.rb
+++ b/spec/helper.rb
@@ -16,7 +16,7 @@ def failed(http = nil)
 end
 
 def requires_connection(&blk)
-  blk.call if system('ping -t1 -c1 google.com 2>&1 > /dev/null')
+  blk.call if nil
 end
 
 def requires_port(port, &blk)