<commit_before>require 'spec_helper'

describe "tweets" do
  let(:tweet) {
    Tweet.new tweet_text: "Hi!", published: true, published_at: Time.now
  }

  before :each do
    tweet.save
  end

  it "responds to html" do
    visit tweets_path

    page.should have_content("Hi!")
  end

  it "responds to atom" do
    visit tweets_path(format: :atom)

    page.should have_content("Hi!")
  end

  context "with a Twitter username" do
    before :each do
      tweet.tweet_text = "@rubyfriends"
    end

    it "does not escape our anchor tags" do
      visit tweets_path<commit_msg>Clarify tweets request spec<commit_after>require 'spec_helper'

describe "tweets" do
  let(:tweet) {
    Tweet.new tweet_text: "Hi!", published: true, published_at: Time.now
  }

  it "responds to html" do
    tweet.save
    visit tweets_path

    page.should have_content("Hi!")
  end

  it "responds to atom" do
    tweet.save
    visit tweets_path(format: :atom)

    page.should have_content("Hi!")
  end

  context "with a Twitter username" do

    it "does not escape our anchor tags" do
      tweet.tweet_text = "@rubyfriends"
      tweet.save
      visit tweets_path
{'fraction_non_alphanumeric': 0.09350649350649351, 'fraction_numerical': 0.0, 'mean_word_length': 3.0848056537102475, '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': '2947483', 'n_tokens_mistral': 414, 'n_tokens_neox': 385, 'n_words': 118}