spec/node.js in faye-0.7.2 vs spec/node.js in faye-0.8.0
- old
+ new
@@ -1,10 +1,10 @@
-JSCLASS_PATH = 'vendor/js.class/build/src'
-require('../' + JSCLASS_PATH + '/loader')
+require('jsclass')
+Faye = require('../build/faye-node')
+Faye.logger = function() {}
JS.Packages(function() { with(this) {
- file('build/faye-node.js').provides('Faye')
autoload(/.*Spec/, {from: 'spec/javascript'})
}})
FakeSocket = function() {
this._fragments = []
@@ -28,26 +28,26 @@
var testcase = this
return function(actual) { testcase.assertEqual(expected, actual) }
}
})
+ JS.ENV.Engine = {}
JS.ENV.Server = {}
JS.require( 'FayeSpec',
'GrammarSpec',
'ChannelSpec',
'EngineSpec',
+ 'Engine.MemorySpec',
'ServerSpec',
'Server.HandshakeSpec',
'Server.ConnectSpec',
'Server.DisconnectSpec',
'Server.SubscribeSpec',
'Server.UnsubscribeSpec',
+ 'Server.PublishSpec',
'Server.ExtensionsSpec',
'Server.IntegrationSpec',
- 'WebSocket.ClientSpec',
- 'WebSocket.Draft75ParserSpec',
- 'WebSocket.Protocol8ParserSpec',
'NodeAdapterSpec',
'ClientSpec',
'TransportSpec',
JS.Test.method('autorun'))
})