another fix

This commit is contained in:
John Bintz 2011-05-13 10:11:03 -04:00
parent 8aea97569e
commit 6b31491da7
2 changed files with 2 additions and 3 deletions

View File

@ -21,5 +21,5 @@ class window.<%= object_name %>View extends Backbone.View
@model.save(this.attributes())
destroy: =>
if confirm("Are you sure?")
@model.destroy
@model.destroy()

View File

@ -17,10 +17,9 @@ describe '<%= object_name %>View', ->
setFixtures('<div id="container" />')
view = new <%= object_name %>View({model: model})
it 'should render with an update button', ->
view.render()
it 'should render with an update button', ->
expect(view.$('button.save')).toHaveText('Update')
it 'should destroy the model', ->