Created
April 2, 2013 18:42
-
-
Save leepfrog/5294959 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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