Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F887953
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
Sun, Aug 10, 7:38 AM
Size
795 B
Mime Type
text/x-ruby
Expires
Tue, Aug 12, 7:38 AM (11 h, 54 m)
Engine
blob
Format
Raw Data
Handle
231030
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 GET /admin/users/new'
do
expect
(
get
(
'/admin/users/new'
))
.
to
route_to
(
controller
:
'admin/users'
,
action
:
'new'
)
end
it
'routes POST /admin/users'
do
expect
(
post
(
'/admin/users'
))
.
to
route_to
(
controller
:
'admin/users'
,
action
:
'create'
)
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