Cross Reference:
xref
: /
ontohub
/
test
/
functional
/
permissions_controller_test.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
permissions_controller_test.rb revision f1304db188bff0f7c40172819863ffe54401b400
require
'test_helper'
class
PermissionsControllerTest
<
ActionController
::
TestCase
should_map_nested_resources
:
repositories
, :
permissions
,
:
except
=> [:
new
, :
edit
, :
show
]
context
'permissions'
do
setup
do
@
ontology
=
FactoryGirl.create
:
ontology
@
user
=
FactoryGirl.create
:
user
end
context
'on GET to index'
do
context
'not signed in'
do
setup
do
get
:
index
, :
ontology_id
=> @
ontology.to
_param
end
should
set_the_flash.to
(/
not
authorized
/)
should
redirect_to
(
"root path"
)
{ :
root
}
end
end
end
end