<commit_before>require 'rails_helper'

describe PicksController do

  describe "POST #create" do
    let(:pick_params) do {
      pick: {
        email: <EMAIL>",
        number: '374321106',
        game: "snapple",
        draw_date: Faker::Time.between(7.days.ago, Time.now),
        multiplier: 2
      },
      commit: "signup"
    }
    end

    it "redirects to edit_user_path if pick is created" do
      post :create, pick_params
      expect(response).to redirect_to edit_user_path(assigns[:user].id)
    end

    it "redirects to signup form if signup fails" do
      post :create, pick: attributes_for(:failed_pick)
      expect(response).to redirect_to root_path
    end
  end



end<commit_msg>Changed test to accept new params changed<commit_after>require 'rails_helper'

describe PicksController do

  describe "POST #create" do
    let(:pick_params) do {
      pick: {
        email: <EMAIL>",
        number1: '3',
        number2: '6',
        number3: '16',
        number4: '6',
        number5: '37',
        number6: '56',
        game: "snapple",
        draw_date: Faker::Time.between(7.days.ago, Time.now),
        multiplier: 2
      },
      commit: "signup"
    }
    end

    it "redirects to edit_user_path if pick is created" do
      post :create, pick_params
      expect(response).to redirect_to edit_user_path(assigns[:user].id)
    end

    it "redirects to signup form if signup fails" do
      post :create, pick: attributes_for(:failed_pick)
      expect(response).to redirect_to root_path
    end
  end



end
{'fraction_non_alphanumeric': 0.10193548387096774, 'fraction_numerical': 0.01806451612903226, 'mean_word_length': 2.5170068027210886, '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': '810442', 'n_tokens_mistral': 517, 'n_tokens_neox': 494, 'n_words': 137}