edubkendo
9/5/2012 - 11:32 AM

changing the content-type test in the controller tests

changing the content-type test in the controller tests

  describe '#index', ->
    beforeEach (done) ->
      factory 'gist', (error, record) =>
        gist = record
        done()

    test 'render json', (done) ->
      get urlFor(App.Gist), format: "json", (request) ->
        assert.equal request.headers["content-type"], 'application/json'

        done()