Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F906982
job_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, 12:15 PM
Size
810 B
Mime Type
text/x-ruby
Expires
Mon, Sep 1, 12:15 PM (1 d, 2 h)
Engine
blob
Format
Raw Data
Handle
253748
Attached To
rARCHIVING archiving
job_routing_spec.rb
View Options
require
'spec_helper'
describe
HostsController
do
it
'routes GET /jobs/new'
do
expect
(
get
(
'/jobs/new'
))
.
to
route_to
(
{
controller
:
'jobs'
,
action
:
'new'
})
end
it
'routes POST /jobs'
do
expect
(
post
(
'/jobs'
))
.
to
route_to
(
{
controller
:
'jobs'
,
action
:
'create'
})
end
it
'routes GET /jobs/1'
do
expect
(
get
(
'/jobs/1'
))
.
to
route_to
(
{
controller
:
'jobs'
,
action
:
'show'
,
id
:
'1'
})
end
it
'routes GET /jobs/1/edit'
do
expect
(
get
(
'/jobs/1/edit'
))
.
to
route_to
(
{
controller
:
'jobs'
,
action
:
'edit'
,
id
:
'1'
})
end
it
'routes PUT /jobs/1'
do
expect
(
put
(
'/jobs/1'
))
.
to
route_to
(
{
controller
:
'jobs'
,
action
:
'update'
,
id
:
'1'
})
end
it
'routes DELETE /jobs/1'
do
expect
(
delete
(
'/jobs/1'
))
.
to
route_to
(
{
controller
:
'jobs'
,
action
:
'destroy'
,
id
:
'1'
})
end
end
Event Timeline
Log In to Comment