|
@@ -630,19 +630,19 @@ describe('DockerRunner', function() {
|
|
|
it('should destroy old containers', function() {
|
|
it('should destroy old containers', function() {
|
|
|
this.DockerRunner.destroyContainer.callCount.should.equal(1)
|
|
this.DockerRunner.destroyContainer.callCount.should.equal(1)
|
|
|
return this.DockerRunner.destroyContainer
|
|
return this.DockerRunner.destroyContainer
|
|
|
- .calledWith('/project-old-container-name', 'old-container-id')
|
|
|
|
|
|
|
+ .calledWith('project-old-container-name', 'old-container-id')
|
|
|
.should.equal(true)
|
|
.should.equal(true)
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
it('should not destroy new containers', function() {
|
|
it('should not destroy new containers', function() {
|
|
|
return this.DockerRunner.destroyContainer
|
|
return this.DockerRunner.destroyContainer
|
|
|
- .calledWith('/project-new-container-name', 'new-container-id')
|
|
|
|
|
|
|
+ .calledWith('project-new-container-name', 'new-container-id')
|
|
|
.should.equal(false)
|
|
.should.equal(false)
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
it('should not destroy non-project containers', function() {
|
|
it('should not destroy non-project containers', function() {
|
|
|
return this.DockerRunner.destroyContainer
|
|
return this.DockerRunner.destroyContainer
|
|
|
- .calledWith('/totally-not-a-project-container', 'some-random-id')
|
|
|
|
|
|
|
+ .calledWith('totally-not-a-project-container', 'some-random-id')
|
|
|
.should.equal(false)
|
|
.should.equal(false)
|
|
|
})
|
|
})
|
|
|
|
|
|