<commit_before>require 'spec_helper'

describe Githubris::User do
  describe '#==' do
    it 'matches based on attributes' do
      user1 = Githubris::User.new({foo: 'bar'})
      user2 = Githubris::User.new({foo: 'bar'})
      user1.should == user2
    end
  end

  describe '#gists' do
    use_vcr_cassette

    it 'gets a list of gists' do
      gists = described_class.new(:login => 'GithubrisTestUser').gists<commit_msg>More hash fixes for 1.8<commit_after>require 'spec_helper'

describe Githubris::User do
  describe '#==' do
    it 'matches based on attributes' do
      user2 = Githubris::User.new({:foo => 'bar'})
      user1 = Githubris::User.new({:foo => 'bar'})
      user1.should == user2
    end
  end

  describe '#gists' do
    use_vcr_cassette

    it 'gets a list of gists' do
      gists = described_class.new(:login => 'GithubrisTestUser').gists
{'fraction_non_alphanumeric': 0.13048498845265588, 'fraction_numerical': 0.011547344110854504, 'mean_word_length': 3.335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2200010', 'n_tokens_mistral': 307, 'n_tokens_neox': 296, 'n_words': 77}