From 92c651f6b32497a7cf1be1f64ad156f40b6ee567 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sat, 19 Oct 2013 14:30:16 -0700 Subject: [PATCH] Add placeholder for Robot --- src/robot.coffee | 12 ++++++++++++ test/src/specs/robot.spec.coffee | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 src/robot.coffee create mode 100644 test/src/specs/robot.spec.coffee 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'