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 @@ -33,6 +33,9 @@ def setup
33
33
@version = 'v3'
34
34
@http_options = { open_timeout : 60 , read_timeout : 60 }
35
35
@client = MockRequest . new ( host : @host ,
36
+ request_headers : @headers ,
37
+ version : @version )
38
+ @client_with_options = MockRequest . new ( host : @host ,
36
39
request_headers : @headers ,
37
40
version : @version ,
38
41
http_options : @http_options )
@@ -173,4 +176,11 @@ def test_method_missing
173
176
assert_equal ( { 'message' => 'success' } , response . body )
174
177
assert_equal ( { 'headers' => 'test' } , response . headers )
175
178
end
179
+
180
+ def test_http_options
181
+ url1 = @client_with_options . _ ( 'test' )
182
+ assert_equal ( @host , @client_with_options . host )
183
+ assert_equal ( @headers , @client_with_options . request_headers )
184
+ assert_equal ( [ 'test' ] , url1 . url_path )
185
+ end
176
186
end
You can’t perform that action at this time.
0 commit comments