 
       @provider.valid_request req, (err, valid) ->
         err.should.not.equal null
+        err.should.be.instanceof(lti.Errors.SignatureError)
         valid.should.equal false
         done()
 

lti       = require '../'
should    = require 'should'


describe 'LTI.Provider', () ->



    it 'should throw an error if no consumer_key or consumer_secret', () =>
      (()=>provider = new @lti.Provider()).should.throw(lti.Errors.ConsumerError)
      (()=>provider = new @lti.Provider('consumer-key')).should.throw(lti.Errors.ConsumerError)


  describe 'Structure', () =>
