           ]
         }
       )
-
-    products_page2 = nock('https://myshop.myshopify.com')
       .get('/admin/products.json?limit=250&page=2')
       .reply(
         200

          "count": 300
        }
      )

    products_page1 = nock('https://myshop.myshopify.com')
      .get('/admin/products.json?limit=250&page=1')
      .reply(
        200

describe('#fetchAll', ->

  it('should get two pages', ->
    scope = nock('https://myshop.myshopify.com')
      .defaultReplyHeaders({
        'X-shopify-shop-api-call-limit': '1/40'
        'Content-Type': 'application/json'
      })
      .get('/admin/products/count.json?limit=250')
      .reply(
        200
