define(['AssetManager/view/AssetView', 'AssetManager/model/Asset', 'AssetManager/model/Assets'], function(AssetView, Asset, Assets) { describe('Asset Manager', function() { describe('AssetView', function() { before(function () { this.$fixtures = $("#fixtures"); this.$fixture = $('
'); }); beforeEach(function () { var coll = new Assets(); var model = coll.add({}); this.view = new AssetView({ config : {}, model: model }); this.$fixture.empty().appendTo(this.$fixtures); this.$fixture.html(this.view.render().el); }); afterEach(function () { this.view.model.destroy(); }); after(function () { this.$fixture.remove(); }); it('Object exists', function() { AssetView.should.be.exist; }); it('Has correct prefix', function() { this.view.pfx.should.equal(''); }); }); }); });