File: tc_curl_maxfilesize.rb

package info (click to toggle)
ruby-curb 1.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 860 kB
  • sloc: ansic: 5,798; ruby: 4,466; makefile: 4
file content (12 lines) | stat: -rw-r--r-- 254 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))

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

  def test_maxfilesize
    @easy.set(Curl::CURLOPT_MAXFILESIZE, 5000000)
  end

end