Cross Reference:
xref
: /
ontohub
/
test
/
functional
/
ontologies_controller_test.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
ontologies_controller_test.rb revision ee3a5470734fba28bc908e099cdf3a53b232c175
3255
N/A
require
'test_helper'
3255
N/A
3255
N/A
class
OntologiesControllerTest
<
ActionController
::
TestCase
3255
N/A
3255
N/A
should_map_resources
:
ontologies
3255
N/A
3255
N/A
context
'Ontology Instance'
do
3255
N/A
setup
do
3255
N/A
@
ontology
=
Factory
:
ontology
3255
N/A
end
3255
N/A
3255
N/A
context
'on GET to index'
do
3255
N/A
setup
do
3255
N/A
get
:
index
3255
N/A
end
3255
N/A
3255
N/A
should
respond_with
:
success
3255
N/A
end
3255
N/A
3255
N/A
context
'on GET to show'
do
3255
N/A
setup
do
3255
N/A
get
:
show
, :
id
=> @
ontology.to
_param
3255
N/A
end
3255
N/A
3339
N/A
should
respond_with
:
success
3255
N/A
end
3255
N/A
3339
N/A
context
'on GET to edit'
do
3255
N/A
setup
do
3255
N/A
get
:
edit
, :
id
=> @
ontology.to
_param
3255
N/A
end
3255
N/A
3255
N/A
should
respond_with
:
success
3255
N/A
end
3255
N/A
3255
N/A
context
'on PUT to update'
do
3255
N/A
setup
do
3255
N/A
put
:
update
,
3255
N/A
:
id
=> @
ontology.to
_param
,
3255
N/A
:
name
=>
'foo bar'
3255
N/A
end
3255
N/A
3255
N/A
should
redirect_to
(
"show action"
)
{ @
ontology
}
3255
N/A
end
3255
N/A
end
3255
N/A
3255
N/A
end
3255
N/A