Permalink
Browse files

fixed tests

  • Loading branch information...
1 parent 8ab1b10 commit 9482eff48cc9d13ebb512429051445cd2eb604e1 @rb2k rb2k committed Jun 23, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/test_robots.rb
View
@@ -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

0 comments on commit 9482eff

Please sign in to comment.