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.

Index: ruby-webrobots/test/test_webrobots.rb
===================================================================
--- ruby-webrobots.orig/test/test_webrobots.rb	2012-05-05 23:33:39.201696147 +0200
+++ ruby-webrobots/test/test_webrobots.rb	2012-05-05 23:35:47.831921873 +0200
@@ -465,33 +465,33 @@
     end
   end
 
-  context "robots.txt in the real world" do
-    setup do
-      @testbot = WebRobots.new('TestBot')
-      @msnbot = WebRobots.new('TestMSNBot')	# matches msnbot
-    end
-
-    should "be parsed for major sites" do
-      assert_nothing_raised {
-        assert !@testbot.allowed?("http://www.google.com/search")
-        assert !@testbot.allowed?("https://www.google.com/search")
-        assert !@testbot.allowed?("http://www.google.com/news/section?pz=1&cf=all&ned=jp&topic=y&ict=ln")
-        assert @testbot.allowed?("http://www.google.com/news/directory?pz=1&cf=all&ned=us&hl=en&sort=users&category=6")
-      }
-      assert_nothing_raised {
-        assert @testbot.allowed?("http://www.yahoo.com/")
-        assert !@testbot.allowed?("http://www.yahoo.com/?")
-        assert !@testbot.allowed?("http://www.yahoo.com/p/foo")
-      }
-      assert_nothing_raised {
-        assert !@testbot.allowed?("http://store.apple.com/vieworder")
-        assert @msnbot.allowed?("http://store.apple.com/vieworder")
-      }
-      assert_nothing_raised {
-        assert !@testbot.allowed?("http://github.com/login")
-      }
-    end
-  end
+#  context "robots.txt in the real world" do
+#    setup do
+#      @testbot = WebRobots.new('TestBot')
+#      @msnbot = WebRobots.new('TestMSNBot')	# matches msnbot
+#    end
+#
+#    should "be parsed for major sites" do
+#      assert_nothing_raised {
+#        assert !@testbot.allowed?("http://www.google.com/search")
+#        assert !@testbot.allowed?("https://www.google.com/search")
+#        assert !@testbot.allowed?("http://www.google.com/news/section?pz=1&cf=all&ned=jp&topic=y&ict=ln")
+#        assert @testbot.allowed?("http://www.google.com/news/directory?pz=1&cf=all&ned=us&hl=en&sort=users&category=6")
+#      }
+#      assert_nothing_raised {
+#        assert @testbot.allowed?("http://www.yahoo.com/")
+#        assert !@testbot.allowed?("http://www.yahoo.com/?")
+#        assert !@testbot.allowed?("http://www.yahoo.com/p/foo")
+#      }
+#      assert_nothing_raised {
+#        assert !@testbot.allowed?("http://store.apple.com/vieworder")
+#        assert @msnbot.allowed?("http://store.apple.com/vieworder")
+#      }
+#      assert_nothing_raised {
+#        assert !@testbot.allowed?("http://github.com/login")
+#      }
+#    end
+#  end
 
   context "meta robots tag" do
     setup do
