Sha256: ea0f6dcdfad85fae81cae1cba51d813732a5f1b63ac06156a1a224f0a1cb0b7a

Contents?: true

Size: 408 Bytes

Versions: 8

Compression:

Stored size: 408 Bytes

Contents

describe 'uki.view'
    it 'should declare new views'
        called = false
        uki.view.declare('tmp.view.TestView', uki.view.Base, function(base) {
            base.should.be uki.view.Base.prototype
            called = true
        });
        tmp.view.TestView.should.not.be_null
        called.should.be_true
        (new tmp.view.TestView()).typeName().should.be 'tmp.view.TestView'
    end
  
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
uki-1.1.4 frameworks/uki/spec/unit/view.spec.js
uki-1.1.3 frameworks/uki/spec/unit/view.spec.js
uki-1.1.2 frameworks/uki/spec/unit/view.spec.js
uki-1.1.1 frameworks/uki/spec/unit/view.spec.js
uki-1.1.0 frameworks/uki/spec/unit/view.spec.js
uki-1.0.2 frameworks/uki/spec/unit/view.spec.js
uki-1.0.1 frameworks/uki/spec/unit/view.spec.js
uki-1.0.0 frameworks/uki/spec/unit/view.spec.js