<commit_before>require File.dirname(__FILE__) + '/../test_helper'

# :stopdoc:
class AccountControllerTest < ActionController::TestCase
  fixtures :users
  
  tests Admin::AccountController
  
  def test_login
    opts = {:controller => "account", :action => "login"}
    assert_routing("account/login", opts)
  end
  
  def test_forgot_password
    opts = {:controller => "account", :action => "forgot"}
    assert_routing("account/forgot", opts)
    
    post :forgot, :email => "<EMAIL>"
    assert_response :redirect
    assert_redirected_to :action => "login"
    
  end
  
  def test_forgot_password_error
    post :forgot, :email => "<EMAIL>"
    assert_response :success
  end
end
<commit_msg>Ditch legacy noise in test case<commit_after>require "test_helper"

# :stopdoc:
class AccountControllerTest < ActionController::TestCase
  def test_login
    opts = {:controller => "account", :action => "login"}
    assert_routing("account/login", opts)
  end
  
  def test_forgot_password
    opts = {:controller => "account", :action => "forgot"}
    assert_routing("account/forgot", opts)
    
    post :forgot, :email => "<EMAIL>"
    assert_response :redirect
    assert_redirected_to :action => "login"
    
  end
  
  def test_forgot_password_error
    post :forgot, :email => "<EMAIL>"
    assert_response :success
  end
end

{'fraction_non_alphanumeric': 0.12218890554722639, 'fraction_numerical': 0.0, 'mean_word_length': 3.89010989010989, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 21, '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': '1073133', 'n_tokens_mistral': 418, 'n_tokens_neox': 417, 'n_words': 100}