Added Post model and test files
Refactored emptyDb in test/models.User to use models/db.js's db.neo -
still passing 71/71 tests
Refactored User model to use db.neo and db.respond. Deleted 2 connection
tests (to be moved into db tests) 69/69
Added tests for models/db for neo4j and respond. Passing 73/73 @ 100%
Coverage
Added test/helper.models.js to help with testing models
Moved before hook for model.User.js#find into helper.db.js#createUsers
Basic content for test/models.Post
Added after hook to test/models.User to clean up database
Empty PostModel constructor created and tested for existence
PostModel constructor accepts content and owner parameters(5/5 passing)
PostModel accessors for _id written and tested (7/7 passing)
Post.create() initial parameter validation tested and written (12/12
passing)
Added test for PostModel when owner is in an invalid format
Modified before hook in Post Model tests to register 5 users and set the
first one as owner. Also modified UserModel to always cast _id into an
int. (86/86 with Post at 13/13)
Added failing test for Post.create() to return an array. Also added
samplePost to test/helper.models
Added utility createPublic node and added to before hook for Post Model
tests. Might want to eventually create a db.prep() function to handle all
required db setup for the application to run
Successfully adds a Post to db and creates proper relationships (less
tags). Still failing test since results have not yet been parsed.
Post.create() passes first valid creation test. Wrote initial parsePosts
function, but will have to modify it later to accommodate tags (16/16)
Added failing test for returning tagged User objects in the .create()
response (17/18 passing in Post Model)
Modified Cypher Query to create CanSee relationships while creating single
Post node