Sha256: 40113e5c9be90c4f0d00a0698b57c1ef1efecea5f57bc2060af5cc53f1025633

Contents?: true

Size: 515 Bytes

Versions: 13

Compression:

Stored size: 515 Bytes

Contents

module TestsHelper
  def expect_count_and_offset(&block)
    it 'returns only the number of objects specified by count' do
      result = block.call(count: 2)
      expect(result.size).to eql 2

      result = block.call(count: 4)
      expect(result.size).to eql 4
    end

    it 'returns objects by a specified offset' do
      non_offset_objects = block.call(count: 2)
      objects_with_offset = block.call(count: 2, offset: 2)
      expect(non_offset_objects).to_not eql objects_with_offset
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
hubspot-api-ruby-0.8.1 spec/support/tests_helper.rb
hubspot-ruby-0.9.0 spec/support/tests_helper.rb
hubspot-api-ruby-0.8.0 spec/support/tests_helper.rb
hubspot-ruby-0.8.1 spec/support/tests_helper.rb
hubspot-ruby-0.8.0 spec/support/tests_helper.rb
hubspot-ruby-0.7.0 spec/support/tests_helper.rb
hubspot-ruby-0.6.1 spec/support/tests_helper.rb
hubspot-ruby-0.6.0 spec/support/tests_helper.rb
hubspot-ruby-0.5.0 spec/support/tests_helper.rb
hubspot-ruby-0.4.0 spec/support/tests_helper.rb
hubspot-ruby-0.3.0 spec/support/tests_helper.rb
hubspot-ruby-0.2.1 spec/support/tests_helper.rb
hubspot-ruby-0.2.0 spec/support/tests_helper.rb