mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
23e3821e24
This collapses the difference between master and single-process-server-tests, to remove some larger fixtures files that were in that feature branch.
23 lines
770 B
CoffeeScript
23 lines
770 B
CoffeeScript
require '../common'
|
|
|
|
describe 'queue', ->
|
|
someURL = getURL('/queue/')
|
|
allowHeader = 'GET, POST, PUT'
|
|
|
|
xit 'can\'t be requested with HTTP PATCH method', (done) ->
|
|
request {method: 'patch', uri: someURL}, (err, res, body) ->
|
|
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()
|