Cross Reference: tarjan_spec.rb
xref
: /
ontohub
/
spec
/
lib
/
tarjan_spec.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
tarjan_spec.rb revision 8855a26fb8a7c3743d2ae2cb817e21fb23b674c4
1516
N/A
require
'spec_helper'
565
N/A
565
N/A
describe
TarjanTree
do
565
N/A
565
N/A
context
'owl classhierachy'
do
565
N/A
let
(:
ontology
)
{
create
:
ontology
}
565
N/A
let
(:
user
)
{
create
:
user
}
565
N/A
565
N/A
before
do
565
N/A
parse_this
(
user
,
ontology
,
hets_out_file
(
'cycle'
)
)
565
N/A
ontology.reload
565
N/A
end
565
N/A
565
N/A
it
'should have an entity-tree'
do
565
N/A
ontology.entity_groups.size.should
==
3
565
N/A
entities
=
ontology.entities.where
(
name
: [
"B1"
,
"B2"
,
"B3"
])
565
N/A
expect
(
ontology.entity_groups.includes
(:
entities
)
.
where
(
"
entities.id
"
=>
entities
)
.
first
)
.
not_to
be_nil
565
N/A
end
565
N/A
565
N/A
it
'should have an congruence node'
do
565
N/A
ontology.entity_groups.where
(
"name LIKE '%☰%'"
)
926
N/A
end
926
N/A
1895
N/A
end
926
N/A
565
N/A
end
1050
N/A