Cross Reference: comments_routing_spec.rb
xref
: /
ontohub
/
spec
/
routing
/
comments_routing_spec.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
comments_routing_spec.rb revision b8a8f5a9b535f39bf9f1b00ec2983bd610bb2373
require
'spec_helper'
describe
CommentsController
do
it
{
should
route
(:
get
,
"/
repositories
/
repository_id
/
ontologies
/
ontology_id
/
comments
"
)
.
to
(
action
: :
index
,
ontology_id
:
'ontology_id'
,
repository_id
:
'repository_id'
)
}
it
{
should
route
(:
post
,
"/
repositories
/
repository_id
/
ontologies
/
ontology_id
/
comments
"
)
.
to
(
action
: :
create
,
ontology_id
:
'ontology_id'
,
repository_id
:
'repository_id'
)
}
end