remove correlation for tags_followed due to missing index
This commit is contained in:
parent
7becb0ac0e
commit
5f324f73a0
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue