ontology_test.rb revision f1304db188bff0f7c40172819863ffe54401b400
require 'test_helper'
context 'Validations' do
end
end
end
context 'ontology instance' do
setup do
end
context 'with name' do
setup do
@name = "fooo"
@ontology.name = @name
end
should 'have to_s' do
end
end
context 'without name' do
setup do
@ontology.name = nil
end
should 'have to_s' do
end
end
end
context 'creating ontology with version' do
setup do
@source_url = 'http://colore.googlecode.com/svn/trunk/ontologies/arithmetic/robinson_arithmetic.clif'
@ontology = Ontology.new \
:iri => 'http://example.com/ontology',
:versions_attributes => [{
}]
end
should 'create a version with source_url' do
end
end
end