         @ArtworkColumnsView.returns @ArtworkColumnsView
         mod.__set__ 'ArtworkColumnsView', @ArtworkColumnsView
         mod.__set__ 'SaveControls', sinon.stub()
+        @FavoritesStatusModal = sinon.stub()
+        @FavoritesStatusModal.returns @FavoritesStatusModal
+        mod.__set__ 'FavoritesStatusModal', @FavoritesStatusModal
         @view = new FavoritesView
           el: $ 'body'
           collection: artworks

  describe 'with favorites items', ->

    beforeEach (done) ->
      sinon.stub Backbone, 'sync'
      benv.render resolve(__dirname, '../../templates/favorites.jade'), {
        sd: {}
      }, =>
        { FavoritesView, @init } = mod = benv.requireWithJadeify(
          (resolve __dirname, '../../client/favorites'), ['hintTemplate']
        )
        @src = [
          { artwork: fabricate 'artwork', id: 'artwork1' },

        _.last(@fetchStub.args)[0].data.sort.should.equal '-position'
        @view.loadNextPage()
        _.last(@fetchStub.args)[0].data.sort.should.equal '-position'

    describe '#showStatusDialog', ->

      it 'shows the status dialog when trying to share if the favorites is private', ->
        @view.savedArtworkCollection.set private: true
        @view.$el.find('.share-to-facebook').trigger 'click'

      it 'does not show the status dialog when trying to share if the favorites is public', ->
        @view.savedArtworkCollection.set private: false
        @view.$el.find('.share-to-facebook').trigger 'click'
        @FavoritesStatusModal.called.should.not.be.ok
