Skip to content

Commit 090dfbf

Browse files
Update test_discovery_v2.rb
1 parent 9590f82 commit 090dfbf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/integration/test_discovery_v2.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,14 +249,16 @@ def test_delete_user_data
249249

250250
def test_analyze_document
251251
skip "CPD only. Do not run on premium"
252-
analyze_data = File.open(Dir.getwd + "/resources/test_enrichments.csv")
252+
analyze_data = File.open(Dir.getwd + "/resources/problem.json")
253253

254254
service_response = service.analyze_document(
255255
project_id: @project_id,
256256
collection_id: @collection_id,
257-
file: analyze_data
257+
file: analyze_data,
258+
file_content_type: "application/json"
258259
)
259-
assert(service_response.nil?)
260+
assert((200..299).cover?(service_response.status))
261+
refute(service_response.nil?)
260262
end
261263
end
262264
else

0 commit comments

Comments
 (0)