FIX: For spam detection, don't count total occurances of links of the same host, but

post count including that host.
This commit is contained in:
Robin Ward
2013-05-24 15:20:58 -04:00
parent bd779834e5
commit d1fdc66ca4
2 changed files with 7 additions and 5 deletions

View File

@@ -201,7 +201,7 @@ describe Post do
end
it "it counts properly with more than one link on the same host" do
three_links.linked_hosts.should == {"discourse.org" => 2, "www.imdb.com" => 1}
three_links.linked_hosts.should == {"discourse.org" => 1, "www.imdb.com" => 1}
end
end