From 9482eff48cc9d13ebb512429051445cd2eb604e1 Mon Sep 17 00:00:00 2001 From: Marc Seeger Date: Wed, 23 Jun 2010 10:53:48 +0200 Subject: [PATCH] fixed tests --- test/test_robots.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_robots.rb b/test/test_robots.rb index e91f2ff..a86baae 100644 --- a/test/test_robots.rb +++ b/test/test_robots.rb @@ -14,7 +14,7 @@ def status class TestRobots < Test::Unit::TestCase def setup - def Robots.get_robots_txt(uri) + def Robots.get_robots_txt(uri, user_agent) fixture_file = File.dirname(__FILE__) + "/fixtures/" + uri.host.split(".")[-2] + ".txt" File.open(fixture_file).extend(FakeHttp) end @@ -23,7 +23,7 @@ def Robots.get_robots_txt(uri) end def test_allowed_if_no_robots - def Robots.get_robots_txt(uri) + def Robots.get_robots_txt(uri, user_agent) return nil end