Commit Graph

10 Commits

Author SHA1 Message Date
deadprogram 0e874c52d5 Refactoring Adaptor and Driver into proper base classes 2013-12-14 11:54:56 -08:00
Andrew Stewart 1cd5883a3f Clean up tests 2013-11-11 11:28:37 -05:00
Andrew Stewart b5a4854533 Add tests for Cylon#findRobotConnection 2013-11-08 17:33:29 -07:00
Andrew Stewart b7add10cb4 Add tests for Cylon#findRobotDevice() 2013-11-08 17:16:17 -07:00
Andrew Stewart b2f2d11a85 Add specs for sync and async versions of findRobot() 2013-11-08 15:04:50 -07:00
Andrew Stewart d7b3e63afe Test for Cylon#robots 2013-11-08 14:43:05 -07:00
Andrew Stewart 1778312e6c Tests for Cylon#api 2013-11-08 10:29:17 -07:00
Andrew Stewart da5cb27c21 The Future's So Bright, I Gotta Wear Shades
I apologize for this commit message but cylon-specs + this was just too perfect.

Anyways, have gotten Cylon robot specs working now. For some reason by the time
the spec runner gets around to running cylon.spec, inside cylon.js Robot has
been redefined to an empty object '{}'.

This resulted in a "TypeError: object is not a function on constructor" error.

So to solve this I moved the require() for 'robot' inside the Cylon.robot()
method. This shouldn't reload code thanks to Node's require cache, but will
properly assign Robot when instantiating a new one.
2013-11-08 10:03:16 -07:00
Andrew Stewart 716f675147 Remove unnecessary tests 2013-11-08 09:48:20 -07:00
Edgar O Silva 838aa9065a Added colors to example. 2013-10-24 16:27:37 -05:00