   describe '#artworks', ->
 
     it 'displays the correct artwork URLs in the sitemap', ->
+      routes.__set__ 'request', get: -> query: -> end: (cb) ->
+        cb(null, { body: results: [fabricate 'artwork', { id: 'foo'}] })
+      @req = 
+        params:
+          date: '2012-01-01'
+          page: 3
       routes.artworksPage('artworks')(@req, @res)
-      Backbone.sync.args[0][2].success {
-        results: [
-          fabricate('artwork', { id: 'foo' })
-        ]
-      }
-
       @res.render.args[0][0].should.equal('artworks')
-      @res.render.args[0][1].artworks[0].id.should.equal('foo')+      @res.render.args[0][1].models[0].id.should.equal('foo')

routes = rewire '../routes'

describe 'Sitemaps', ->
  describe '#robots', ->
    beforeEach ->
      @res = set: sinon.stub(), send: sinon.stub()

      routes.robots null, @res
      @res.send.args[0][0]
        .should.equal  'Sitemap: https://www.artsy.net/sitemap.xml'

  describe '#news_sitemap', ->

