Sha256: 1a61ee2b481770716b8a1b80f50a7716f675639fdbb5946634406e052d78db99
Contents?: true
Size: 629 Bytes
Versions: 35
Compression:
Stored size: 629 Bytes
Contents
describe("DocView", function(){ beforeEach(function(){ var session = new Session(); session.setAuthenticated('true'); session.setApiKey('testtoken'); doc = new Doc(); doc.set("dbkey",'testkey'); sinon.stub(doc,'get_doc') this.docView = new App.Views.Doc({model : doc}); }); afterEach(function(){ var session = new Session(); session.setAuthenticated('false'); session.setApiKey(null); }); it("should have render initial html",function(){ this.docRenderSpy = sinon.spy(this.docView,'render'); this.docView.render(); expect(this.docRenderSpy).toHaveBeenCalledOnce(); }); });
Version data entries
35 entries across 35 versions & 1 rubygems