<commit_before>require 'spec_helper'

describe EmailAddress do
  pending "add some examples to (or delete) #{__FILE__}"
end<commit_msg>Add test for EmailAddress#emails_sent<commit_after>require 'spec_helper'

describe EmailAddress do
  describe ".emails_sent" do
    it "should be able to find all the emails sent to this address" do
      email1 = Email.create!(:from => "<EMAIL>")
      email2 = Email.create!(:from => "<EMAIL>")
      email3 = Email.create!(:from => "<EMAIL>")

      EmailAddress.find_by_address("<EMAIL>").emails_sent.should == [email1, email2]
    end
  end
end
{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.008561643835616438, 'mean_word_length': 4.416666666666667, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 10, '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': '5879764', 'n_tokens_mistral': 185, 'n_tokens_neox': 184, 'n_words': 53}