 
   describe "when an update identity is not present", ->
     it "should use anonymous", ->
-      m = new AutoUpdateManager("3.222.1", @config, @specMode)
+      m = new AutoUpdateManager("3.222.1", @config, @specMode, @databaseReader)
       spyOn(m, "setupAutoUpdater")
       {query} = url.parse(m.feedURL, true)
       expect(query.id).toEqual('anonymous')


  describe "with attached commit version", ->
    it "correctly sets the feedURL", ->
      m = new AutoUpdateManager("3.222.1-abc", @config, @specMode)
      spyOn(m, "setupAutoUpdater")

      {query} = url.parse(m.feedURL, true)

    @nylasIdentityId = null
    @accounts = [{email_address: 'ben@nylas.com'},{email_address: 'mark@nylas.com'}]
    @specMode = true
    @databaseReader =
      getJSONBlob: => {
        id: @nylasIdentityId
      }
    @config =
      set: jasmine.createSpy('config.set')
      get: (key) =>
