<commit_before>require 'rubygems'
require 'spec_helper'

describe Feedzirra::FeedzirraParserExtensions do
  pending "hey buddy, you should probably rename this file and start testing for real"
end<commit_msg>hey, there's a meaningful test now (it checks to see if the module is included)<commit_after>require 'spec_helper'

describe Feedzirra::FeedzirraParserExtensions do
  #before (:each) do
    #@class = Class.new do
    #  include Feedzirra::FeedzirraParserExtensions
    #end
  #end
  # @feed = Feedzirra::Feed.parse(sample_atom_feed)
  it "should include the extensions in parsed feeds" do
    atom = Feedzirra::Feed.parse(sample_atom_feed)
    itunes = Feedzirra::Feed.parse(sample_itunes_feed)
    rdf = Feedzirra::Feed.parse(sample_rdf_feed)
    rss = Feedzirra::Feed.parse(sample_rss_feed)
    rss_feedburner = Feedzirra::Feed.parse(sample_rss_feed_burner_feed)
    atom_feedburner = Feedzirra::Feed.parse(sample_feedburner_atom_feed)
    wfw = Feedzirra::Feed.parse(sample_wfw_feed)
    
    feeds = [atom, itunes, rdf, rss, rss_feedburner, atom_feedburner, wfw]
    feeds.each do |f|
      f.class.include?(Feedzirra::FeedzirraParserExtensions).should be_true
    end
  end
end
{'fraction_non_alphanumeric': 0.0907563025210084, 'fraction_numerical': 0.0, 'mean_word_length': 5.139175257731959, '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': '5006115', 'n_tokens_mistral': 435, 'n_tokens_neox': 413, 'n_words': 91}