Skip to content

Instantly share code, notes, and snippets.

@leepfrog
Created April 2, 2013 18:42
Show Gist options
  • Select an option

  • Save leepfrog/5294959 to your computer and use it in GitHub Desktop.

Select an option

Save leepfrog/5294959 to your computer and use it in GitHub Desktop.
it.only 'should recalculate when adding an element to the array with pushObject', ->
pipeline.get('results.length').should.equal(10)
newBook = Book.create( title: 'yolofolomolo' )
pipeline.get('content').pushObject(newBook)
pipeline.get('results.length').should.equal(11)
pipeline.get('results.lastObject').should.equal(newBook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment