<commit_before>require 'spec_helper'

module Socializer
  describe Verb do
    it { should allow_mass_assignment_of(:name) }
    it { should have_many(:activities) }
    it { should validate_uniqueness_of(:name) }
    it { should validate_presence_of(:name) }

    it "has a valid factory" do
      expect(create(:socializer_verb)).to be_valid
    end

    it "is valid without a name" do
      expect(build(:socializer_verb, name: 'post')).to be_valid
    end

    it "is invalid without a name" do
      expect(build(:socializer_verb, name: nil)).to have(1).errors_on(:name)
    end

    it "is invalid with a duplicate name" do
      expect(create(:socializer_verb, name: 'post')).to be_valid
      expect(build(:socializer_verb, name: 'post')).to have(1).errors_on(:name)
    end
  end
end<commit_msg>change the description of a spec<commit_after>require 'spec_helper'

module Socializer
  describe Verb do
    it { should allow_mass_assignment_of(:name) }
    it { should have_many(:activities) }
    it { should validate_uniqueness_of(:name) }
    it { should validate_presence_of(:name) }

    it "has a valid factory" do
      expect(create(:socializer_verb)).to be_valid
    end

    it "is valid with a name" do
      expect(build(:socializer_verb, name: 'post')).to be_valid
    end

    it "is invalid without a name" do
      expect(build(:socializer_verb, name: nil)).to have(1).errors_on(:name)
    end

    it "is invalid with a duplicate name" do
      expect(create(:socializer_verb, name: 'post')).to be_valid
      expect(build(:socializer_verb, name: 'post')).to have(1).errors_on(:name)
    end
  end
end
{'fraction_non_alphanumeric': 0.10947109471094711, 'fraction_numerical': 0.0024600246002460025, 'mean_word_length': 3.6485714285714286, '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': '5090428', 'n_tokens_mistral': 524, 'n_tokens_neox': 521, 'n_words': 146}