File: bug_issue102.rb

package info (click to toggle)
ruby-curb 0.8.6-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 604 kB
  • ctags: 880
  • sloc: ansic: 4,242; ruby: 2,768; makefile: 3
file content (17 lines) | stat: -rw-r--r-- 371 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))

class BugIssue102 < Test::Unit::TestCase

  def test_interface
    test = "https://api.twitter.com/1/users/show.json?screen_name=TwitterAPI&include_entities=true"
    ip = "0.0.0.0"

    c = Curl::Easy.new do |curl|
      curl.url = test
      curl.interface = ip
    end  

    c.perform
  end

end