Skip to content

Commit ad1339f

Browse files
committed
test(personality insights): fix unit test for vcap personality insights
1 parent d3bbf36 commit ad1339f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/test_vcap_using_personality_insights.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def test_json_to_csv
8080
profile_response = File.read(Dir.getwd + "/resources/personality-v3-expect3.txt")
8181
personality_text = File.read(Dir.getwd + "/resources/personality-v3.json")
8282
headers = {
83-
"Content-Type" => "application/json"
83+
"Content-Type" => "text/csv"
8484
}
8585
expected_response = DetailedResponse.new(status: 200, body: profile_response, headers: headers)
8686
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")
@@ -92,7 +92,7 @@ def test_json_to_csv
9292
"Content-Type" => "application/json",
9393
"Host" => "gateway.watsonplatform.net"
9494
}
95-
).to_return(status: 200, body: profile_response.to_json, headers: headers)
95+
).to_return(status: 200, body: profile_response, headers: headers)
9696
service = IBMWatson::PersonalityInsightsV3.new(
9797
version: "2017-10-13"
9898
)

0 commit comments

Comments
 (0)