File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ def test_json_to_csv
9898 profile_response = File . read ( Dir . getwd + "/resources/personality-v3-expect3.txt" )
9999 personality_text = File . read ( Dir . getwd + "/resources/personality-v3.json" )
100100 headers = {
101- "Content-Type" => "application/json "
101+ "Content-Type" => "text/csv "
102102 }
103103 expected_response = DetailedResponse . new ( status : 200 , body : profile_response , headers : headers )
104104 stub_request ( :post , "https://gateway.watsonplatform.net/personality-insights/api/v3/profile?consumption_preferences=true&csv_headers=true&raw_scores=true&version=2017-10-13" )
@@ -110,7 +110,7 @@ def test_json_to_csv
110110 "Content-Type" => "application/json" ,
111111 "Host" => "gateway.watsonplatform.net"
112112 }
113- ) . to_return ( status : 200 , body : profile_response . to_json , headers : headers )
113+ ) . to_return ( status : 200 , body : profile_response , headers : headers )
114114 service = IBMWatson ::PersonalityInsightsV3 . new (
115115 version : "2017-10-13" ,
116116 username : "username" ,
You can’t perform that action at this time.
0 commit comments