Sha256: e5ec646d927396130dead5f46778b87a7237979a7fc132508f268355b8dc8089

Contents?: true

Size: 554 Bytes

Versions: 33

Compression:

Stored size: 554 Bytes

Contents

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

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

  def test_opt_verbose
    @easy.set :verbose, true
    assert @easy.verbose?
  end

  def test_opt_header
    @easy.set :header, true
  end

  def test_opt_noprogress
    @easy.set :noprogress, true
  end

  def test_opt_nosignal
    @easy.set :nosignal, true
  end

  def test_opt_url
    url = "http://google.com/"
    @easy.set :url, url
    assert_equal url, @easy.url
  end

end

Version data entries

33 entries across 33 versions & 3 rubygems

Version Path
curb-1.0.6 tests/tc_curl_easy_setopt.rb
curb-1.0.5 tests/tc_curl_easy_setopt.rb
curb-1.0.4 tests/tc_curl_easy_setopt.rb
curb-1.0.3 tests/tc_curl_easy_setopt.rb
curb-1.0.2 tests/tc_curl_easy_setopt.rb
curb-1.0.1 tests/tc_curl_easy_setopt.rb
curb-1.0.0 tests/tc_curl_easy_setopt.rb
curb-0.9.11 tests/tc_curl_easy_setopt.rb
curb-0.9.10 tests/tc_curl_easy_setopt.rb
curb-0.9.9 tests/tc_curl_easy_setopt.rb
curb-0.9.8 tests/tc_curl_easy_setopt.rb
curb-0.9.7 tests/tc_curl_easy_setopt.rb
curb-0.9.6 tests/tc_curl_easy_setopt.rb
curb-0.9.5 tests/tc_curl_easy_setopt.rb
curb-0.9.4 tests/tc_curl_easy_setopt.rb
curb-0.9.3 tests/tc_curl_easy_setopt.rb
curb-0.9.2 tests/tc_curl_easy_setopt.rb
curb-0.9.1 tests/tc_curl_easy_setopt.rb
curb-0.9.0 tests/tc_curl_easy_setopt.rb
curb-0.8.8 tests/tc_curl_easy_setopt.rb