Skip to content

Commit 8c63b18

Browse files
update test_instances to no more test labels and replace it with types
1 parent 08a314b commit 8c63b18

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/models/test_instances.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_instance_counts_ontology
4141
assert_equal 714, instances.length
4242
end
4343

44-
def test_instance_labels
44+
def test_instance_types
4545
submission_parse('TESTINST', 'Testing instances',
4646
'test/data/ontology_files/XCTontologyvtemp2_vvtemp2.zip',
4747
12,
@@ -53,17 +53,17 @@ def test_instance_labels
5353

5454
instances = LinkedData::InstanceLoader.get_instances_by_class(submission_id, class_id)
5555
instances.each do |inst|
56-
assert (not inst.label.nil?)
56+
assert (not inst.types.nil?)
5757
assert (not inst.id.nil?)
5858
end
5959

6060
inst1 = instances.find {|inst| inst.id.to_s == 'http://www.owl-ontologies.com/OntologyXCT.owl#PresenceofAbnormalFacialShapeAt46'}
6161
assert !inst1.nil?
62-
assert_equal 'PresenceofAbnormalFacialShapeAt46', inst1.label
62+
assert_includes inst1.types, class_id
6363

6464
inst2 = instances.find {|inst| inst.id.to_s == 'http://www.owl-ontologies.com/OntologyXCT.owl#PresenceofGaitDisturbanceAt50'}
6565
assert !inst2.nil?
66-
assert_equal 'PresenceofGaitDisturbanceAt50', inst2.label
66+
assert_includes inst2.types, class_id
6767
end
6868

6969
def test_instance_properties

0 commit comments

Comments
 (0)