-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial pass at implementing a easy.setopt to allow ruby to call curl…
…_easy_setopt
- Loading branch information
Showing
4 changed files
with
103 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
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 |