       sinon.stub Backbone, 'sync'
       @AuctionReminderModal = AuctionReminder.__get__ 'AuctionReminderModal'
       @AuctionReminderModal::open = sinon.stub()
-      # AuctionReminder.__set__ 'Cookies', sinon.stub()
+      @cookies = sinon.stub(AuctionReminder.__get__ 'Cookies', 'initialize')
+      # console.log @cookies
+      # sinon.stub(@cookies)
       @auctionImage = "foo.jpg"
       done()
 
   afterEach ->
+    benv.teardown()
     Backbone.sync.restore()
-    benv.teardown()
+    @cookies.restore()
+
 
   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(24,'hours') }
      view = new @AuctionReminderModal(
        auction: auction
        auctionImage: @auctionImage

      Backbone.$ = $
      sinon.stub Backbone, 'sync'
      @reminder = new AuctionReminder
      AuctionReminder.__set__ 'Cookies', sinon.stub()
      done()

  afterEach ->
    benv.teardown()
    Backbone.sync.restore()
    AuctionReminder.__set__ 'Cookies', sinon.restore()

  describe '#module.exports', ->
    it 'fetches auction and auction image if there is one', ->
