Skip to content

Commit

Permalink
Update assertions to reflect GNU style options
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelnano committed Feb 21, 2017
1 parent 33d930c commit c293998
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/unit/hooks-worker-client-test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ describe 'Hooks worker client', ->

hooksWorkerClient.stop (err) ->
assert.isUndefined err
assert.equal crossSpawnStub.spawn.getCall(0).args[1][4], 'somefile.rb'
assert.equal crossSpawnStub.spawn.getCall(0).args[1][2], 'somefile.rb'
done()

describe 'when --language ruby option is given and the worker is not installed', ->
Expand Down Expand Up @@ -247,7 +247,7 @@ describe 'Hooks worker client', ->

hooksWorkerClient.stop (err) ->
assert.isUndefined err
assert.equal crossSpawnStub.spawn.getCall(0).args[1][4], 'somefile.py'
assert.equal crossSpawnStub.spawn.getCall(0).args[1][2], 'somefile.py'
done()

describe 'when --language python option is given and the worker is not installed', ->
Expand Down Expand Up @@ -310,7 +310,7 @@ describe 'Hooks worker client', ->

hooksWorkerClient.stop (err) ->
assert.isUndefined err
assert.equal crossSpawnStub.spawn.getCall(0).args[1][4], 'somefile.py'
assert.equal crossSpawnStub.spawn.getCall(0).args[1][2], 'somefile.py'
done()

describe 'when --language go option is given and the worker is not installed', ->
Expand Down Expand Up @@ -373,7 +373,7 @@ describe 'Hooks worker client', ->

hooksWorkerClient.stop (err) ->
assert.isUndefined err
assert.equal crossSpawnStub.spawn.getCall(0).args[1][4], 'gobinary'
assert.equal crossSpawnStub.spawn.getCall(0).args[1][2], 'gobinary'
done()

describe 'when --language php option is given and the worker is not installed', ->
Expand Down Expand Up @@ -436,7 +436,7 @@ describe 'Hooks worker client', ->

hooksWorkerClient.stop (err) ->
assert.isUndefined err
assert.equal crossSpawnStub.spawn.getCall(0).args[1][4], 'somefile.py'
assert.equal crossSpawnStub.spawn.getCall(0).args[1][2], 'somefile.py'
done()

describe 'when --language perl option is given and the worker is not installed', ->
Expand Down Expand Up @@ -499,7 +499,7 @@ describe 'Hooks worker client', ->

hooksWorkerClient.stop (err) ->
assert.isUndefined err
assert.equal crossSpawnStub.spawn.getCall(0).args[1][4], 'someotherfile'
assert.equal crossSpawnStub.spawn.getCall(0).args[1][2], 'someotherfile'
done()

describe "after loading", ->
Expand Down

0 comments on commit c293998

Please sign in to comment.