     benv.teardown()
 
   beforeEach (done) ->
+
+    @currentUser = new CurrentUser(id: "user_id", email: "a@b.c")
+    window.currentUser = @currentUser
+    window.currentUser.initializeDefaultArtworkCollection()
     sinon.stub Backbone, 'sync'
     col = new Artworks [fabricate 'artwork']
     col.url = 'foo/bar'

      @view.nextPage()
      _.last(Backbone.sync.args)[1].url.should.include 'foo/bar'
      _.last(Backbone.sync.args)[2].data.page.should.equal 0
      @view.page.should.equal 1
sinon = require 'sinon'
{ fabricate } = require 'antigravity'
Artworks = require '../../../collections/artworks'
CurrentUser = require '../../../models/current_user'
{ resolve } = require 'path'
FillwidthView = benv.requireWithJadeify resolve(__dirname, '../view'), ['template']

