<commit_before>require "rails_helper"

RSpec.describe "Logging in" do
  let(:valid_user) { create(:user) } 

  describe "with valid credentials" do
    before do
      sign_in_as valid_user
    end

    it "logs you in" do
      expect(page).to have_content "Signed in successfully"
    end

    it "shows you the dashboard" do
      expect(page).to have_content "Dashboard"
    end
  end
end
<commit_msg>Test failing login :angry:<commit_after>require "rails_helper"

RSpec.describe "Logging in" do
  let(:valid_user) { create(:user) }    
  let(:invalid_user) { build(:user) }

  describe "with valid credentials" do
    before do
      sign_in_as valid_user
    end

    it "logs you in" do
      expect(page).to have_content "Signed in successfully"
    end

    it "shows you the dashboard" do
      expect(page).to have_content "Dashboard"
    end
  end

  describe "with invalid credentials" do
    before do
      sign_in_as invalid_user
    end

    it "does not log you in" do
      expect(page).to have_content "Invalid email or password"
    end
  end
end


{'fraction_non_alphanumeric': 0.07764265668849392, 'fraction_numerical': 0.0, 'mean_word_length': 2.9338235294117645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6315721', 'n_tokens_mistral': 353, 'n_tokens_neox': 338, 'n_words': 112}