Sha256: 77743313c596cf98c617d52383736abfefd64071325fc88ee348071d1e9bc4e8

Contents?: true

Size: 431 Bytes

Versions: 1

Compression:

Stored size: 431 Bytes

Contents

require 'helper'
require 'peddler/request'

class PeddlerRequestTest < MiniTest::Test
  def setup
    @request = Peddler::Request.new(nil)
  end

  def test_has_next_token?
    response = MiniTest::Mock.new
    @request.last_response = response

    response.expect(:next_token, nil)
    assert_equal false, @request.has_next_token?
    response.expect(:next_token, '123')
    assert_equal true, @request.has_next_token?
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
peddler-0.6.3 test/peddler/test_request.rb