Commit graph

212 commits

Author SHA1 Message Date
Scott Erickson
ea06bb3d52 Fixed server tests to exit when they are finished. jasmine-node will never exit unless all connections are closed.
This helped:
https://github.com/mhevery/jasmine-node/issues/318#issuecomment-43914090
2014-06-11 13:21:11 -07:00
Scott Erickson
6d15b5e631 Working on User patching. 2014-06-11 13:16:17 -07:00
Scott Erickson
b81daabaf8 Merge branch 'server-test-fix' of https://github.com/rubenvereecken/codecombat into rubenvereecken-server-test-fix 2014-06-11 11:39:58 -07:00
Scott Erickson
e6dc896bab Reworking some code to use the new CocoModel.patch method. 2014-06-11 11:34:52 -07:00
Ruben Vereecken
8e33b6b534 Fixed all server-sided tests
NEVER. AGAIN
2014-06-11 20:17:27 +02:00
Scott Erickson
389d530eaa Built a new 'patch' method for CocoModel, which saves only changed values to the server. 2014-06-10 20:59:37 -07:00
Scott Erickson
f0ff8c242e Migrating language to codeLanguage on systems and components because they conflict with the search system. 2014-06-10 13:20:14 -07:00
Scott Erickson
f0cdf6b2e2 Fixed #1111. 2014-06-06 16:47:48 -07:00
Scott Erickson
49c9c6bfc9 Built the client test view (rebased from feature/testclient). 2014-06-05 16:56:29 -07:00
Ruben Vereecken
699aa506f2 Added Local Mongo support for nested documents. Totally forgot those 2014-06-02 20:29:11 +02:00
Ruben Vereecken
e177912a5a Added '$or' and '$and' to Local Mongo 2014-06-02 20:29:11 +02:00
Ruben Vereecken
b3bddbd785 Finished regular query selectors of Local Mongo 2014-06-02 20:29:11 +02:00
Ruben Vereecken
f2f4fef1e0 Wrote tests for the local mongo querier 2014-06-02 20:29:11 +02:00
dpen2000
64f91861ef Refactor: Remove unused parameters in camera.spec and extend previous fix to ignored tests 2014-05-24 16:05:19 +01:00
dpen2000
b09bd8c5ce Fix camera.spec.coffee tests after constructor change in ae64032739 and ignore one test still failing 2014-05-24 16:05:18 +01:00
Scott Erickson
f1927dcf35 Added a regressive test for e87592059b 2014-05-08 13:56:54 -07:00
Scott Erickson
1869bbe859 Merge branch 'tests' of https://github.com/adi2412/codecombat into adi2412-anonNameCollide 2014-05-05 16:49:15 -07:00
Scott Erickson
ed556f50be Added reserved word checking for names. 2014-04-28 14:09:29 -07:00
Aditya Raisinghani
0cd5d0f4af Added jasmine spec reporter and tests for anonymous name collisions. 2014-04-28 15:16:43 +05:30
Scott Erickson
20541f5520 Added another check to the recruit unsubscribe test, to make sure it doesn't affect other subscriptions. 2014-04-23 09:53:46 -07:00
Scott Erickson
b390b38054 Fixed a couple bugs and tests. 2014-04-23 09:19:07 -07:00
Scott Erickson
f7035d4220 Added an unsubscribe url for recruit notifications. 2014-04-22 19:27:39 -07:00
Scott Erickson
f57be1ae52 Migrated to the new email system, along with a setting for recruit notifications. 2014-04-21 16:15:23 -07:00
Scott Erickson
8adca4a1da Added a transactional email for when changes are made, to notify watchers. 2014-04-17 17:30:55 -07:00
Scott Erickson
ed0c7e1412 Creators of documents are automatically added as watchers. Added a patch creation email for watchers. 2014-04-17 17:09:01 -07:00
Scott Erickson
c395a3414e Merge branch 'master' into feature/jsondiffpatch 2014-04-15 15:18:57 -07:00
Scott Erickson
58b1019934 Switched listen to watch (would have been confusing with eye-con, and listenTo function in Backbone). Added watch button and patch badge to level editor. 2014-04-15 15:09:36 -07:00
Scott Erickson
06a61d214e Fixed server tests. 2014-04-15 09:01:51 -07:00
Scott Erickson
94e75b852c Removed a log. 2014-04-12 10:51:31 -07:00
Scott Erickson
30f785f7cf Moved the model schemas into a models folder. 2014-04-12 10:51:02 -07:00
Scott Erickson
a3951b0fa7 Extended the save version modal to allow submitting patches. 2014-04-10 13:09:44 -07:00
Scott Erickson
2f988ba485 Made the server side of the patch system. 2014-04-08 19:26:19 -07:00
Scott Erickson
c382889748 Bunch of server changes, mainly adding all the JSON schema validation and fixing tests. 2014-04-08 14:10:50 -07:00
Nick Winter
4f0805ce1e I changed the semantics of the i18n fallback to not hit 'text' for other properties, so updated a test. 2014-03-13 18:50:52 -07:00
Ruben Vereecken
96ec29d80e Added the finishing touch. Solved issue #15 2014-03-13 01:07:47 +01:00
Ruben Vereecken
3856ac597f Finished perfecting i18n 2014-03-13 00:47:08 +01:00
Ruben Vereecken
280b986898 Wrote tests for i18n 2014-03-13 00:11:01 +01:00
Ruben Vereecken
dbc37b177a Working on test. 2014-03-12 22:48:27 +01:00
Ruben Vereecken
aa0778507a Created utils test 2014-03-12 20:30:56 +01:00
Ruben Vereecken
76110423c0 Created i18n utility function 2014-03-12 20:30:43 +01:00
Scott Erickson
e63763d539 Made the server resistant to req.user being undefined sometimes. 2014-02-24 20:27:38 -08:00
Michael Schmatz
958ce4dfcf Merge pull request #345 from tohann/master
correct systems tab view test describe
2014-02-06 11:11:57 -08:00
Trent Ohannessian
b021c32bac correct systems tab view test describe 2014-02-06 09:24:56 -06:00
Sébastien Moratinos
8e841b397d delete unused code on server 2014-02-06 00:16:47 +01:00
Sébastien Moratinos
319a8d3941 add unit test 2014-02-04 08:36:25 +01:00
Sébastien Moratinos
aa83f77fd6 refactor server test folder 2014-02-04 08:36:15 +01:00
Sébastien Moratinos
f27db34976 add server auth test (reset password) 2014-02-03 00:08:52 +01:00
Michael Schmatz
a2028268b9 Disabled failing tests 2014-01-27 18:11:33 -08:00
Michael Schmatz
7a7ebcd63a Disabled failing camera tests until the axes are changed 2014-01-27 16:53:32 -08:00
Sébastien Moratinos
bbfc0eff69 server db route (handlers and schemas)
- use associative arrays to store path/filename
- add more test for schemas
2014-01-23 23:06:12 +01:00
Sébastien Moratinos
729cd300b7 server reorganize files and folder by features
- move and rename files
- use associative arrays which store handlers for 'dynamically'
  load module from de db route
- store models_path in test/server/common,
  a global model variable has the same name that the filename of the model
2014-01-23 01:01:40 +01:00
Sébastien Moratinos
e5ef0b707c Fix all server side test 2014-01-15 20:36:59 +01:00
Sébastien Moratinos
b53ed40530 Fix and add more server side test, file + level_component
- file : some test added and fixed
- level_component : test unallowed methods
2014-01-14 22:44:33 +01:00
Michael Schmatz
f93fab2d10 Fixed some camera coordinates in Camera tests, others still need to be done 2014-01-13 10:02:15 -08:00
Michael Schmatz
37ce387f5c Removed references to validator, fixed paths 2014-01-12 13:54:26 -08:00
Michael Schmatz
08805b6470 Disabled outdated router test 2014-01-12 13:29:42 -08:00
Michael Schmatz
128c0b3ba3 Disabled outdated ScriptManager tests 2014-01-12 13:24:45 -08:00
Michael Schmatz
718e7ebd22 Fixed failing createPath test
There was a misnamed variable, incorrect expect, and outdated calling
style
2014-01-12 12:44:22 -08:00
Michael Schmatz
1f4bcd0073 Renamed all client-side tests to .spec.coffee 2014-01-12 11:57:13 -08:00
Sébastien Moratinos
4f62448d74 Fix and add test in LevelComponent on the server side. 2014-01-12 16:16:56 +01:00
Sébastien Moratinos
e20408c248 We can now run all test on the server.
99 tests, 220 assertions, 13 failures

2 tests are disabled in file.spec.coffee
because they cause a fatal error.
2014-01-09 22:36:06 +01:00
Nick Winter
6009df26de Ready for action, sir! 2014-01-03 10:32:13 -08:00