From 96b22c0b551772a147417e46382336b8980fe25c Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Mon, 2 Nov 2015 11:56:11 -0800 Subject: [PATCH] fix(specs): Don't check for updates during spec runs --- spec/auto-update-manager-spec.coffee | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/spec/auto-update-manager-spec.coffee b/spec/auto-update-manager-spec.coffee index e1ef340e7..756b1a033 100644 --- a/spec/auto-update-manager-spec.coffee +++ b/spec/auto-update-manager-spec.coffee @@ -4,6 +4,7 @@ url = require 'url' describe "AutoUpdateManager", -> beforeEach -> @updateIdentity = null + @specMode = true @config = set: jasmine.createSpy('config.set') get: (key) => @@ -14,7 +15,7 @@ describe "AutoUpdateManager", -> describe "with attached commit version", -> it "correctly sets the feedURL", -> - m = new AutoUpdateManager("3.222.1-abc", @config) + m = new AutoUpdateManager("3.222.1-abc", @config, @specMode) spyOn(m, "setupAutoUpdater") {query} = url.parse(m.feedUrl, true) @@ -24,7 +25,7 @@ describe "AutoUpdateManager", -> describe "with no attached commit", -> it "correctly sets the feedURL", -> - m = new AutoUpdateManager("3.222.1", @config) + m = new AutoUpdateManager("3.222.1", @config, @specMode) spyOn(m, "setupAutoUpdater") {query} = url.parse(m.feedUrl, true) expect(query.arch).toBe process.arch @@ -33,7 +34,7 @@ describe "AutoUpdateManager", -> describe "when an update identity is not present", -> it "should save one to @config and send it", -> - m = new AutoUpdateManager("3.222.1", @config) + m = new AutoUpdateManager("3.222.1", @config, @specMode) spyOn(m, "setupAutoUpdater") {query} = url.parse(m.feedUrl, true) @@ -43,7 +44,7 @@ describe "AutoUpdateManager", -> describe "when an update identity is already set", -> it "should send it and not save any changes", -> @updateIdentity = "test-identity" - m = new AutoUpdateManager("3.222.1", @config) + m = new AutoUpdateManager("3.222.1", @config, @specMode) spyOn(m, "setupAutoUpdater") {query} = url.parse(m.feedUrl, true)