diff --git a/Makefile b/Makefile index 5c6a158fc2..961b17dc58 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/test/scoring.mocha.coffee b/test/user.mocha.coffee similarity index 98% rename from test/scoring.mocha.coffee rename to test/user.mocha.coffee index ff3f164418..0045d48697 100644 --- a/test/scoring.mocha.coffee +++ b/test/user.mocha.coffee @@ -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