Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F887565
client_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, 2:12 AM
Size
760 B
Mime Type
text/x-ruby
Expires
Tue, Aug 12, 2:12 AM (4 h, 22 m)
Engine
blob
Format
Raw Data
Handle
233677
Attached To
rARCHIVING archiving
client_routing_spec.rb
View Options
require
'spec_helper'
describe
Api
::
V1
::
ClientsController
do
it
'routes GET /api/clients'
do
expect
(
get
(
'/api/clients'
))
.
to
route_to
(
controller
:
'api/v1/clients'
,
action
:
'index'
,
format
:
:json
)
end
it
'routes GET /api/clients/:id'
do
expect
(
get
(
'/api/clients/1'
))
.
to
route_to
(
controller
:
'api/v1/clients'
,
action
:
'show'
,
id
:
'1'
,
format
:
:json
)
end
it
'routes POST /api/clients/:id/backup'
do
expect
(
post
(
'/api/clients/1/backup'
))
.
to
route_to
(
controller
:
'api/v1/clients'
,
action
:
'backup'
,
id
:
'1'
,
format
:
:json
)
end
it
'routes POST /api/clients/:id/restore'
do
expect
(
post
(
'/api/clients/1/restore'
))
.
to
route_to
(
controller
:
'api/v1/clients'
,
action
:
'restore'
,
id
:
'1'
,
format
:
:json
)
end
end
Event Timeline
Log In to Comment