Cross Reference:
xref
: /
ontohub
/
spec
/
controllers
/
sentences_controller_spec.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
sentences_controller_spec.rb revision e3885aacc4f26c817827173a754510807b6bc84c
require
'spec_helper'
describe
SentencesController
do
let
!
(:
sentence
)
{
create
:
sentence
}
let
!
(:
ontology
)
{
sentence.ontology
}
context
'on GET to index'
do
render_views
before
do
get
:
index
,
repository_id
:
ontology.repository.to
_param
,
ontology_id
:
ontology.to
_param
end
it
{
should
respond_with
:
success
}
it
{
should
render_template
:
index
}
it
{
should
render_template
'sentences/_sentence'
}
end
end