<commit_before>var request = require('request');
var helper = require('./helper');
var client = helper.client;

client.credentials.consumer_key = 'consumer_key';

describe('_get', function () {

  describe('no api key', function () {

    before(function () {
      request.get = function (options, callback) {
        this.call = options;
        this.receivedCallback = callback;
      }.bind(this);
      // make a call
      this.path = '/the/path';
      this.options = { my: 'options' };
      this.callback = function () { };
      client._get(this.path, this.options, this.callback);
    });

    it('should call with the proper url', function () {
      this.call.url.should.equal('http://api.tumblr.com/v2' + this.path + '?my=options');
    });

    it('should want json back', function () {
      this.call.json.should.equal(true);
    });

    it('should pass the credentials for oauth', function () {
      this.call.oauth.should.eql(client.credentials);
    });

    it('should avoid redirect', function () {
      this.call.followRedirect.should.equal(false);
    });

    it('should get a function callback', function () {
      this.receivedCallback.should.be.a('function');
    });

  });<commit_msg>fix a spec for new version of should<commit_after>var request = require('request');
var helper = require('./helper');
var client = helper.client;

client.credentials.consumer_key = 'consumer_key';

describe('_get', function () {

  describe('no api key', function () {

    before(function () {
      request.get = function (options, callback) {
        this.call = options;
        this.receivedCallback = callback;
      }.bind(this);
      // make a call
      this.path = '/the/path';
      this.options = { my: 'options' };
      this.callback = function () { };
      client._get(this.path, this.options, this.callback);
    });

    it('should call with the proper url', function () {
      this.call.url.should.equal('http://api.tumblr.com/v2' + this.path + '?my=options');
    });

    it('should want json back', function () {
      this.call.json.should.equal(true);
    });

    it('should pass the credentials for oauth', function () {
      this.call.oauth.should.eql(client.credentials);
    });

    it('should avoid redirect', function () {
      this.call.followRedirect.should.equal(false);
    });

    it('should get a function callback', function () {
      (typeof this.receivedCallback).should.equal('function');
    });

  });
{'fraction_non_alphanumeric': 0.1648440664236533, 'fraction_numerical': 0.0008100445524503848, 'mean_word_length': 2.8836477987421385, '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': '3578019', 'n_tokens_mistral': 748, 'n_tokens_neox': 715, 'n_words': 160}