Fix unit test

This commit is contained in:
James Allen 2014-11-07 12:35:10 +00:00
parent 84c08edcf3
commit 6d10e45135

View file

@ -177,7 +177,7 @@ describe "EditorController", ->
.should.equal true .should.equal true
it "should return the project model view, privilege level and protocol version", -> it "should return the project model view, privilege level and protocol version", ->
@callback.calledWith(null, @projectModelView, "owner", @EditorController.protocolVersion).should.equal true @callback.calledWith(null, @projectModelView, "owner").should.equal true
describe "when not authorized", -> describe "when not authorized", ->
beforeEach -> beforeEach ->
@ -186,7 +186,7 @@ describe "EditorController", ->
@EditorController.buildJoinProjectView(@project_id, @user_id, @callback) @EditorController.buildJoinProjectView(@project_id, @user_id, @callback)
it "should return false in the callback", -> it "should return false in the callback", ->
@callback.calledWith(null, null, false, @EditorController.protocolVersion).should.equal true @callback.calledWith(null, null, false).should.equal true
describe "leaveProject", -> describe "leaveProject", ->