<commit_before>require 'spec_helper'

describe UriName, :type => :model do
  it "should have a valid factory" do
    expect(build(:uri_name_for_user)).to be_valid
    expect(build(:uri_name_for_group)).to be_valid
  end

  describe "#resource" do
    it "should not be valid without a resource" do
      expect(build(:uri_name)).to_not be_valid
    end

    it "should be able to be user" do
      expect(create(:uri_name_for_user).resource).to be_a(User)
    end

    it "should be able to be a group" do
      expect(create(:uri_name_for_group).resource).to be_a(UserGroup)
    end
  end
end<commit_msg>add pending spec for uri_name model<commit_after>require 'spec_helper'

describe UriName, :type => :model do
  it "should have a valid factory" do
    expect(build(:uri_name_for_user)).to be_valid
    expect(build(:uri_name_for_group)).to be_valid
  end

  describe "#resource" do
    it "should not be valid without a resource" do
      expect(build(:uri_name)).to_not be_valid
    end

    it "should be able to be user" do
      expect(create(:uri_name_for_user).resource).to be_a(User)
    end

    it "should be able to be a group" do
      expect(create(:uri_name_for_group).resource).to be_a(UserGroup)
    end
  end

  describe "#name" do

    it "should spec out the uniq case insensitive index constraints"
  end
end
{'fraction_non_alphanumeric': 0.08940646130728776, 'fraction_numerical': 0.0, 'mean_word_length': 3.6573426573426575, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5690625', 'n_tokens_mistral': 442, 'n_tokens_neox': 428, 'n_words': 136}