<commit_before>require 'helper'

describe HackerNewsSearch::Client::Items do

  before do
    @client = HackerNewsSearch::Client.new
  end

  describe ".items" do
    it "should return the correct items" do
      pending("get the item")
    end
  end

end<commit_msg>Added spec for items<commit_after>require 'helper'

describe HackerNewsSearch::Client::Items do

  before do
    @client = HackerNewsSearch::Client.new
  end

  describe ".items" do
    before do
      stub_get("items/2619846-a30f9").
        to_return(:status => 200, :body => fixture("items.json"))
    end
    
    it "should return the correct item" do
      item = @client.item("2619846-a30f9")
      a_get("items/2619846-a30f9").should have_been_made
      item.id.should == 2619846
    end
  end

end
{'fraction_non_alphanumeric': 0.10594315245478036, 'fraction_numerical': 0.05167958656330749, 'mean_word_length': 3.189189189189189, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1543188', 'n_tokens_mistral': 281, 'n_tokens_neox': 251, 'n_words': 65}