diff --git a/spec/models/post_analyzer_spec.rb b/spec/models/post_analyzer_spec.rb index 22ed5eba86a..22de2416958 100644 --- a/spec/models/post_analyzer_spec.rb +++ b/spec/models/post_analyzer_spec.rb @@ -80,6 +80,11 @@ describe PostAnalyzer do post_analyzer = PostAnalyzer.new(raw_three_links, default_topic_id) post_analyzer.linked_hosts.should == {"discourse.org" => 1, "www.imdb.com" => 1} 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