Skip to content

Commit

Permalink
Added spec for include
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Dec 15, 2009
1 parent 938b78b commit 639f3d8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/spec.core.js
Expand Up @@ -20,6 +20,19 @@ describe 'Class'
end
end

describe '.include()'
it 'should merge additional methods'
Foo = Class({
bar: function(){}
})
Foo.include({
baz: function(){}
})
(new Foo).should.respond_to 'bar'
(new Foo).should.respond_to 'baz'
end
end

describe '({ ... })'
it 'should populate prototype properties'
User = Class({ type: 'user' })
Expand Down

0 comments on commit 639f3d8

Please sign in to comment.