<commit_before>require "spec_helper"

describe Gitlab::Git::Tag do
  let(:repository) { Gitlab::Git::Repository.new(TEST_REPO_PATH) }

  describe 'first tag' do
    let(:tag) { repository.tags.first }

    it { tag.name.should == "v1.0.0" }
    it { tag.target.should == "f4e6814c3e4e7a0de82a9e7cd20c626cc963a2f8" }
  end

  describe 'last tag' do
    let(:tag) { repository.tags.last }

    it { tag.name.should == "v1.1.0" }
    it { tag.target.should == "8a2a6eb295bb170b34c24c76c49ed0e9b2eaf34b" }
  end

  it { repository.tags.size.should == 2 }
end<commit_msg>Adding tests for annotated tag messages.<commit_after>require "spec_helper"

describe Gitlab::Git::Tag do
  let(:repository) { Gitlab::Git::Repository.new(TEST_REPO_PATH) }

  describe 'first tag' do
    let(:tag) { repository.tags.first }

    it { tag.name.should == "v1.0.0" }
    it { tag.target.should == "f4e6814c3e4e7a0de82a9e7cd20c626cc963a2f8" }
    it { tag.message.should == "Release" }
  end

  describe 'last tag' do
    let(:tag) { repository.tags.last }

    it { tag.name.should == "v1.1.0" }
    it { tag.target.should == "8a2a6eb295bb170b34c24c76c49ed0e9b2eaf34b" }
    it { tag.message.should == "Version 1.1.0" }
  end

  it { repository.tags.size.should == 2 }
end
{'fraction_non_alphanumeric': 0.14628297362110312, 'fraction_numerical': 0.08553157474020784, 'mean_word_length': 3.6029411764705883, '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': '4578470', 'n_tokens_mistral': 559, 'n_tokens_neox': 502, 'n_words': 85}