Added test for valid spell targets

This commit is contained in:
Dušan Juretić 2014-01-11 17:29:25 -03:00
parent 9b01ea5072
commit bbddb5f87d

View file

@ -202,6 +202,12 @@ describe 'User', ->
expect(user.items.gear.equipped).to.eql { armor: 'armor_base_0', weapon: 'weapon_base_0', head: 'head_base_0', shield: 'shield_base_0' }
expect(user.stats.gp).to.eql 1
describe 'spells', ->
_.each shared.content.spells, (spellClass)->
_.each spellClass, (spell)->
it "#{spell.text} have a valid target", ->
expect(spell.target).to.match(/^(task|self|party|user)$/)
describe 'drop system', ->
user = null