Skip to content

Commit 3c1b864

Browse files
committed
test(personality insights): Fix unit test where expected data was being given incorrectly
1 parent 3c025da commit 3c1b864

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/test_personality_insights_v3.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_json_to_json
6464
headers = {
6565
"Content-Type" => "application/json"
6666
}
67-
expected_response = DetailedResponse.new(status: 200, body: profile_response, headers: headers)
67+
expected_response = DetailedResponse.new(status: 200, body: JSON.parse(profile_response), headers: headers)
6868
stub_request(:post, "https://gateway.watsonplatform.net/personality-insights/api/v3/profile?consumption_preferences=true&raw_scores=true&version=2017-10-13")
6969
.with(
7070
body: personality_text,

0 commit comments

Comments
 (0)