<commit_before>require 'spec_helper'
feature "Auth" do
  context "signin" do
    scenario "A user can access the signin page" do
      visit signin_path
      expect(page).to have_content("Sign In")
      expect(page).to have_content("Name")
      expect(page).to have_content("Password")
    end
    scenario "A successful sign in redirects to the user profile" do
      User.create(username: "test_user",password: "password",password_confirmation: "password")
      visit signin_path
      fill_in "user[username]", :with => "test_user"
      fill_in "user[password]", :with => "password"
      click_on "login"
      expect(page).to have_content("test_user")
    end

  end
end<commit_msg>Fix test to expect capitalized username<commit_after>require 'spec_helper'
feature "Auth" do
  context "signin" do
    scenario "A user can access the signin page" do
      visit signin_path
      expect(page).to have_content("Sign In")
      expect(page).to have_content("Name")
      expect(page).to have_content("Password")
    end
    scenario "A successful sign in redirects to the user profile" do
      User.create(username: "test_user",password: "password",password_confirmation: "password")
      visit signin_path
      fill_in "user[username]", :with => "test_user"
      fill_in "user[password]", :with => "password"
      click_on "login"
      expect(page).to have_content("Test_user")
    end

  end
end
{'fraction_non_alphanumeric': 0.10921985815602837, 'fraction_numerical': 0.0, 'mean_word_length': 3.7348993288590604, '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': '649004', 'n_tokens_mistral': 421, 'n_tokens_neox': 422, 'n_words': 122}