     benv.teardown()
 
   beforeEach (done) ->
-    sinon.stub(Backbone, 'sync')#.yieldsTo('success')
+    @submitStub = sinon.stub(Backbone, 'sync')#.yieldsTo('success')
 
     @order = new Order()
     @sale = new Sale fabricate 'sale'

      @view.on "submitted", =>
        @view.success.called.should.be.ok()
        done()

      @submitValidForm()

    it 'validates the form and displays errors', (done) ->
      @view.$submit.length.should.be.ok()
      @view.$submit.click()

      @view.on "submitted", =>

      Backbone.sync.onSecondCall().yieldsTo('success')
      # Successfully create the bidder
      Backbone.sync.onThirdCall().yieldsTo('success')
      @acceptTerms()
      @submitValidForm()

      @view.on "submitted", =>
