<commit_before>require 'test_helper'

class SiteAnnouncementTest  < ActiveSupport::TestCase

  def test_body_html_generation
    a=SiteAnnouncement.new :title=>"test announcement",:body=>"This is a link to http://www.google.com, and this is an email to <EMAIL>"
    html=a.body_html

    puts html

    assert html.include?("href=\"http://www.google.com\"")
    assert html.include?("mailto:<EMAIL>")
  end

end<commit_msg>removed a puts from announcement test<commit_after>require 'test_helper'

class SiteAnnouncementTest  < ActiveSupport::TestCase

  def test_body_html_generation
    a=SiteAnnouncement.new :title=>"test announcement",:body=>"This is a link to http://www.google.com, and this is an email to <EMAIL>"
    html=a.body_html    

    assert html.include?("href=\"http://www.google.com\"")
    assert html.include?("mailto:<EMAIL>")
  end

end
{'fraction_non_alphanumeric': 0.13038416763678695, 'fraction_numerical': 0.0, 'mean_word_length': 4.620915032679738, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '1540507', 'n_tokens_mistral': 280, 'n_tokens_neox': 276, 'n_words': 64}