backfill some stream.js specs

This commit is contained in:
Maxwell Salzberg 2012-05-23 17:05:18 -07:00
parent b736741ab8
commit 92c0fa0163

View file

@ -6,6 +6,21 @@ describe("app.Pages.Stream", function(){
expect(this.post).toBeTruthy() expect(this.post).toBeTruthy()
}) })
describe('postRenderTemplate', function(){
it("sets the background-image of #header", function(){
this.page.render()
console.log(this.page.$('#header').css('background-image'))
expect(this.page.$('#header').css('background-image')).toBeTruthy()
})
it('calls setUpHashChangeOnStreamLoad', function(){
spyOn(this.page, 'setUpHashChangeOnStreamLoad')
this.page.render();
expect(this.page.setUpHashChangeOnStreamLoad).toHaveBeenCalled()
})
})
describe("rendering", function(){ describe("rendering", function(){
beforeEach(function(){ beforeEach(function(){
this.page.render() this.page.render()