Cross Reference:
xref
: /
ontohub
/
test
/
functional
/
home_controller_test.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
home_controller_test.rb revision 38dab3b63e2730b443590a53de93e085659efe25
require
'test_helper'
class
HomeControllerTest
<
ActionController
::
TestCase
# should route(:get, "/").to(:controller=> :home, :action => :show)
context
'on GET to show'
do
context
'not signed in'
do
setup
do
get
:
show
end
should
respond_with
:
success
should
assign_to
:
versions
should
assign_to
:
comments
should
render_template
:
show
end
context
'signed in'
do
setup
do
sign_in
FactoryGirl.create
:
user
get
:
show
end
should
respond_with
:
success
should
assign_to
:
versions
should
assign_to
:
comments
should
render_template
:
show
end
end
end