<commit_before>require 'spec_helper'
require 'shared_examples/transfer'

describe 'StripeMock Transfers' do
  describe 'get transfers' do
    let(:transfers){ Stripe::Transfer.all }

    it 'should return a list of transfers' do
      expect(transfers).to be_is_a(Stripe::ListObject)
      expect(transfers.data.first).to be_is_a(Stripe::Transfer)
    end

    describe 'the list of transfers' do
      it_should_behave_like 'a transfer' do
        let(:transfer){ transfers.data.first }
      end

      it 'should have 2 transfers' do
        expect(transfers.data.size).to eq 2
      end

      context 'when limit is less than total transfers' do
        let(:transfers){ Stripe::Transfer.all(limit: 3) }
        it 'should limit the number of transfers returned' do
          skip 'TODO'
        end
      end
    end
  end

  describe 'get transfer/:id' do
    it_should_behave_like 'a transfer' do
      let(:transfer){ Stripe::Transfer.retrieve(StripeMock.new_id('_tr')) }
    end<commit_msg>remove todo spec<commit_after>require 'spec_helper'
require 'shared_examples/transfer'

describe 'StripeMock Transfers' do
  describe 'get transfers' do
    let(:transfers){ Stripe::Transfer.all }

    it 'should return a list of transfers' do
      expect(transfers).to be_is_a(Stripe::ListObject)
      expect(transfers.data.first).to be_is_a(Stripe::Transfer)
    end

    describe 'the list of transfers' do
      it_should_behave_like 'a transfer' do
        let(:transfer){ transfers.data.first }
      end

      it 'should have 2 transfers' do
        expect(transfers.data.size).to eq 2
      end
    end
  end

  describe 'get transfer/:id' do
    it_should_behave_like 'a transfer' do
      let(:transfer){ Stripe::Transfer.retrieve(StripeMock.new_id('_tr')) }
    end
{'fraction_non_alphanumeric': 0.09612141652613827, 'fraction_numerical': 0.002810567734682406, 'mean_word_length': 3.149184149184149, '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': '7528885', 'n_tokens_mistral': 586, 'n_tokens_neox': 552, 'n_words': 152}