Cross Reference:
xref
: /
ontohub
/
test
/
functional
/
ontology_versions_controller_test.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
ontology_versions_controller_test.rb revision 9c9b4f0d0199c3b1dbff564b87435b6693b7e692
require
'test_helper'
class
OntologiesControllerTest
<
ActionController
::
TestCase
should_map_nested_resources
:
ontologies
, :
ontology_versions
,
:
as
=>
'versions'
,
:
except
=> [:
new
, :
create
, :
show
, :
edit
, :
update
, :
destroy
]
context
'OntologyVersion Instance'
do
setup
do
OntologyVersion.any_instance.expects
(:
parse_async
)
.
once
@
version
=
Factory
:
ontology_version
@
ontology
= @
version.ontology
end
context
'on GET to index'
do
setup
do
get
:
index
, :
ontology_id
=> @
ontology.to
_param
end
should
respond_with
:
success
end
end
end