fix(test): Change quest's canBuy to fn call

This commit is contained in:
Sabe Jones
2015-09-25 15:16:17 -04:00
parent 38bdbf020b
commit 926bedcfea

View File

@@ -544,7 +544,7 @@ describe 'User', ->
expect(quest.notes()).to.be.an('string') expect(quest.notes()).to.be.an('string')
expect(quest.completion()).to.be.an('string') if quest.completion expect(quest.completion()).to.be.an('string') if quest.completion
expect(quest.previous).to.be.an('string') if quest.previous expect(quest.previous).to.be.an('string') if quest.previous
expect(quest.value).to.be.greaterThan 0 if quest.canBuy expect(quest.value).to.be.greaterThan 0 if quest.canBuy()
expect(quest.drop.gp).to.not.be.lessThan 0 expect(quest.drop.gp).to.not.be.lessThan 0
expect(quest.drop.exp).to.not.be.lessThan 0 expect(quest.drop.exp).to.not.be.lessThan 0
expect(quest.category).to.match(/pet|unlockable|gold|world/) expect(quest.category).to.match(/pet|unlockable|gold|world/)