소스 검색

Better variable name in test

It should be a subscription id, instead of an admin id. The test passes
anyway because the db calls are mocked, but the wrong variable name
can cause confusion.
Alberto Fernández Capel 8 년 전
부모
커밋
ae440f2ee6
1개의 변경된 파일과 2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      services/web/test/unit/coffee/Subscription/SubscriptionGroupHandlerTests.coffee

+ 2 - 2
services/web/test/unit/coffee/Subscription/SubscriptionGroupHandlerTests.coffee

@@ -88,8 +88,8 @@ describe "SubscriptionGroupHandler", ->
 				done()
 
 		it "should add the user to the group", (done)->
-			@Handler.addUserToGroup @adminUser_id, @newEmail, (err)=>
-				@SubscriptionUpdater.addUserToGroup.calledWith(@adminUser_id, @user._id).should.equal true
+			@Handler.addUserToGroup @subscription_id, @newEmail, (err)=>
+				@SubscriptionUpdater.addUserToGroup.calledWith(@subscription_id, @user._id).should.equal true
 				done()
 
 		it "should not add the user to the group if the limit has been reached", (done)->