Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1299979
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
Wed, Nov 19, 5:46 AM
Size
795 B
Mime Type
text/x-ruby
Expires
Fri, Nov 21, 5:46 AM (1 d, 11 h)
Engine
blob
Format
Raw Data
Handle
289943
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