           run (cb) =>
             SyncSettings.createClient().gists.get({id: @gistId}, cb)
           , (err, res) ->
-            expect(res.files['init.coffee']).toBeDefined()
-
-      it "don't back up the user init.coffee file", ->
+            expect(res.files[path.basename(atom.getUserInitScriptPath())]).toBeDefined()
+
+      it "don't back up the user init script file", ->
         atom.config.set('sync-settings.syncInit', false)
         run (cb) ->
           SyncSettings.backup cb

          , (err, res) ->
            expect(res.files['styles.less']).not.toBeDefined()

      it "back up the user init.coffee file", ->
        atom.config.set('sync-settings.syncInit', true)
        run (cb) ->
          SyncSettings.backup cb

          run (cb) =>
            SyncSettings.createClient().gists.get({id: @gistId}, cb)
          , (err, res) ->
            expect(res.files[path.basename(atom.getUserInitScriptPath())]).not.toBeDefined()

      it "back up the user snippets", ->
        atom.config.set('sync-settings.syncSnippets', true)
