hets_test.rb revision d20f7eac0fec3aba332e1f53d1f2d1c584786eb6
5cd4555ad444fd391002ae32450572054369fd42Rob Austeinrequire 'test_helper'
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews @xml_path = Hets.parse Rails.root.join('test/fixtures/ontologies/owl/pizza.owl'), [], '/tmp'
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews %w(owl/pizza.owl owl/generations.owl clif/cat.clif).each do |path|
0e27506ce3135f9bd49e12564ad0e15256135118Automatic Updater @xml_path = Hets.parse Rails.root.join("test/fixtures/ontologies/#{path}"), [], '/tmp'
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington should 'have generated importable output' do
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington ontology.import_xml_from_file @xml_path, user
0e27506ce3135f9bd49e12564ad0e15256135118Automatic Updater Rails.root.join("test/fixtures/ontologies/clif/monoid.clif"),
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein ["http://colore.oor.net=http://develop.ontohub.org/colore/ontologies"],
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington ontology.import_xml_from_file @xml_path, user
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington should 'raise exception if provided with wrong file-format' do