ontology_search_test.rb revision 6249fd6a9bfbe793c8cf549a1eb2f33a56fb334a
require 'test_helper'
context 'OntologySearch' do
setup do
@ontologies.map(&:save)
@entities.map(&:save)
@logics.map(&:save)
end
context 'keyword list' do
should 'be generated correctly for ontologies' do
@ontologies.each do |o|
results.each do |result|
end
end
end
end
@entities.each do |e|
assert results.size != 0
results.each do |result|
end
assert results.map { |x| x[:text] }.include? e.name
end
end
end
@logics.each do |l|
assert results.size != 0
results.each do |result|
end
assert results.map { |x| x[:text] }.include? l.name
end
end
end
end
@ontologies.each do |o|
end
end
end
end
end
end
end
end
end