Cross Reference: ontology_search_controller_spec.rb
xref
: /
ontohub
/
spec
/
controllers
/
ontology_search_controller_spec.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
require
'spec_helper'
describe
OntologySearchController
do
describe
'GET search with no ontology restriction'
do
it
'responds with all ontologies'
do
@
request.env
[
'CONTENT_TYPE'
] =
'
application
/
json
'
get
:
search
should
respond_with
:
success
expect
(
assigns
(:
search_response
)
)
.
to
eq
(
Ontology.scoped
)
end
end
end