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 38dab3b63e2730b443590a53de93e085659efe25
require
'test_helper'
class
OntologiesControllerTest
<
ActionController
::
TestCase
should_map_nested_resources
:
ontologies
, :
ontology_versions
,
:
as
=>
'versions'
,
:
except
=> [:
show
, :
edit
, :
update
, :
destroy
]
context
'OntologyVersion Instance'
do
setup
do
OntologyVersion.any_instance.expects
(:
parse_async
)
.
once
@
version
=
FactoryGirl.create
:
ontology_version_with_file
@
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