Cross Reference: mappings_controller_spec.rb
xref
: /
ontohub
/
spec
/
controllers
/
mappings_controller_spec.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
require
'spec_helper'
describe
MappingsController
do
let
(:
ontology
)
{
create
:
linked_distributed_ontology
}
let
(:
mapping
)
{
ontology.mappings.last
}
context
'on GET to show'
do
context
'requesting standard representation'
do
before
do
get
:
show
,
repository_id
:
ontology.repository.to
_param
,
ontology_id
:
ontology.to
_param
,
id
:
mapping.to
_param
end
it
{
should
respond_with
:
success
}
it
{
should
render_template
:
show
}
end
end
end