Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F887504
clients_routing_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Aug 10, 1:12 AM
Size
1 KB
Mime Type
text/x-ruby
Expires
Tue, Aug 12, 1:12 AM (32 m, 16 s)
Engine
blob
Format
Raw Data
Handle
230486
Attached To
rARCHIVING archiving
clients_routing_spec.rb
View Options
require
'spec_helper'
describe
Admin
::
ClientsController
do
it
'routes GET /admin/clients'
do
expect
(
get
(
'/admin/clients'
))
.
to
route_to
(
controller
:
'admin/clients'
,
action
:
'index'
)
end
it
'routes GET /admin/clients/1'
do
expect
(
get
(
'/admin/clients/1'
))
.
to
route_to
(
controller
:
'admin/clients'
,
action
:
'show'
,
id
:
'1'
)
end
it
'routes GET /admin/clients/1/stats'
do
expect
(
get
(
'/admin/clients/1/stats'
))
.
to
route_to
(
controller
:
'admin/clients'
,
action
:
'stats'
,
id
:
'1'
)
end
it
'routes POST /admin/clients/1/stats'
do
expect
(
post
(
'/admin/clients/1/stats'
))
.
to
route_to
(
controller
:
'admin/clients'
,
action
:
'stats'
,
id
:
'1'
)
end
it
'routes GET /admin/clients/1/logs'
do
expect
(
get
(
'/admin/clients/1/logs'
))
.
to
route_to
(
controller
:
'admin/clients'
,
action
:
'logs'
,
id
:
'1'
)
end
it
'routes GET /admin/clients/1/jobs'
do
expect
(
get
(
'/admin/clients/1/jobs'
))
.
to
route_to
(
controller
:
'admin/clients'
,
action
:
'jobs'
,
id
:
'1'
)
end
it
'routes GET /admin/clients/1/configuration'
do
expect
(
get
(
'/admin/clients/1/configuration'
))
.
to
route_to
(
controller
:
'admin/clients'
,
action
:
'configuration'
,
id
:
'1'
)
end
it
'routes POST /admin/clients/1/disable'
do
expect
(
post
(
'/admin/clients/1/disable'
))
.
to
route_to
(
controller
:
'admin/clients'
,
action
:
'disable'
,
id
:
'1'
)
end
it
'routes DELETE /admin/clients/1/revoke'
do
expect
(
delete
(
'/admin/clients/1/revoke'
))
.
to
route_to
(
controller
:
'admin/clients'
,
action
:
'revoke'
,
id
:
'1'
)
end
end
Event Timeline
Log In to Comment