remove correlation for tags_followed due to missing index

This commit is contained in:
Ilya Zhitomirskiy 2011-10-11 11:18:42 -07:00
parent 7becb0ac0e
commit 5f324f73a0
2 changed files with 3 additions and 3 deletions

View file

@ -90,7 +90,7 @@ SQL
def generate_correlations
result = {}
[:posts_count, :invites_sent_count, :tags_followed_count,
[:posts_count, :invites_sent_count, #:tags_followed_count,
:mentions_count, :contacts_sharing_with_count].each do |metric|
result[metric] = self.correlate(metric,:sign_in_count)
end

View file

@ -73,8 +73,8 @@ describe Statistics do
@stats.send("#{method}_sql".to_sym)
end
if method != "sign_in_count"
it "#generate_correlations calss correlate with #{method} and sign_in_count" do
if !["sign_in_count", "tags_followed_count"].include?(method)
it "#generate_correlations calls correlate with #{method} and sign_in_count" do
@stats.stub(:correlate).and_return(0.5)
@stats.should_receive(:correlate).with(method.to_sym,:sign_in_count).and_return(0.75)
@stats.generate_correlations