2014-06-09 12:01:43 -04:00
|
|
|
require '../common'
|
|
|
|
|
|
|
|
describe 'queue', ->
|
|
|
|
someURL = getURL('/queue/')
|
|
|
|
allowHeader = 'GET, POST, PUT'
|
|
|
|
|
|
|
|
xit 'can\'t be requested with HTTP PATCH method', (done) ->
|
2014-06-30 22:16:26 -04:00
|
|
|
request {method: 'patch', uri: someURL}, (err, res, body) ->
|
2014-06-09 12:01:43 -04:00
|
|
|
expect(res.statusCode).toBe(405)
|
|
|
|
expect(res.headers.allow).toBe(allowHeader)
|
|
|
|
done()
|
|
|
|
|
|
|
|
xit 'can\'t be requested with HTTP HEAD method', (done) ->
|
|
|
|
request.head {uri: someURL}, (err, res, body) ->
|
|
|
|
expect(res.statusCode).toBe(405)
|
|
|
|
expect(res.headers.allow).toBe(allowHeader)
|
|
|
|
done()
|
|
|
|
|
|
|
|
xit 'can\'t be requested with HTTP DELETE method', (done) ->
|
|
|
|
request.del {uri: someURL}, (err, res, body) ->
|
|
|
|
expect(res.statusCode).toBe(405)
|
|
|
|
expect(res.headers.allow).toBe(allowHeader)
|
|
|
|
done()
|