File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,23 @@ class Zencoder::HTTP::NetHTTPTest < Test::Unit::TestCase
54
54
stub_request ( :post , 'https://example.com' ) . with ( :body => '{}' )
55
55
Zencoder ::HTTP ::NetHTTP . post ( 'https://example.com' , :body => '{}' )
56
56
end
57
+
58
+ should "POST with an empty body if none is provided" do
59
+ stub_request ( :post , 'https://example.com' ) . with ( :body => '' )
60
+ Zencoder ::HTTP ::NetHTTP . post ( 'https://example.com' )
61
+ end
57
62
end
58
63
59
64
context ".put" do
60
65
should "PUT to specified body to the specified path" do
61
66
stub_request ( :put , 'https://example.com' ) . with ( :body => '{}' )
62
67
Zencoder ::HTTP ::NetHTTP . put ( 'https://example.com' , :body => '{}' )
63
68
end
69
+
70
+ should "PUT with an empty body if none is provided" do
71
+ stub_request ( :put , 'https://example.com' ) . with ( :body => '' )
72
+ Zencoder ::HTTP ::NetHTTP . put ( 'https://example.com' )
73
+ end
64
74
end
65
75
66
76
context ".get" do
You can’t perform that action at this time.
0 commit comments