From 637eed0db6c4f0fea09ef9ca4556fd5e138c0166 Mon Sep 17 00:00:00 2001 From: mdorf Date: Thu, 21 Nov 2024 21:25:39 -0800 Subject: [PATCH] another fix to the metrics unit tests that were faling --- test/controllers/test_metrics_controller.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/controllers/test_metrics_controller.rb b/test/controllers/test_metrics_controller.rb index eb06c3f8..8031d967 100644 --- a/test/controllers/test_metrics_controller.rb +++ b/test/controllers/test_metrics_controller.rb @@ -55,9 +55,10 @@ def test_single_metrics def test_metrics_with_submission_id ontology = 'TEST-ONT-0' - get "/ontologies/#{ontology}/submissions/1/metrics" + get "/ontologies/#{ontology}/submissions/2/metrics" assert last_response.ok? metrics = MultiJson.load(last_response.body) + @@data.each do |k,v| assert_equal(v, metrics[k]) end @@ -65,9 +66,10 @@ def test_metrics_with_submission_id def test_metrics_with_submission_id_as_param ontology = 'TEST-ONT-0' - get "/ontologies/#{ontology}/metrics?submissionId=1" + get "/ontologies/#{ontology}/metrics?ontology_submission_id=2" assert last_response.ok? metrics = MultiJson.load(last_response.body) + @@data.each do |k,v| assert_equal(v, metrics[k]) end