Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (28 sloc) 962 Bytes
require '../src/bootstrap/runtime'
describe 'runtime'
it 'creates objects with constructor'
obj = object =>
self.a = 'a'
obj.a.should.equal 'a'
it 'creates objects with hash'
obj = object {
a = 'a'
obj.a.should.equal 'a'
describe 'inheritance'
prototype = null
before each
prototype = object =>
self.a = 'a'
self.b = 'b'
it 'allows objects to be extended'
obj = object extending (prototype) =>
self.b = 'c'
obj.a.should.equal 'a'
obj.b.should.equal 'c'
it 'allows objects to be extended using hash'
obj = object extending (prototype) {
b = 'c'
obj.a.should.equal 'a'
obj.b.should.equal 'c'
Jump to Line
Something went wrong with that request. Please try again.