diff --git a/src/robot.coffee b/src/robot.coffee new file mode 100644 index 0000000..8d92235 --- /dev/null +++ b/src/robot.coffee @@ -0,0 +1,12 @@ +### + * robot + * cylonjs.com + * + * Copyright (c) 2013 The Hybrid Group + * Licensed under the Apache 2.0 license. +### + +'use strict'; + +exports = module.exports = class Robot + constructor: (@name) -> diff --git a/test/src/specs/robot.spec.coffee b/test/src/specs/robot.spec.coffee new file mode 100644 index 0000000..1d321f5 --- /dev/null +++ b/test/src/specs/robot.spec.coffee @@ -0,0 +1,12 @@ +'use strict'; + +Robot = source("robot") +#robot = require '../dist/robot.js' +#Robot = require("#{__dirname}/robot") + +describe "basic tests", -> + r = new Robot("irobot") + + it "robot should have a name", -> + r.should.have.keys 'name' + r.name.should.be.equal 'irobot'