Added another check to the recruit unsubscribe test, to make sure it doesn't affect other subscriptions.

This commit is contained in:
Scott Erickson 2014-04-23 09:53:46 -07:00
parent b3197c36b0
commit 20541f5520

View file

@ -152,4 +152,5 @@ describe '/auth/unsubscribe', ->
expect(response.statusCode).toBe(200) expect(response.statusCode).toBe(200)
user = User.findOne(joe.get('_id')).exec (err, user) -> user = User.findOne(joe.get('_id')).exec (err, user) ->
expect(user.get('emails').recruitNotes.enabled).toBe(false) expect(user.get('emails').recruitNotes.enabled).toBe(false)
expect(user.isEmailSubscriptionEnabled('generalNews')).toBeTruthy()
done() done()