ontology_search_test.rb revision 9ac7820b5954387f2d31dedd42f3fee71cf8056f
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 = @os.make_global_bean_list([@o1.name], 1)
results = results.map { |x| x[:name] }
@ontologies.each do |o|
end
end
end
results = @os.make_global_bean_list([@o1.name, @e1.name], 1)
results = results.map { |x| x[:name] }
end
results = @os.make_global_bean_list([@o2.name, @e1.name], 1)
results = results.map { |x| x[:name] }
end
end
end
end
end