Failing test

This commit is contained in:
Tom Russell 2013-07-15 11:22:59 +01:00
parent 96065a1499
commit f3279a67fc
1 changed files with 5 additions and 0 deletions

View File

@ -80,6 +80,11 @@ describe PostAnalyzer do
post_analyzer = PostAnalyzer.new(raw_three_links, default_topic_id) post_analyzer = PostAnalyzer.new(raw_three_links, default_topic_id)
post_analyzer.linked_hosts.should == {"discourse.org" => 1, "www.imdb.com" => 1} post_analyzer.linked_hosts.should == {"discourse.org" => 1, "www.imdb.com" => 1}
end end
it 'returns blank for ipv6 output' do
post_analyzer = PostAnalyzer.new('PING www.google.com(lb-in-x93.1e100.net) 56 data bytes', default_topic_id)
post_analyzer.linked_hosts.should be_blank
end
end end
end end