Cross Reference:
xref
: /
ontohub
/
test
/
functional
/
admin
/
teams_controller_test.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
teams_controller_test.rb revision 38dab3b63e2730b443590a53de93e085659efe25
486
N/A
require
'test_helper'
486
N/A
1276
N/A
class
Admin
::
TeamsControllerTest
<
ActionController
::
TestCase
486
N/A
1610
N/A
context
'on GET to index'
do
486
N/A
context
'not signed in'
do
486
N/A
setup
do
919
N/A
get
:
index
919
N/A
end
919
N/A
919
N/A
should
set_the_flash.to
(/
admin
privileges
/)
919
N/A
should
respond_with
:
redirect
919
N/A
end
919
N/A
919
N/A
context
'signed in as normal user'
do
919
N/A
setup
do
919
N/A
sign_in
FactoryGirl.create
:
user
919
N/A
get
:
index
919
N/A
end
919
N/A
919
N/A
should
set_the_flash.to
(/
admin
privileges
/)
919
N/A
should
respond_with
:
redirect
919
N/A
end
919
N/A
486
N/A
context
'signed in as admin user'
do
486
N/A
setup
do
486
N/A
sign_in
FactoryGirl.create
:
admin
486
N/A
get
:
index
493
N/A
end
486
N/A
486
N/A
should
respond_with
:
success
1408
N/A
end
486
N/A
end
911
N/A
1408
N/A
end
1408
N/A