Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1615025
pools_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
Sat, Mar 21, 2:26 PM
Size
931 B
Mime Type
text/x-ruby
Expires
Mon, Mar 23, 2:26 PM (1 d, 16 h)
Engine
blob
Format
Raw Data
Handle
354270
Attached To
rARCHIVING archiving
pools_routing_spec.rb
View Options
require
'spec_helper'
describe
Admin
::
PoolsController
do
it
'routes GET /admin/pools'
do
expect
(
get
(
'/admin/pools'
))
.
to
route_to
(
controller
:
'admin/pools'
,
action
:
'index'
)
end
it
'routes GET /admin/pools/new'
do
expect
(
get
(
'/admin/pools/new'
))
.
to
route_to
(
controller
:
'admin/pools'
,
action
:
'new'
)
end
it
'routes GET /admin/pools/1'
do
expect
(
get
(
'/admin/pools/1'
))
.
to
route_to
(
controller
:
'admin/pools'
,
action
:
'show'
,
id
:
'1'
)
end
it
'routes GET /admin/pools/1/edit'
do
expect
(
get
(
'/admin/pools/1/edit'
))
.
to
route_to
(
controller
:
'admin/pools'
,
action
:
'edit'
,
id
:
'1'
)
end
it
'routes POST /admin/pools'
do
expect
(
post
(
'/admin/pools'
))
.
to
route_to
(
controller
:
'admin/pools'
,
action
:
'create'
)
end
it
'routes PATCH /admin/pools/1'
do
expect
(
patch
(
'/admin/pools/1'
))
.
to
route_to
(
controller
:
'admin/pools'
,
action
:
'update'
,
id
:
'1'
)
end
end
Event Timeline
Log In to Comment