Cross Reference:
xref
: /
ontohub
/
test
/
unit
/
ontology_import_from_xml_test.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
ontology_import_from_xml_test.rb revision cad2121a9e9a87317333b202956ce7478efcc257
bd4e36a8cd7257cca7d1434c49a1e343ed7c5100
Timo Sirainen
require
'test_helper'
bd4e36a8cd7257cca7d1434c49a1e343ed7c5100
Timo Sirainen
bd4e36a8cd7257cca7d1434c49a1e343ed7c5100
Timo Sirainen
class
OntologyImportFromXMLTest
<
ActiveSupport
::
TestCase
de62ce819d59a529530da4b57be1b8d6dad13d6b
Timo Sirainen
def
fixture_path
(
name
)
bd4e36a8cd7257cca7d1434c49a1e343ed7c5100
Timo Sirainen
Rails.root
+
'
test
/
fixtures
/
ontologies
/'
+
name
bd4e36a8cd7257cca7d1434c49a1e343ed7c5100
Timo Sirainen
end
bd4e36a8cd7257cca7d1434c49a1e343ed7c5100
Timo Sirainen
bd4e36a8cd7257cca7d1434c49a1e343ed7c5100
Timo Sirainen
setup
do
ontology
=
Ontology.from
_xml_file
(
fixture_path
(
'
valid.xml
'
)
)
end
should
'save logic'
do
assert_equal
'OWL'
,
ontology.logic.name
end
end