ontology_version_test.rb revision 816bf6f8088b162b681101d93fd450127a0e586f
require 'test_helper'
setup do
end
context 'Validating OntologyVersion' do
end
# [nil, '','fooo'].each do |val|
# should_not allow_value(val).for :source_url
# end
end
context 'OntologyVersion' do
setup do
end
should 'have url' do
assert_match %r(http://example\.com/repositories/#{@ontology_version.repository.path}/[0-9a-f]{40}/\w+\.owl$), @ontology_version.url
end
end
setup do
# Clear Jobs
@version = @ontology.save_file File.open('test/fixtures/ontologies/owl/pizza.owl'), "message", FactoryGirl.create(:user)
end
# Run Job
end
end
end
end