ontology_version_test.rb revision c5fcf21f871b2581eaeef5e225926864fe2b0a26
require 'test_helper'
context 'creating OntologyVersion' do
setup do
end
context 'without addional attributes' do
should 'be invalid' do
end
end
context 'with invalid source_uri' do
setup do
end
should 'be invalid' do
end
end
context 'with valid remote_raw_file_url' do
setup do
@version.remote_raw_file_url = 'http://trac.informatik.uni-bremen.de:8080/hets/export/16726/trunk/OWL2/tests/family.owl'
end
should 'be valid' do
end
end
context 'with valid raw_file' do
setup do
end
should 'be invalid' do
end
end
context 'with valid source_uri' do
setup do
end
should 'be valid' do
end
end
end
context 'Parsing' do
setup do
end
should 'raise no exception' do
end
end
should 'raise exception if called without setting raw_file' do
end
end
should 'raise no exception if called with remote uri' do
@ontology_version.remote_raw_file_url = 'http://colore.googlecode.com/svn/trunk/ontologies/arithmetic/robinson_arithmetic.clif'
end
end
should 'raise exception if called with unsupported remote file' do
@ontology_version.remote_raw_file_url = 'http://colore.googlecode.com/svn/trunk/ontologies/algebra/module.clif'
end
end
end
end