<commit_before>require 'spec_helper'

module AccountManager

  describe 'routes', type: :request do

    describe '/' do
      it "redirects to #{App::DEFAULT_ROUTE}" do
        visit '/'
        page.current_path.should == App::DEFAULT_ROUTE
      end
    end

    describe '/stylesheets/screen.css' do
      it 'retrieves a stylesheet' do
        visit '/stylesheets/screen.css'
        page.response_headers['Content-Type'].should match %r[text/css;\s?charset=utf-8]
      end
    end

    describe '/app.js' do
      it 'retrieves a javascript' do
        visit '/app.js'
        page.response_headers['Content-Type'].should match %r[text/javascript;\s?charset=utf-8]
      end
    end

    describe 'POST /password_strength' do
      it 'retrieves plain text' do
        page.driver.post '/password_strength', { params: { password: '<PASSWORD>' } }
        page.response_headers['Content-Type'].should match %r[text/plain;\s?charset=utf-8]
      end<commit_msg>Fix description of /password_strength route test<commit_after>require 'spec_helper'

module AccountManager

  describe 'routes', type: :request do

    describe '/' do
      it "redirects to #{App::DEFAULT_ROUTE}" do
        visit '/'
        page.current_path.should == App::DEFAULT_ROUTE
      end
    end

    describe '/stylesheets/screen.css' do
      it 'retrieves a stylesheet' do
        visit '/stylesheets/screen.css'
        page.response_headers['Content-Type'].should match %r[text/css;\s?charset=utf-8]
      end
    end

    describe '/app.js' do
      it 'retrieves a javascript' do
        visit '/app.js'
        page.response_headers['Content-Type'].should match %r[text/javascript;\s?charset=utf-8]
      end
    end

    describe '/password_strength' do
      it 'retrieves plain text' do
        page.driver.post '/password_strength', { params: { password: '<PASSWORD>' } }
        page.response_headers['Content-Type'].should match %r[text/plain;\s?charset=utf-8]
      end
{'fraction_non_alphanumeric': 0.12283384301732926, 'fraction_numerical': 0.0030581039755351682, 'mean_word_length': 2.74618320610687, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4412923', 'n_tokens_mistral': 616, 'n_tokens_neox': 592, 'n_words': 141}