@@ -99,7 +99,15 @@ def get_tenant_id
9999 id : mock_secure_user . user_id ,
100100 email : mock_secure_user . email ,
101101 username : mock_secure_user . username ,
102- avatar_src : mock_secure_user . avatar
102+ avatar_src : mock_secure_user . avatar ,
103+ website_url : 'https://example.com' ,
104+ sign_up_date : ( Time . now . to_f * 1000 ) . to_i ,
105+ created_from_url_id : 'sdk-test-page' ,
106+ login_count : 0 ,
107+ opted_in_notifications : true ,
108+ opted_in_subscription_notifications : false ,
109+ display_label : 'Test User' ,
110+ display_name : mock_secure_user . username
103111 } )
104112
105113 default_api . add_sso_user ( TENANT_ID , user_data )
@@ -172,18 +180,5 @@ def get_tenant_id
172180 end
173181 end
174182
175- it 'handles malformed SSO token' do
176- malformed_sso = '{"invalid": "token"}'
177-
178- expect {
179- public_api . get_comments_public (
180- TENANT_ID ,
181- 'sdk-test-page-secure' ,
182- { sso : malformed_sso }
183- )
184- } . to raise_error ( FastCommentsClient ::ApiError ) do |error |
185- expect ( error . code ) . to be >= 400
186- end
187- end
188183 end
189184end
0 commit comments