<commit_before>require 'test_helper'

class Frontend::RegistrationControllerTest < ActionController::TestCase
  def setup
    @member = members(:siloks)
  end

  #def setup_wizard_request step
    #@session ||= { member: @member.attributes.merge(
      #{'extra_attributes_attributes' => @member.extra_attributes_attributes})}
    #@params ||= { member: @member_params}
    #@params.merge!({ club: @club, id: step })
  #end

  def get_wizard_step step, params = {}
    get :show, params.merge({club: @member.club, id: step}),
      {member_id: @member.id}
  end

  def post_wizard_step step, params = {}
    post :update, params.merge({club: @member.club, id: step}),
      {member_id: @member.id}
  end

  ## change club in route and member
  #def set_club club
    #@club = club
    #@member.club = club
  #end

  test "should redirect index" do
    get :index, {club: @member.club}
    assert_response :redirect
  end

  test "should get success" do
    get :success, {club: @member.club}
    assert_response :success
  end

  test "should get authenticate" do<commit_msg>Actually removed commented testests<commit_after>require 'test_helper'

class Frontend::RegistrationControllerTest < ActionController::TestCase
  def setup
    @member = members(:siloks)
  end

  def get_wizard_step step, params = {}
    get :show, params.merge({club: @member.club, id: step}),
      {member_id: @member.id}
  end

  def post_wizard_step step, params = {}
    post :update, params.merge({club: @member.club, id: step}),
      {member_id: @member.id}
  end

  test "should redirect index" do
    get :index, {club: @member.club}
    assert_response :redirect
  end

  test "should get success" do
    get :success, {club: @member.club}
    assert_response :success
  end

  test "should get authenticate" do
{'fraction_non_alphanumeric': 0.12124582869855395, 'fraction_numerical': 0.0, 'mean_word_length': 3.746701846965699, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '4330131', 'n_tokens_mistral': 584, 'n_tokens_neox': 568, 'n_words': 163}