Made some minor changes.

This commit is contained in:
Scott Erickson 2014-08-13 13:45:24 -07:00
parent e3088ad813
commit f9e8bfad9f
3 changed files with 4 additions and 3 deletions

View file

@ -25,7 +25,7 @@ DEMO_URL_PREFIX = '/demo/'
###
module.exports = DemoView = class DemoView extends RootView
id: "demo-view"
id: 'demo-view'
template: template
# INITIALIZE

View file

@ -18,7 +18,6 @@ module.exports = class RelatedAchievementsView extends CocoView
@level = options.level
@relatedID = @level.id
@achievements = new RelatedAchievementsCollection @relatedID
console.debug @achievements
@supermodel.loadCollection @achievements, 'achievements'
onLoaded: ->

View file

@ -92,10 +92,12 @@ describe 'CocoModel', ->
request = jasmine.Ajax.requests.mostRecent()
expect(request).toBeUndefined()
describe 'Achievement polling', ->
xdescribe 'Achievement polling', ->
NewAchievementCollection = require 'collections/NewAchievementCollection'
EarnedAchievement = require 'models/EarnedAchievement'
# TODO: Figure out how to do debounce in tests so that this test doesn't need to use keepDoingUntil
it 'achievements are polled upon saving a model', (done) ->
#spyOn(CocoModel, 'pollAchievements')
Backbone.Mediator.subscribe 'achievements:new', (collection) ->