<commit_before>require 'spec_helper'

describe Rank do

  describe "when you load the data" do
    it "should get data" do

      feed = create_fake_feed(100)
      rank = Rank.new({ :feed => feed }.to_json)
      rank.apps.length.should == 100
      rank.link.should == feed[:id][:href]
      (rank.updated - Time.now).abs.should < 10

    end
  end

end<commit_msg>fix test<commit_after>require 'spec_helper'

describe Rank do

  describe "when you load the data" do
    it "should get data" do

      feed = create_fake_feed(100)
      rank = Rank.new({ :feed => feed }.to_json)
      rank.apps.length.should == 100
      rank.link.should == feed[:link][1][:attributes][:href]
      (rank.updated - Time.now).abs.should < 10

    end
  end

end
{'fraction_non_alphanumeric': 0.12717536813922356, 'fraction_numerical': 0.022757697456492636, 'mean_word_length': 2.74, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7274511', 'n_tokens_mistral': 269, 'n_tokens_neox': 246, 'n_words': 68}