Commit Graph

733 Commits

Author SHA1 Message Date
Anatoliy Chakkaev f36372ba80 Add more love to tests, pr #249 2013-03-31 14:17:25 +04:00
Anatoliy Chakkaev 76c7fbd6ec Merge branch 'http' of github.com:NiKnight/jugglingdb 2013-03-31 14:08:38 +04:00
Anatoliy Chakkaev f8f72cc05e Merge pull request #250 from anatoliychakkaev/master
Batch create, misc
2013-03-31 03:08:18 -07:00
Anatoliy Chakkaev ab3f64a152 0.2.0-27 2013-03-31 13:41:12 +04:00
Anatoliy Chakkaev 6449f1ca72 Fix validations 2013-03-31 13:41:02 +04:00
Anatoliy Chakkaev 0776c51994 Batch create 2013-03-31 13:40:37 +04:00
Scott Nonnenberg 5655e8f4d2 tests only: no afterCreate/afterUpdate on errors
Added tests to ensure that the afterCreate/afterUpdate handlers are not run if the adapter returns an error.
2013-03-30 17:20:32 -07:00
Scott Nonnenberg 2ba862f5af afterDestroy not called on adapter error
Similar to afterCreate and afterUpdate, we don't want to run the afterXXXX handlers if the delete failed according to the adapter.
2013-03-30 17:18:47 -07:00
Anatoliy Chakkaev 1749782a4b 0.2.0-26 2013-03-30 21:10:32 +04:00
Anatoliy Chakkaev 224efba0c7 Ignore npm-debug.log 2013-03-30 21:10:20 +04:00
Anatoliy Chakkaev 5b429e8d41 Fix memory adapter: broken upd attrs 2013-03-30 21:07:16 +04:00
Anatoliy Chakkaev 2f048e79c0 Return instance of object when create 2013-03-30 21:06:09 +04:00
Anatoliy Chakkaev 13ac3cf088 Merge pull request #246 from anatoliychakkaev/master
Test amends for redis-hq
2013-03-29 01:55:10 -07:00
Anatoliy Chakkaev c1e3e78976 Turn off ignoring tests 2013-03-29 12:54:04 +04:00
Anatoliy Chakkaev 839791de2f Upd tests
- skipping
- hook up redis-hq
- some stuff should be moved to advanced-querying tests
2013-03-29 11:43:04 +04:00
Anatoliy Chakkaev e16219eb61 Merge pull request #245 from anatoliychakkaev/master
Hooks, validations, lifecycle
2013-03-28 04:30:58 -07:00
Anatoliy Chakkaev 5540750626 Validation amends
- rename event
- pass data to hooks
- always call hooks (even when no validations set up)
2013-03-28 15:29:11 +04:00
Anatoliy Chakkaev 7707b236ff Test hooks and object lifecycle as per #242 2013-03-28 15:27:50 +04:00
Anatoliy Chakkaev 589887715c Tests for data manipulation 2013-03-28 15:27:27 +04:00
Anatoliy Chakkaev 1f29064b3d Rewrite save and create for correct hooks order
Validation should be called first, and then all other actions
to allow modify data after validation (for example hash
password after validating length.

Issue #242
2013-03-28 15:26:51 +04:00
Anatoliy Chakkaev 48d78b71f6 Rename validation hooks
Name should be "beforeValidate" and "afterValidate"
to be consistent with other hook hames. This change doesnt break
backward compatibility
2013-03-28 15:23:31 +04:00
Anatoliy Chakkaev e441f38c4f Merge pull request #243 from mansuleman/master
Mostly Syntax errors for hooks
2013-03-27 15:55:56 -07:00
Mansur S bc18e435ae Update hooks.md
mostly syntax stuff
2013-03-28 02:46:37 +04:00
Mansur S 2cfa6f6c4f Merge pull request #1 from 1602/master
беру себе
2013-03-27 15:12:09 -07:00
Anatoliy Chakkaev b4813360c3 Upd node version for travis 2013-03-27 22:06:41 +04:00
Anatoliy Chakkaev e5f541c0b8 Uncomment tests 2013-03-27 22:00:50 +04:00
Anatoliy Chakkaev 2d6cc9aaee Mongodb tolerance 2013-03-27 21:53:07 +04:00
Anatoliy Chakkaev 928a366860 Enable growl 2013-03-27 21:12:29 +04:00
Anatoliy Chakkaev 6a9a1468fb Merge branch 'master' of github1602:1602/jugglingdb 2013-03-27 19:28:19 +04:00
Anatoliy Chakkaev df8cafce77 0.2.0-25 2013-03-27 18:57:20 +04:00
Anatoliy Chakkaev b04a250b63 Update attribute additional test 2013-03-27 18:53:46 +04:00
Anatoliy Chakkaev e75029ebbf Fix memory adapter and test 2013-03-27 17:10:13 +04:00
Anatoliy Chakkaev 121b13511d Merge pull request #240 from anatoliychakkaev/master
Docs and all pieces matters
2013-03-26 17:54:07 -07:00
Anatoliy Chakkaev b6fb04ffe1 Removed include test from common 2013-03-27 04:51:31 +04:00
Anatoliy Chakkaev cfe31d41ec Test destroy 2013-03-27 04:51:00 +04:00
Anatoliy Chakkaev ffdfac30e1 Migration-friendly tests 2013-03-27 04:50:34 +04:00
Anatoliy Chakkaev 2749a1f7e0 Fixes in belongsTo relation definition syntax 2013-03-27 04:48:26 +04:00
Anatoliy Chakkaev d3752eab4c Docs: hooks, footer fix 2013-03-27 04:47:34 +04:00
Anatoliy Chakkaev 7772c32c80 Include test 2013-03-27 04:46:59 +04:00
Anatoliy Chakkaev fa0029f6ee Merge pull request #239 from mansuleman/master
Syntax + contribution
2013-03-26 17:22:08 -07:00
Mansur S ac4c027515 Update jugglingdb.md
- syntax edits
- contribution added
2013-03-27 04:18:49 +04:00
Anatoliy Chakkaev cba87ce339 Query testing: findOne 2013-03-27 00:50:13 +04:00
Anatoliy Chakkaev 0d5f4a9aad Added test case for #238: password hashing before save 2013-03-27 00:49:02 +04:00
Anatoliy Chakkaev de28603460 Added short syntax for belongsTo 2013-03-27 00:48:14 +04:00
Anatoliy Chakkaev 895c2d6bf7 Docs for hooks and model 2013-03-26 23:34:20 +04:00
Anatoliy Chakkaev 5e24bd960f Beautify things 2013-03-26 23:34:01 +04:00
Anatoliy Chakkaev 58e2349575 Fix memory adapter to support lowercase desc order 2013-03-26 23:33:40 +04:00
Anatoliy Chakkaev 49be07545a Rewriting tests 2013-03-26 23:33:11 +04:00
Anatoliy Chakkaev d5d07d8806 Make tests importable 2013-03-26 04:41:00 +04:00
Anatoliy Chakkaev 6981824d28 Docs amends 2013-03-26 04:40:16 +04:00