Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F906861
users_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, Aug 30, 10:58 AM
Size
514 B
Mime Type
text/x-ruby
Expires
Mon, Sep 1, 10:58 AM (7 h, 58 m)
Engine
blob
Format
Raw Data
Handle
252753
Attached To
rARCHIVING archiving
users_routing_spec.rb
View Options
require
'spec_helper'
describe
Admin
::
UsersController
do
it
'routes GET /admin/users'
do
expect
(
get
(
'/admin/users'
))
.
to
route_to
(
controller
:
'admin/users'
,
action
:
'index'
)
end
it
'routes PATCH /admin/users/1/ban'
do
expect
(
patch
(
'/admin/users/1/ban'
))
.
to
route_to
(
controller
:
'admin/users'
,
action
:
'ban'
,
id
:
'1'
)
end
it
'routes PATCH /admin/users/1/unban'
do
expect
(
patch
(
'/admin/users/1/unban'
))
.
to
route_to
(
controller
:
'admin/users'
,
action
:
'unban'
,
id
:
'1'
)
end
end
Event Timeline
Log In to Comment