<commit_before>require 'spec_helper'

describe IndexController, "routing" do
  it { should route(:get, '/').to(:controller => :index, :action => :index) }
end

describe IndexController, "GET index" do
  before(:each) do
    IndexStat.stub!(:attendance_average).and_return([])
    IndexStat.stub!(:loot_factor_average).and_return([])
    IndexStat.stub!(:common_items).and_return([])
    IndexStat.stub!(:common_tokens).and_return([])
    IndexStat.stub!(:most_requested).and_return([])
    IndexStat.stub!(:loots_per_raid).and_return([])
    IndexStat.stub!(:oldest_members).and_return([])
    IndexStat.stub!(:least_recruitable).and_return([])
    IndexStat.stub!(:highest_turnover).and_return([])
    IndexStat.stub!(:fragment_progress).and_return([])
    get :index
  end

  it { should assign_to(:count_guild).with_kind_of(Integer) }
  it { should assign_to(:counts) }
  it { should assign_to(:attendance_guild) }
  it { should assign_to(:attendance) }
  it { should assign_to(:lootfactor_guild) }
  it { should assign_to(:lootfactor) }
  it { should assign_to(:stat_groups) }
  it { should render_template(:index) }
  it { should respond_with(:success) }
end<commit_msg>Forgot to stub some IndexStat calls in IndexController spec<commit_after>require 'spec_helper'

describe IndexController, "routing" do
  it { should route(:get, '/').to(:controller => :index, :action => :index) }
end

describe IndexController, "GET index" do
  before(:each) do
    IndexStat.stub!(:attendance_average).and_return([])
    IndexStat.stub!(:loot_factor_average).and_return([])
    IndexStat.stub!(:common_items).and_return([])
    IndexStat.stub!(:common_tokens).and_return([])
    IndexStat.stub!(:most_requested).and_return([])
    IndexStat.stub!(:loots_per_raid).and_return([])
    IndexStat.stub!(:oldest_members).and_return([])
    IndexStat.stub!(:least_recruitable).and_return([])
    IndexStat.stub!(:highest_turnover).and_return([])
    IndexStat.stub!(:shadowmourne_progress).and_return([])
    IndexStat.stub!(:best_attendance).and_return([])
    get :index
  end

  it { should assign_to(:count_guild).with_kind_of(Integer) }
  it { should assign_to(:counts) }
  it { should assign_to(:attendance_guild) }
  it { should assign_to(:attendance) }
  it { should assign_to(:lootfactor_guild) }
  it { should assign_to(:lootfactor) }
  it { should assign_to(:stat_groups).with_kind_of(Array) }
  it { should render_template(:index) }
  it { should respond_with(:success) }
end
{'fraction_non_alphanumeric': 0.15406389001213103, 'fraction_numerical': 0.0, 'mean_word_length': 5.668463611859838, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6634454', 'n_tokens_mistral': 848, 'n_tokens_neox': 862, 'n_words': 132}