<commit_before>require 'test_helper'

class UserTest < ActiveSupport::TestCase
  # test "the truth" do
  #   assert true
  # end
end<commit_msg>adds user model tests<commit_after>require 'test_helper'

class UserTest < ActiveSupport::TestCase
  test "validates username" do
    @user1 = users(:bossy)
    @user1.username = ''
    assert_not @user1.valid?
  end

  test "validates email presence" do
    @user1 = users(:bossy)
    @user1.email = ''
    assert_not @user1.valid?
  end

  test "validates email uniqueness" do
    @user1 = users(:bossy)
    @user2 = users(:seamus)
    @user1.email = @user2.email
    assert_not @user1.valid?
  end
end
{'fraction_non_alphanumeric': 0.1095679012345679, 'fraction_numerical': 0.016975308641975308, 'mean_word_length': 3.602836879432624, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3182664', 'n_tokens_mistral': 229, 'n_tokens_neox': 224, 'n_words': 56}