Skip to content

Commit d3bbf36

Browse files
authored
Merge pull request #15 from watson-developer-cloud/fix-personality-insights-test
test(Personality Insights): Fix unit test for personality insights
2 parents 810ecd0 + 82719f8 commit d3bbf36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/test_personality_insights_v3.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)