Skip to content

Commit

Permalink
fix test_parse_ontology_has_iri_label for virtuoso
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Feb 5, 2025
1 parent 9fb844d commit d5f5a43
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/models/test_class_request_lang.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ def teardown
end

def test_parse_ontology_has_iri_label
cls_label_1 = get_class_by_lang('http://aims.fao.org/aos/agrovoc/c_3376', 'APTO',
requested_lang: :'pt-br').label.first
cls_labels_1 = get_class_by_lang('http://aims.fao.org/aos/agrovoc/c_3376', 'APTO',
requested_lang: :'pt-br').label

assert_equal 'Hortaliça de folha', cls_label_1
assert_includes cls_labels_1 , 'Hortaliça de folha'

cls_label_2 = get_class_by_lang('http://aims.fao.org/aos/agrovoc/c_3376', 'APTO',
requested_lang: :en).label.first
cls_labels_2 = get_class_by_lang('http://aims.fao.org/aos/agrovoc/c_3376', 'APTO',
requested_lang: :en).label

assert_equal 'Leaf vegetable', cls_label_2
assert_includes cls_labels_2, 'Leaf vegetable'
end

def test_requested_language_found
Expand Down

0 comments on commit d5f5a43

Please sign in to comment.