   before (done) ->
     benv.setup =>
       benv.expose $: benv.require 'jquery'
-      $.waypoint = sinon.stub()
       Backbone.$ = $
-      @OverviewView = benv.requireWithJadeify resolve(__dirname, '../../client/views/overview'), ['template']
+      @OverviewView = benv.requireWithJadeify require.resolve('../../client/views/overview'), ['template']
       done()
 
   after ->


  beforeEach ->
    $.onInfiniteScroll = sinon.stub()

    sinon.stub _, 'defer', (cb) -> cb()
    sinon.stub Backbone, 'sync'

    Backbone.sync.restore()
    @view.remove()
    @model.related.restore()
    $.waypoints.restore()
    $.fn.waypoint.restore()

  describe '#render', ->
    it 'renders the template', ->
