Cross Reference: symbol_mapping_spec.rb
xref
: /
ontohub
/
spec
/
models
/
symbol_mapping_spec.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
symbol_mapping_spec.rb revision db149239590d2a39d399f12cd01609b190ea4763
require
'spec_helper'
describe
SymbolMapping
do
context
'when importing an ontology'
, :
needs_hets
do
let
(:
repository
)
{
create
:
repository
}
let
(:
version
)
{
add_fixture_file
(
repository
,
'
dol
/
simple_mapping
'
)
}
let
(:
dist_ontology
)
{
version.ontology
}
before
do
stub_hets_for
(
'
dol
/
simple_mapping.dol
'
)
end
context
'which has mapped symbols'
do
let
(:
ontology
)
{
dist_ontology.children.find
_by_name
(
'test'
)
}
it
'should not contain the mapped symbol'
do
expect
(
ontology.symbols.find
_by_name
(
'Human'
)
)
.
to
be
(
nil
)
end
end
end
end