ontology_search_test.rb revision c3542a2fe53500aa7db1fb27dfff77c5c3e670f5
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
results = results.map { |x| x[:name] }
@ontologies.each do |o|
end
end
end
results = results.map { |x| x[:name] }
end
results = results.map { |x| x[:name] }
end
end
end
end
end