Properly organize supporting classes for tests

This commit is contained in:
Andrew Stewart 2013-11-11 08:14:00 -05:00
parent 31bfa85fa8
commit 88ab1a2d34
12 changed files with 9 additions and 8 deletions

View File

@ -8,6 +8,7 @@
'use strict';
# A test class, used to create dummy Drivers
module.exports = class Driver
constructor: (opts) ->
@self = this

View File

@ -2,7 +2,7 @@
'use strict';
var Adaptor;
Adaptor = source("adaptor");
Adaptor = source("test/adaptor");
describe("Adaptor", function() {
var adaptor;

View File

@ -4,7 +4,7 @@
source("connection");
Adaptor = source("adaptor");
Adaptor = source("test/adaptor");
Robot = source("robot");

View File

@ -6,7 +6,7 @@
source("robot");
Driver = source("driver");
Driver = source("test/driver");
describe("Device", function() {
var device, driver, requireDriver, robot;

View File

@ -2,7 +2,7 @@
'use strict';
var Driver;
Driver = source("driver");
Driver = source("test/driver");
describe("Driver", function() {
var driver;

View File

@ -1,6 +1,6 @@
'use strict';
Adaptor = source("adaptor")
Adaptor = source("test/adaptor")
describe "Adaptor", ->
adaptor = new Adaptor(name: "adaptive")

View File

@ -1,7 +1,7 @@
'use strict';
source("connection")
Adaptor = source("adaptor")
Adaptor = source("test/adaptor")
Robot = source("robot")
describe "Connection", ->

View File

@ -2,7 +2,7 @@
source("device")
source("robot")
Driver = source("driver")
Driver = source("test/driver")
describe "Device", ->
robot = new Cylon.Robot(name: 'me')

View File

@ -1,6 +1,6 @@
'use strict';
Driver = source("driver")
Driver = source("test/driver")
describe "Driver", ->
driver = new Driver(name: "driving")