Fixup specs

This commit is contained in:
Andrew Stewart 2014-09-30 12:22:00 -07:00
parent 8e0790ad9f
commit 81dfda5732
2 changed files with 13 additions and 9 deletions

View File

@ -236,7 +236,7 @@ Robot.prototype.initDevices = function(devices) {
// Returns the result of the work
Robot.prototype.start = function() {
if (this.running) {
return;
return this;
}
var begin = function(callback) {

View File

@ -6,17 +6,21 @@ var Device = source('device'),
Utils = source('utils');
describe("Robot", function() {
var work = spy();
var extraFunction = spy();
var work, extraFunction, robot;
var robot = new Robot({
name: "Robby",
work: work,
beforeEach(function() {
work = spy();
extraFunction = spy();
extraFunction: extraFunction,
extraValue: "Hello World",
robot = new Robot({
name: "Robby",
work: work,
master: { master: true }
extraFunction: extraFunction,
extraValue: "Hello World",
master: { master: true }
});
});
describe("constructor", function() {