<commit_before>require 'spec_helper'

describe Admin::SettingsController do
  render_views

  before(:each) do
    Factory(:blog)
    request.session = { :user => users(:tobi).id }
  end

  describe "#index" do
    before(:each) do
      get :index
    end
    
    it 'should render index' do  <commit_msg>remove fixture usage in setting_controller_spec<commit_after>require 'spec_helper'

describe Admin::SettingsController do
  render_views

  before(:each) do
    Factory(:blog)
    #TODO Remove this line after remove FIXTURE
    Profile.delete_all
    alice = Factory(:user, :login => 'alice', :profile => Factory(:profile_admin, :label => Profile::ADMIN))
    request.session = { :user => alice.id }
  end

  describe "#index" do
    before(:each) do
      get :index
    end
    
    it 'should render index' do  
{'fraction_non_alphanumeric': 0.1071863580998782, 'fraction_numerical': 0.0, 'mean_word_length': 3.372340425531915, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '3308340', 'n_tokens_mistral': 254, 'n_tokens_neox': 247, 'n_words': 72}