From a277e6ae8bba9667b16a08c86d146c73e8c54c5e Mon Sep 17 00:00:00 2001 From: Travco Date: Tue, 2 Aug 2016 10:48:11 -0400 Subject: [PATCH] Update expected test behavior to include multi-step-prep single-atomic symlink change. --- test/unit/tasks/deploy/publish.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/tasks/deploy/publish.js b/test/unit/tasks/deploy/publish.js index e516727..95eba70 100644 --- a/test/unit/tasks/deploy/publish.js +++ b/test/unit/tasks/deploy/publish.js @@ -39,7 +39,7 @@ describe('deploy:publish task', function () { shipit.start('deploy:publish', function (err) { if (err) return done(err); expect(shipit.currentPath).to.equal('/remote/deploy/current'); - expect(shipit.remote).to.be.calledWith('cd /remote/deploy && if [[ -d current && ! (-L current) ]]; then ln -nfs releases/20141704123138 current;else echo "ERR: could not make symlink"; fi'); + expect(shipit.remote).to.be.calledWith('cd /remote/deploy && if [[ -d current && ! (-L current) ]]; then echo "ERR: could not make symlink"; else ln -nfs releases/20141704123138 current_tmp && mv -fT current_tmp current; fi'); done(); }); });