renaming to user.mocha.coffee

This commit is contained in:
Tyler Renelle 2012-09-24 11:28:01 -04:00
parent 6b4ad78ec5
commit 90f30ac1f0
2 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@ g = "."
#@NODE_ENV=test $(MOCHA) --grep "$(g)" $(MOCHA_TESTS) | tee $(OUT_FILE)
test-mocha:
@NODE_ENV=test $(MOCHA) ./test/scoring.mocha.coffee
@NODE_ENV=test $(MOCHA) ./test/user.mocha.coffee
test: test-mocha

View file

@ -7,7 +7,7 @@ scoring = require '../src/app/scoring'
schema = require '../src/app/schema'
_ = require '../public/js/underscore-min'
describe 'Scoring', ->
describe 'User', ->
model = null
beforeEach ->
@ -48,7 +48,7 @@ describe 'Scoring', ->
it 'should make proper modifications when down-scored', ->
# Down-score the habit
[userBefore, taskBefore] = [model.get('_user'), model.get(taskPath)]
scoring.score(uuid, 'down')
scoring.score({taskId:uuid, direction:'down'})
[userAfter, taskAfter] = [model.get('_user'), model.get(taskPath)]
# User should have lost HP