Sha256: 8e5c6a36493411ad80f34fc35a9070e9ff693fe486c40f6c969609e0e256b819
Contents?: true
Size: 705 Bytes
Versions: 42
Compression:
Stored size: 705 Bytes
Contents
describe("SetAdapterView", function(){ beforeEach(function(){ var session = new Session(); session.setAuthenticated('true'); session.setApiKey('testtoken'); adapter = new Adapter(); sinon.stub(jQuery,'ajax') var domain = 'http://test.com' this.setAdapterView = new App.Views.SetAdapter({model : adapter}); }); afterEach(function(){ var session = new Session(); session.setAuthenticated('false'); session.setApiKey(null); jQuery.ajax.restore(); }); it("should have render initial html",function(){ this.setAdapterSpy = sinon.spy(this.setAdapterView,'render'); this.setAdapterView.render(); expect(this.setAdapterSpy).toHaveBeenCalledOnce(); }); });
Version data entries
42 entries across 42 versions & 1 rubygems