Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rb2k committed Jun 23, 2010
1 parent 8ab1b10 commit 9482eff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_robots.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 9482eff

Please sign in to comment.