Skip to content

Commit

Permalink
another fix to the metrics unit tests that were faling
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorf committed Nov 22, 2024
1 parent 9f9b8f1 commit 637eed0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/controllers/test_metrics_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,21 @@ 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
end

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
Expand Down

0 comments on commit 637eed0

Please sign in to comment.