       Backbone.$ = $
       sinon.stub Backbone, 'sync'
       @reminder = new AuctionReminder
-      # AuctionReminder.__set__ 'Cookies', sinon.stub()
+      AuctionReminder.__set__ 'Cookies', sinon.stub()
       done()
 
   afterEach ->
+    benv.teardown()
     Backbone.sync.restore()
-    benv.teardown()
+    AuctionReminder.__set__ 'Cookies', sinon.restore()
 
   describe '#module.exports', ->
     it 'fetches auction and auction image if there is one', ->

      sinon.stub Backbone, 'sync'
      @AuctionReminderModal = AuctionReminder.__get__ 'AuctionReminderModal'
      @AuctionReminderModal::open = sinon.stub()
      # AuctionReminder.__set__ 'Cookies', sinon.stub()
      @auctionImage = "foo.jpg"
      done()

  afterEach ->
    Backbone.sync.restore()
    benv.teardown()

  describe '#initialize', ->


      _.isUndefined(view.$container).should.equal false

    it 'does not display if there are more than 24 hours until the end', ->
      auction = new Sale fabricate 'sale', { end_at: moment().add(25,'hours') }
      view = new @AuctionReminderModal(
        auction: auction
        auctionImage: @auctionImage
