File: disable-internet-tests

package info (click to toggle)
ruby-webrobots 0.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 312 kB
  • sloc: ruby: 1,441; makefile: 3
file content (33 lines) | stat: -rw-r--r-- 840 bytes parent folder | download | duplicates (3)
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
33
Author: Christian Hofstaedtler <christian@hofstaedtler.name>
Forwarded: not-needed
Last-updated: 2012-05-05
Description: Disable test requiring Internet
 Package builds can not rely on working Internet to be available.
 As skip() does not work on 1.8, this patch comments the test out.

--- a/test/test_webrobots.rb
+++ b/test/test_webrobots.rb
@@ -615,7 +615,7 @@ Disallow: /
         }
       end
     end
-  end
+  end if false
 
   context "meta robots tag" do
     setup do
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -10,12 +10,6 @@
 require 'test/unit'
 require 'shoulda'
 require 'webmock/test_unit'
-require 'vcr'
-
-VCR.configure do |c|
-  c.cassette_library_dir = 'test/vcr_cassettes'
-  c.hook_into :webmock
-end
 
 $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
 $LOAD_PATH.unshift(File.dirname(__FILE__))