Commit Graph

67 Commits

Author SHA1 Message Date
0015bdb617 - Added new model "SubscriberList"
- Added has_many_through relations to the new model + Subscriber model
- Added tests
- Fixed syntax in other models
This closes #95
2015-09-01 09:18:00 -04:00
1ff7e3f4be Form Subscription
- improved MailPoet ajax to fix token issue
- added js validation and ajax submit in public.js
- add util security to generate tokens
- updated router to use new util security
- added jquery-validation module
- update public config in webpack config
- added error messages in form
2015-08-20 21:02:04 +02:00
5cc9c1c6de Tests cleanup. 2015-08-20 00:31:42 +02:00
e386c3aa38 Cleanup tests. 2015-08-20 00:21:10 +02:00
ce730d7c3b Settings router.
Here's a simple settings router. the createOrUpdate method lives
in the model, and by default all models will return true on save
or false if save went wrong.
2015-08-19 23:55:30 +02:00
3af24f9877 Reverted back to Model class 2015-08-17 17:37:43 +00:00
a26cbd6f41 - Renamed Model to BaseModel (make it clear)
- Updated RoboFile to compile assets or else tests break
2015-08-17 15:54:48 +00:00
78b5791a46 - Added 'Newsletters' model and wrote tests
- Fixed some formatting in unit tests
Closes #68
2015-08-14 13:31:45 +00:00
d7f7e48d8b Fix indentation. 2015-08-13 18:05:49 +02:00
ed27b5716b Fix indentation. 2015-08-13 18:05:26 +02:00
781e016be5 Fix indentation. 2015-08-13 18:04:28 +02:00
81c8b22b36 Fix indentation. 2015-08-13 18:03:36 +02:00
5d1b8524ea Added Laurent's tests/model save() method 2015-08-13 09:58:41 -04:00
c5f67cb371 - Database cleanup uses Models
- Formatted code as per Marco's comments
2015-08-12 22:48:42 +00:00
2856a08cdc - Made changes as per Marco's comments in #54
- Implemented database cleanup for tests. Closes #56
2015-08-12 15:36:56 +00:00
12bead358c - Added Sudzy composer dependency for model validation
- All models now extend a generic Model class that extends Sudzy
- Wrote tests for Subscriber and Setting model validation
- Rewrote model tests to make sure they look the same
- Updated both tests with cleanup logic in the beginning
- Added test:unit-single method to Robo for selective unit testing

Closes #54
2015-08-11 23:52:00 +00:00
26384d16b8 Fixes #49 2015-08-10 18:37:41 -04:00