Sha256: 47b2bcdc4fbdf7720d04c08ee5bb315b3ab816f861b426a57f891c7b18c9b215

Contents?: true

Size: 381 Bytes

Versions: 14

Compression:

Stored size: 381 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))

class TestCurbCurlEasyResolve < Test::Unit::TestCase
  def setup
    @easy = Curl::Easy.new
  end

  def test_resolve
    @easy.resolve = [ "example.com:80:127.0.0.1" ]
    assert_equal @easy.resolve, [ "example.com:80:127.0.0.1" ]
  end

  def test_empty_resolve
    assert_equal @easy.resolve, nil
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
curb-1.0.6 tests/tc_curl_easy_resolve.rb
curb-1.0.5 tests/tc_curl_easy_resolve.rb
curb-1.0.4 tests/tc_curl_easy_resolve.rb
curb-1.0.3 tests/tc_curl_easy_resolve.rb
curb-1.0.2 tests/tc_curl_easy_resolve.rb
curb-1.0.1 tests/tc_curl_easy_resolve.rb
curb-1.0.0 tests/tc_curl_easy_resolve.rb
curb-0.9.11 tests/tc_curl_easy_resolve.rb
curb-0.9.10 tests/tc_curl_easy_resolve.rb
curb-0.9.9 tests/tc_curl_easy_resolve.rb
curb-0.9.8 tests/tc_curl_easy_resolve.rb
curb-0.9.7 tests/tc_curl_easy_resolve.rb
curb-0.9.6 tests/tc_curl_easy_resolve.rb
curb-0.9.5 tests/tc_curl_easy_resolve.rb