huge basketball shorts

This commit is contained in:
Dennis Collinson 2012-04-25 16:58:15 -07:00
parent 4e14dd2d01
commit c3c3d57d69

View file

@ -34,16 +34,16 @@ describe("app.pages.Profile", function(){
});
context("profile control pane", function(){
it("is shown", function() {
it("shows the edit and create buttons if it's your profile", function() {
spyOn(this.page, "isOwnProfile").andReturn(true)
this.page.render()
expect(this.page.$("#profile-controls .control").length).not.toBe(0)
expect(this.page.$("#profile-controls .control").length).toBe(2)
})
it("is not shown", function() {
it("shows a follow button if not", function() {
spyOn(this.page, "isOwnProfile").andReturn(false)
this.page.render()
expect(this.page.$("#profile-controls .control").length).toBe(0)
expect(this.page.$("#profile-controls .control").length).toBe(1)
})
})