Skip to content

Commit

Permalink
[webui-testsuite] URI.hostname is ruby 1.9 only unfortunately
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Mar 28, 2012
1 parent 5f2cc99 commit 2ca87a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webui-testsuite/tests/TC80__Spider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def getlinks
end
link.fragment = nil
link.normalize!
next unless link.hostname == 'localhost'
next unless link.host == 'localhost'
next unless link.port == @port
unless @pages_visited.has_key? link.to_s
@pages_to_visit[link.to_s] ||= [baseuri.to_s, element.text]
Expand Down

0 comments on commit 2ca87a1

Please sign in to comment.